Ubuntu – Ubuntu 20.04 headphones detected but no sound

20.04dual-bootheadphonesheadsetsound

So, after my computer started to be a bit slow this week, I decided to do a reboot. After, the sound output of my headset was not working at all and it seems to me that I have not changed anything on my computer before this infamous reboot. I've had many problem in the past with my output sound on my headset with things like headset not detected, and for this, I always used the command :

pulseaudio -k && sudo alsa force-reload

And, after a couple of tries, my headset would work again. But this time, it is a bit different, the command does not work and the headset IS detected (The headset works perfectly fine on windows). The speakers of my computers works fine and the sound has no problems to go through my HDMI port.

In Settings – Sound, it even says that sound is going to my headset (the little sound bar is moving just normally with my music), same thing with pavucontrol. Also, alsamixer seems quite normal to me (it seems to be the right sound card since I only got one), nothing out of ordinary. Last thing, I got a microphone integrated in my headset from which I can be heard without problems.

Some information about my laptop ASUS GL703V:
-I use dual-boot with Windows 10 and ubuntu 20.04.
-The output of $ lspci | grep Audio is : 00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
-My sound card according to Alsamixer : HDA Intel PCH
-My chip according to Alsamixer : Realtek ALC295

What have I tried to correct the problem? First, I got to say I don't really understand most of the commands I've tried.

pulseaudio -k && sudo alsa force-reload 

sudo alsactl restore

sudo apt-get remove --purge alsa-base

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 || ubuntu-security-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\`

I also tried to change the file analog-output-headphones.conf in /usr/share/pulseaudio/alsa-mixer/paths/. I changed

[Element Speaker]
switch = off
volume = off

to

[Element Speaker]
switch = on
volume = ignore

Thanks

Best Answer

  • I had exactly the same problem as you, except for a ASUS GL503 (but also Realtek ALC295). It drove me nuts as I tried every conceivable sound fix that I have seen for Ubuntu and derived systems. In the end, it appears it is kernel related and it mostly affects us ASUS users. There is a discussion here: https://forum.manjaro.org/t/sound-from-speakers-no-sound-from-3-5mm-jack-audio/5343/20

    The easiest solution for me was to edit /etc/modprobe.d/alsa-base.conf (I think on some computers, it may be just alsa.conf) and insert this as the last line: options snd-hda-intel model=headset-mode

    Then do a complete shutdown and restart.

    It is possible that this change may cause you to lose the microphone in the headset, if you have one. In that case, you will probably have to try one of the other options in the link that I posted above, which will probably require you to recompile your Kernel with the applicable patch.

  • Related Question