Since I installed PulseAudio on my Gentoo system I've been having no audio output from my laptop's speakers when un-plugging the headphones jack.

I suppose the problem lies in how ALSA and PulseAudio manage the audio controls. When headphones are plugged everything is perfectly ok, alsa controls for the Intel HDA PCH are configured correctly so that 'Master' and 'Headphones' volume bars are correctly configured (I can tell this by looking at alsamixer with root privileges). When I un-plug the headphone jack, volume settings automatically change in a apparently correct way. That is, the 'Headphone' bar is muted and set to 0, while the 'Speaker' bar is un-muted and maxed out (while it gets muted when plugging the headphone jack). The 'Master' is always left un-muted and with the desired volume level. I can actually make the speakers output work by manually un-mute and pump-up the headphones output with alsamixer. But I would have to do this operation every time a plug/un-plug headphones. So is there some way to fix this? Maybe somehow decouple headphones output from speaker output in the ALSA system?

My laptop is an HP Pavilion G6 from 2011.


  • I'm with a similar problem where to use my notebook speakers I have to increase the volume in the channel "Headphones". And when I unplug the headphones, this channel goes to 0, and I have to bring it back up using alsamixer (I have to select the card because of pulseaudio). – diogovk Jun 21 '15 at 19:41

Edit the file /usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf and locate the section:

[Element Headphone]

And comment the lines

switch = off
volume = off

The end result will be

[Element Headphone]
#switch = off
#volume = off

The problem, in my case was being caused because the channel "Headphones" was being muted, and for some reason, it needs not to be muted for the notebook's speakers to work.

With my change, the headphones don't mute nor get the volume set to zero when unplugging the headphones.

To "debug" which channel is being muted in your case, you can use alsamixer, and inside alsamixer you can press "C" to select your audiocard (the default is setting the volumes for pulseaudio main channels). Plug and unplug the headphones and check what changes.

  • Feels a bit like a workaround, but it solves the problem nonetheless so I'm accepting the answer :) – mdt Jun 26 '15 at 13:59
  • I have no idea what's the "proper" fix for this. Maybe you could try #alsa or the mailing list? – diogovk Jun 26 '15 at 14:40
  • 1
    Do you have to reboot, login/out, pulseaudio -k, for the setting change to get picked up or what? – semisecure Feb 15 '18 at 9:00
  • 1
    '/usr/share/pulseaudio/alsa-mixer/paths' is a directory. Edit the file 'analog-output-speaker.conf' as shown in the answer. – Newton Dec 29 '19 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.