I tried the settings mention in this topic: Headphone jack not working?
but with no luck. The first thing i tried was to edit analog-output-headphones.conf but when i did that, i could no longer play from the laptop's speakers but only from headphones. Then I tried the second suggestion of editing /etc/modprobe.d/alsa-base.conf which prevents the soundcard from loading first - in that case the sound keeps coming from both headphones and speakers. any idea would be appreciated.