On my HP Pavilion dv7-6190ed, after every Kernel update, the Audio switch to Headphones seems to stop working. I'm pretty sure the following fix (work-around) works on other laptops too.
- Open the terminal and enter the following commands:
cd /usr/share/pulseaudio/alsa-mixer/paths/
sudo cp analog-output-headphones.conf analog-output-headphones.bak sudo nano analog-output-headphones.conf
- Look for the section called [Element Speaker],
change it so that it looks like this:
Element Speaker]
switch = on
volume = ignore
- Save the changes and then reboot.
- Create a backup of the corrected analog-output-headphones.conf file, so you can simply copy the backup back after each new kernel update rather than repeating the whole procedure.
cd /usr/share/pulseaudio/alsa-mixer/paths/
sudo cp analog-output-headphones.conf analog-output-headphones.fixed
If this does NOT do the trick, Try adding the following the following:
- Open the terminal once again, and enter the following commands:
sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf
- Comment out the following line as shown:
[Jack_InputDevice]
#required-any = any
- Save the file and then issue this command to restart pulseaudio:
pulseaudio -k
Conclusion.
So far I've had no issues with this fix, and I have plugged and UN-plugged my headphones – sound switches between the headphones and speaker just fine again. Cheers, and thanks to all the helpful tips on the net that made this write-up possible.