No audio on headphones

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

Post Reply
index123
Established Member
Posts: 4
Joined: Thu Aug 04, 2016 2:20 pm

No audio on headphones

Post by index123 »

Hi, I'm not sure if this is the right section to consult this. After I installed KXStudio on my ASUS K55VD laptop, the laptop speakers are working fine but my headphones does not output sounds. I tried to play around on alsamixer but no luck. I'm out of options. Please go easy on me I'm new to linux. Any help will be appreciated.
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: No audio on headphones

Post by CrocoDuck »

Sometimes it is tricky. On my laptop all suddenly the headphone started working in quirky way... go figure.

Anyway, let's look first at your soundcards:

Code: Select all

aplay -l
index123
Established Member
Posts: 4
Joined: Thu Aug 04, 2016 2:20 pm

Re: No audio on headphones

Post by index123 »

This was the result:

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC270 Analog [ALC270 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: No audio on headphones

Post by CrocoDuck »

Ok, nothing too quirky. You got analog and HDMI. I am wondering whether the loopbacks are doing something weird.

I have stumbled across this problem on a friend's laptop years ago. It was an Asus as well and I remember it was a pretty common. I think the documentation I followed was this:

https://ubuntuforums.org/showthread.php?t=2022151
https://ubuntuforums.org/showthread.php ... st11418413
https://help.ubuntu.com/community/HdaIntelSoundHowto
https://ubuntuforums.org/showthread.php?t=1043568

Feel free to have a look. I think I will go through tonight and be back with something to suggest to you. Be aware that the pages are kinda old, so maybe something needs to be adjusted.
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: No audio on headphones

Post by CrocoDuck »

Hi there! Your Codec seems to ALC270. We could see if we find any more info about it by doing this:

List contents of /proc/asound:

Code: Select all

ls /proc/asound
There will be a file called cards with some basic info:

Code: Select all

cat /proc/asound/cards
There should be also at least two files of the tipe cardX, where X is a number. I think you will see card0 and card1. Get the codec info for each:

Code: Select all

cat /proc/asound/card0/codec* | grep Codec
cat /proc/asound/card1/codec* | grep Codec
The first thing I would try is to mess /etc/modprobe.d/alsa-base.conf. On a terminal, using your favourite text editor (maybe gedit, leafpad, whatever):

Code: Select all

sudo gedit /etc/modprobe.d/alsa-base.conf
Add this line:

Code: Select all

options snd-hda-intel model=asus
Save and reboot. See how it goes.

There are others model arguments you could try. I think a quick way to test them is by loading the kernel module with the model parameter:

Code: Select all

modprobe snd_hda_intel model=asus
I would also like to see the output of this:

Code: Select all

lspci -vnn
index123
Established Member
Posts: 4
Joined: Thu Aug 04, 2016 2:20 pm

Re: No audio on headphones

Post by index123 »

It's so weird that it works now. After adding

Code: Select all

options snd-hda-intel model=asus
on the conf file and rebooting, it didn't work. And I just left it and do other things on windows. Then I decided to try booting on linux again, surprisingly it worked. I think adding those lines made it work after shutdown. Anyway, thank you all so much. :D
Post Reply