My headphones mute AlsaMixer when I plug them in, HP DV6 12.04

Whenever I plug any type of headphones into one of the audio out connectors on my hp dv6, alsa mutes them, muting the "speaker" setting(see attached image). This also happened in Fedora, so it's a problem with Alsa and my computer. Does anyone know anything that would help?

Note, I don't have enough reputation for images. Here's a link: Image

Thank you so much if you can help!


Solution 1:

I found a solution that works here: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/921397/comments/9

You can also see the whole discussion regarding this bug here: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/921397

To summarize:

Edit sudo gedit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf

and modify the [Element Speaker] section as follows:

[Element Speaker]
; link to muting
switch = mute
; set volume to zero, so only the master slider controls playback volume. This gives better linearity.
volume = zero

After this, I had to restart the system: you might try to restart only pulse audio with pulseaudio -k.

I also had an additional problem, that I fixed before solving the above. Namely, my headphones didn't work at all. I had to add the line:

options snd-hda-intel model=hp-dv6 enable_msi=1

to the file sudo gedit /etc/modprobe.d/alsa-base.conf

Solution 2:

Yeah, I had the same problem on my HP dv6140us. I tried all manner of repairs, and decided on a workaround. I created a script, headphones-workaround.sh, containing the following:

#!/bin/bash

amixer set -c 1 Speaker unmute 70%

I saved the script in my home folder, made it executable (for newbie reference: chmod a+x headphones-workaround.sh) and created a clickable icon in my panel bar that links to the script (alt-rightclick in panel bar, choose Add To Panel, choose Custom Application Launcher, set name to whatever, and set Command to /home/your-user-name/headphones-workaround.sh).

Now, whenever I plug in my headphones I just click on the icon in my panel bar, and the headphones start working.