headphone jack not working with Dell XPS 13 bought in 2014

5,319

Solution 1

First I reinstalled everything from scratch nicely by following Ubuntu sound troubleshooting step 1: https://help.ubuntu.com/community/SoundTroubleshootingProcedure and ran:

sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status; sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`

then I managed to turn the volume on in the headphones with solution from Headphones is not working in 15.04 Dell XPS 13 answer:

after every boot and perhaps every suspend, I have to open the terminal and run alsamixer, which is a CLI app for volume adjustments. Use the arrow keys to select the "Headphone" column. Press "M" to unmute it, if it says "M" at the bottom. Press the up arrow to turn the volume all the way up in the headphone column. Then use the arrow keys to move to the "Speaker" column. You probably want to turn it all the way down unless you want sound to come out of the speakers and the headphone jack.

[UPDATE] I found a one command line to do that you can execute whenever I plug in my headphones:

amixer -c 1 set Headphone on;amixer -c 1 set Headphone 100%

so to get get to that, I had

to find the right card to use:

amixer controls

to use first card and see which controls are available on that card

amixer -c 1

to turn it on

amixer -c 1 set Headphone on

to set volume

amixer -c 1 set Headphone 100%

Solution 2

I went to pulse audio volume control, input devices, and UNMUTED the INTERNAL MIC and my headphones worked again.

2016 XPS 13 Ubuntu 18.04

Solution 3

After trying various different solutions on my Dell XPS 15 headphones still weren't detected, only got to use analog internal speakers (which weren't functioning before too).

I then tried the amixer commands from @Jeremy's answer, but nothing happened and right after I executed the following from a Launchpad's user suggestion:

rm -r ~/.config/pulse/
pulseaudio -k && sudo alsa force-reload
sudo reboot

I let the headphones connected to the jackport all the time while executing the commands and while laptop was rebooting.

After the reboot headphones were reproducing sound though they are still not listed in the output devices, only internal analog speakers are listed, but the sound actually comes through the headphones. I haven't plugged off my headphones nor restarted the system ever since.

Credit goes to user Camilo Prieto on this Launchpad bug comment.

Share:
5,319

Related videos on Youtube

Jeremie
Author by

Jeremie

Updated on September 18, 2022

Comments

  • Jeremie
    Jeremie almost 2 years

    Similarly to Headphone jack not working?, I have a Dell XPS 13 and since I upgraded to Ubuntu 16.04, my headphones jack is not working anymore, while internal speakers work fine. when I plug in headphones I do not see any window that asks me whether it's microphone or headset like it used to.

    I tried every solution on the mentioned link and none worked (even after reboot or sudo alsa force-reload): - modifying analog-output-headphones.conf in /usr/share/pulseaudio/alsa-mixer/paths/ - modifying /etc/modprobe.d/alsa-base.conf

    I tried updating linux kernel to 4.6 but it didn't work as well.

    It seems I'm not the only one who face this as I saw in comments on the mentioned link + Headphones is not working in 15.04 Dell XPS 13

  • Mark Stosberg
    Mark Stosberg almost 8 years
    The final question is where the amixer command can be put so it re-triggers every time the volume settings get corrupted again.
  • Evert
    Evert over 7 years
    I'm having the same issue and my question is, why do I need this at all? :)
  • Jeremie
    Jeremie over 7 years
    My first reaction would be to answer "to solve this issue that was really bothering me" but it might sound a bit aggressive :). If you found something simpler, please answer!
  • Bas Swinckels
    Bas Swinckels over 7 years
    @Jeremie I guess Evert was asking a rhetorical question, or one addressed at the Dell/Ubuntu developers, about why we need these kind of 'hacks' to get basic things working, and I fully agree. Anyway, your solution worked for my XPS 13 9350 DevEd. It came with 14.04 preinstalled (for which the headphone was working correctly), but after doing a dist upgrade to 16.04 it was no longer working.
  • Rien Heuver
    Rien Heuver over 5 years
    This worked for me too. In fact, I immediately muted the internal mic again afterwards but the headphones kept working.
  • nd34567s32e
    nd34567s32e over 5 years
    ditto & weird -- dell issue or pulse issue i wonder?
  • muyiscoi
    muyiscoi over 5 years
    This should be the accepted answer, atleast on 18.04. Worked for me as well. Very weird issue though
  • nd34567s32e
    nd34567s32e about 3 years
    fwiw, i believe it non-linux and non XPS specific. Dell has microphone driver problems on other models and on windows as well.