Comment 16 for bug 585777

Revision history for this message
Craig Harding (craigwharding) wrote :

This also happens to me. I had 9.10 and initially had the problem but an update fixed this problem. I'm not sure what update it was.

I now upgraded to 10.04 and the problem is back. I have to use a script I found to mute the speakers manually every time I plug my headphones in. Installing gnome-alsamixer does not work for me as I don't have a 'headphone jack sense' option with my sound card. Script to turn off speakers is below.

#/bin/bash
if [ $(~/bin/hda-verb /dev/snd/hwC0D0 0x1f GET_PIN_WIDGET_CONTROL 0x0 | grep 0x0 | wc -l) = 1 ];then ~/bin/hda-verb /dev/snd/hwC0D0 0x1f SET_PIN_WIDGET_CONTROL 0x40;
echo 'unmuted';
else
 ~/bin/hda-verb /dev/snd/hwC0D0 0x1f SET_PIN_WIDGET_CONTROL 0x0;
 echo "Speakers muted";
fi