Ubuntu 12.04 – Dell Vostro 3750 – No Sound When Headphones are Plugged in (Fixed)

Since installing Ubuntu 12.04 on my Dell Vostro 3750 I have had issues with no sound coming through my headphones.

I thought that I had resolved the issue in a previous blog post but recently the problem has resurfaced. I tired reverting to my original /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf file but this did not work.

It might have some bearing on the issue that I am dual booting with Windows 7 – but I am not sure that this is necessarily the problem.

When I run alsamixer (from the terminal) my speaker volume becomes muted when I plug in my headphones.

The headphone column state does not change at all.

My first stop when looking at this issue again was the Ubuntu Sound Troubleshooting Page. I looked at a few items after step 9 but I tried evrything up to step 9 to no avail. I mention this as I do not know if these steps impacted the current fix that I am using.

This bug report contains the fix that currently works for me. Open a Terminal and issue 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

So far I have had no issues with this fix and I have rebooted and plugged and un-plugged my headphones – sound switches between the headphones and speaker just fine again.

Ubuntu 12.04 – Dell Vostro 3750 – No Sound When Headphones are Plugged in

** This workaround did work for me for a while – I have now had to implement a new workaround to fix the issue now that it had resurfaced again. See this post for details. **

Having just installed Ubuntu 12.04 (Precise Pangolin) on my Dell Vostro 3750 I noticed that there was no sound when I plugged in my headphones.

The workaround was to edit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf.

Update: Since implementing this workaround I have found that updates have reverted the changes that I made to analog-output-headphones.conf. So I recommend making a backup of the original file, then making changes to analog-output-headphones.conf and then backing up the changed file.

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] and change it so that it looks like this:

[Element Speaker]
switch = on
volume = ignore

Create a backup of the corrected analog-output-headphones.conf:

sudo cp analog-output-headphones.conf analog-output-headphones.fixed

Save the changes and then reboot.

After rebooting I found that I needed to remove my headphones and then insert the jack again to get them to work. Once they were working I could remove and insert the headphones jack and the behaviour was as expected.

With my configuration files backed up I can now easily revert to the original settings should I need to in the future or copy the fixed settings back if the settings are lost.

Source: bugs.launchpad.net

Credit to Ryan (bovorasr) for the workaround.