Headphones not detected KDE

Manjaro is not detecting my headphones when plugged in. When I plug in my headphones, the audio settings remains as Speakers (Built-in Audio Analag Stereo). I am able to output audio to speakers just fine.

➜  ~ aplay -l      
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC294 Analog [ALC294 Analog]
  Subdevices: 1/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 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I dont seem to see the headphones being detected anywhere. Any help would be appreciated!

1 Like

I installed pavucontrol and with headphones plugged in, I do not see headphones as one of the available outputs

image

Only Speakers is available

1 Like

Have a look here

The card doesnt seem to get detected tho. In pavucontrol I am unable to switch to anything other than Speakers. There are no other options. I forgot to mention but speakers work fine.

aplay -l
inxi -Fxz

for begin results please

I've posted the output of aplay -l on my top post. Here is inxi:

➜  ~ inxi -Fxz
System:    Host: MX-LAPTOP-MANJARO Kernel: 5.6.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.18.5 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: Zephyrus M GU502GU_GU502GU v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: GU502GU v: 1.0 serial: <filter> UEFI: American Megatrends v: GU502GU.309 date: 04/24/2020 
Battery:   ID-1: BAT0 charge: 77.9 Wh condition: 77.9/76.0 Wh (103%) model: ASUSTeK ASUS Battery status: Not charging 
CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: D L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62431 
           Speed: 900 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 900 2: 897 3: 900 4: 900 5: 899 6: 900 7: 900 8: 900 
           9: 900 10: 900 11: 900 12: 900 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: ASUSTeK driver: nvidia v: 440.82 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia unloaded: intel,nouveau resolution: 1920x1080~144Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.0.7 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Sound Server: ALSA v: k5.6.15-1-MANJARO 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: N/A port: 5000 bus ID: 00:14.3 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: kernel port: 3000 
           bus ID: 05:00.0 
           IF: eno2 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 309.86 GiB (33.3%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS100T2B0C-00PXH0 size: 931.51 GiB 
           ID-2: /dev/nvme1n1 vendor: Intel model: SSDPEKNW512G8 size: 476.94 GiB 
Partition: ID-1: / size: 192.27 GiB used: 32.94 GiB (17.1%) fs: ext4 dev: /dev/nvme1n1p5 
Sensors:   System Temperatures: cpu: 51.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2700 
Info:      Processes: 307 Uptime: 10m Memory: 31.22 GiB used: 2.43 GiB (7.8%) Init: systemd Compilers: gcc: 10.1.0 Shell: zsh 
           v: 5.8 inxi: 3.0.37 

➜  ~ hwinfo --sound
19: PCI 1f.3: 0403 Audio device                                 
  [Created at pci.386]
  Unique ID: nS1_.meQMPO27pOD
  SysFS ID: /devices/pci0000:00/0000:00:1f.3
  SysFS BusID: 0000:00:1f.3
  Hardware Class: sound
  Model: "Intel Cannon Lake PCH cAVS"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa348 "Cannon Lake PCH cAVS"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x1881 
  Revision: 0x10
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xa5518000-0xa551bfff (rw,non-prefetchable)
  Memory Range: 0xa5100000-0xa51fffff (rw,non-prefetchable)
  IRQ: 153 (484 events)
  Module Alias: "pci:v00008086d0000A348sv00001043sd00001881bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Driver Info #1:
    Driver Status: snd_soc_skl is active
    Driver Activation Cmd: "modprobe snd_soc_skl"
  Driver Info #2:
    Driver Status: snd_sof_pci is active
    Driver Activation Cmd: "modprobe snd_sof_pci"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

Read carefully
https://forums.linuxmint.com/viewtopic.php?p=1633126&sid=bddaec71ad64af38978c8d124b2b77e5#p1633126
and
Splitting front/rear
https://wiki.archlinux.org/index.php/PulseAudio/Examples#Splitting_front.2Frear
After applying changes in files reboot. Good luck :wink:

unfortunately adding those 2 lines and rebooting didnt seem to make any changes. I'm still only seeing one sound card which is Built-in Audio Analog Stereo and I am unable to select my line in as Speaker is the only option.
image

Did you read wiki article part about spliting audio outputs? :slight_smile:

Oh I forgot make the edit to the sink part. I changed that but it still does not work. it managed to split front/rear to seperate sinks but it still doesnt fix my issue.

image

When i connect my headphones, im still unable to select headphones within the Port option for Built-int audio analog stereo. Its as if my laptop doesnt know theres a headphone being connected.

Then report issue directly to kernel devs for feedback support.
https://bugzilla.kernel.org/

1 Like

Just wanted to shared what I discovered after days of research:
I was able to get headphone jack detection by using HDAjackretask from alsa-tools and mapping Pin ID to 0x21. After a reboot, pavucontrol finally shows the option of headphones when i plug my headphones into the headphone jack. However, no sound is coming from the headphones.

1 Like

Another follow up, changing pin 0x19 to microphone allows pavucontrol to detect the mic on my external headset and it works perfectly. Now I jsut need to get audio from the headset to work.

2 Likes

By enabling above mentioned pin's i was able to get the microphone and headphone in alsamixer, but no audio in headphone. If you are able to get can you update the process to get audio.

unfortunately i am not able to get headphone audio to work.

check out https://bugzilla.kernel.org/show_bug.cgi?id=208005#c6

Someone replied with a possible patch, however I do not know how to apply the patch to the kernel

1 Like

Just want to flag that I am having the same issue—only the speakers are detected.

 20:32:22  ✘  jr@fm  ~  ⬡ v8.16.0 
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 20:32:23  jr@fm  ~  ⬡ v8.16.0 
$ inxi -Fxz
System:    Host: fm Kernel: 5.6.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.19.80 
           Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: TUF B450M-PLUS GAMING v: Rev X.0x serial: <filter> UEFI: American Megatrends 
           v: 1002 date: 03/07/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 118221 
           Speed: 4341 MHz min/max: 2200/3700 MHz Core speeds (MHz): 1: 4341 2: 2864 3: 2170 4: 1945 5: 1889 6: 2022 7: 2195 
           8: 2195 9: 2056 10: 1990 11: 1887 12: 2101 13: 2196 14: 2196 15: 4341 16: 2582 
Graphics:  Device-1: NVIDIA TU104 [GeForce RTX 2080] vendor: ASUSTeK driver: nvidia v: 440.82 bus ID: 07:00.0 
           Display: x11 server: X.Org 1.20.8 driver: nvidia resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce RTX 2080/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 direct render: Yes 
Audio:     Device-1: NVIDIA TU104 HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 07:00.1 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 09:00.3 
           Sound Server: ALSA v: k5.6.16-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8168 v: 8.048.03-NAPI 
           port: f000 bus ID: 05:00.0 
           IF: enp5s0 state: up speed: 100 Mbps duplex: half mac: <filter> 
           IF-ID-1: docker0 state: down mac: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 201.88 GiB (43.3%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB 
Partition: ID-1: / size: 389.04 GiB used: 201.88 GiB (51.9%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 69.20 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 41.5 C mobo: N/A gpu: nvidia temp: 29 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 20% 
Info:      Processes: 423 Uptime: 1d 3h 24m Memory: 62.81 GiB used: 11.12 GiB (17.7%) Init: systemd Compilers: gcc: 10.1.0 
           Shell: zsh v: 5.8 inxi: 3.0.37 

 20:32:39  jr@fm  ~  ⬡ v8.16.0 
$ hwinfo --sound
25: PCI 900.3: 0403 Audio device                                
  [Created at pci.386]
  Unique ID: X0zg.QNPJ_OOAv07
  Parent ID: JZZT.XtQqpuv2hW0
  SysFS ID: /devices/pci0000:00/0000:00:08.1/0000:09:00.3
  SysFS BusID: 0000:09:00.3
  Hardware Class: sound
  Model: "AMD Family 17h (Models 00h-0fh) HD Audio Controller"
  Vendor: pci 0x1022 "AMD"
  Device: pci 0x1457 "Family 17h (Models 00h-0fh) HD Audio Controller"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x8760 
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xf6700000-0xf6707fff (rw,non-prefetchable)
  IRQ: 39 (521 events)
  Module Alias: "pci:v00001022d00001457sv00001043sd00008760bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #27 (PCI bridge)

41: PCI 700.1: 0403 Audio device
  [Created at pci.386]
  Unique ID: Rfaj.VGUuw60v9g1
  Parent ID: w+J7.0TU4LKoL980
  SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:07:00.1
  SysFS BusID: 0000:07:00.1
  Hardware Class: sound
  Model: "nVidia TU104 HD Audio Controller"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x10f8 "TU104 HD Audio Controller"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x8674 
  Revision: 0xa1
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xf6080000-0xf6083fff (rw,non-prefetchable)
  IRQ: 101 (15008 events)
  Module Alias: "pci:v000010DEd000010F8sv00001043sd00008674bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #7 (PCI bridge)

both systems are manfactured by Asus but that is the only similarity
OP has an Intel laptop with ALC294 audio codec
your system information shows an AMD Ryzen desktop with ALC887-VD

previous posts specific to ALC887-VD codec may help you find a solution to your problem
https://archived.forum.manjaro.org/search?q=ALC887-VD
but if that does not work out, start a new discussion to troubleshoot your system further

1 Like

Installed the kernel but didn't work. Even though i had the same laptop listed in that patch. (Asus Zephyrus M GU502)

Forum kindly sponsored by