Comment 18 for bug 363870

Revision history for this message
Jafar Calley (manager-fxfrench) wrote :

YML You are Brilliant. These commands allow me to manually activate the headphones and mute the speakers when I need to use headphones. The next question is how to get it to happen automatically when I plug in and unplug the headphones. I'm on a DV6-1045 btw.

YML Wrote---------
Recap after reboot:

#activate the sound on the speaker
sudo ./hda-verb /dev/snd/hwC0D0 0x1 set_gpio_data 1
sudo ./hda-verb /dev/snd/hwC0D0 0x1 set_gpio_dir 1
sudo ./hda-verb /dev/snd/hwC0D0 0x1 set_gpio_mask 1

#activate the sound on the headset
sudo ./hda-verb /dev/snd/hwC0D0 0x0f SET_CONNECT_SEL 1

#mute the speaker
sudo ./hda-verb /dev/snd/hwC0D0 0x0d SET_PIN_WIDGET_CONTROL 0
#unmute the speaker
sudo ./hda-verb /dev/snd/hwC0D0 0x0d SET_PIN_WIDGET_CONTROL 0x40

#mute the headphones
sudo ./hda-verb /dev/snd/hwC0D0 0x0f SET_PIN_WIDGET_CONTROL 0
#unmute the headphones
sudo ./hda-verb /dev/snd/hwC0D0 0x0f SET_PIN_WIDGET_CONTROL 0x40