Dell XPS 15 9500 - HDMI audio output not working

I have a fresh install of Manjaro on my Dell XPS 9500. I have connect an LG monitor via HDMI (via a USB-C dongle) but it does not show up as an audio output device and the sound continues to only play from the integrated laptop speakers.

It has two video devices: NVIDIA GeForce GTX 1650 TI Mobile & Intel CometLake-H GT2. I have installed the NVIDIA drivers (video-hybrid-intel-nvidia-prime) and uninstalled the video-linux driver.

dmesg shows the following error: snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]

Some system info follows, I’m happy to provide any more info that would be helpful.

Here is the output of inxi -Fxz.

System:
  Kernel: 5.16.11-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Xfce 4.16.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: XPS 15 9500 v: N/A
    serial: <superuser required>
  Mobo: Dell model: 05XYW7 v: A00 serial: <superuser required> UEFI: Dell
    v: 1.12.0 date: 12/08/2021
Battery:
  ID-1: BAT0 charge: 78.6 Wh (100.0%) condition: 78.6/84.3 Wh (93.2%)
    volts: 12.7 min: 11.4 model: SMP DELL 70N2F95 status: Full
CPU:
  Info: 6-core model: Intel Core i7-10750H bits: 64 type: MT MCP
    arch: Comet Lake rev: 2 cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB
  Speed (MHz): avg: 844 high: 900 min/max: 800/5000 cores: 1: 879 2: 827
    3: 800 4: 841 5: 855 6: 882 7: 900 8: 900 9: 846 10: 799 11: 800 12: 800
    bogomips: 62431
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Dell driver: i915
    v: kernel bus-ID: 00:02.0
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Dell
    driver: nvidia v: 510.54 bus-ID: 01:00.0
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-11:9
  Device-4: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-4.2:5
  Display: x11 server: X.Org v: 1.21.1.3 driver: X:
    loaded: modesetting,nvidia gpu: i915 s-res: 5360x1440~Hz resolution:
    1: 3440x1440 2: 1920x1200
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3
  Device-2: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-4.2:5
  Sound Server-1: ALSA v: k5.16.11-2-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi vendor: Rivet Networks
    driver: iwlwifi v: kernel bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-14:10
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 715.96 GiB used: 12.88 GiB (1.8%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: PC611 NVMe 512GB
    size: 476.94 GiB temp: 30.9 C
  ID-2: /dev/sda type: USB vendor: Samsung model: Flash Drive FIT
    size: 239.02 GiB
Partition:
  ID-1: / size: 468.09 GiB used: 12.88 GiB (2.8%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 288 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 43.0 C pch: 51.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 0 fan-2: 0
Info:
  Processes: 325 Uptime: 9h 33m Memory: 15.38 GiB used: 3.59 GiB (23.4%)
  Init: systemd Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: 926 Shell: Zsh
  v: 5.8.1 inxi: 3.3.13

dmesg | egrep -i ‘(snd|sound|sof|alsa|hda)’

[    0.288183] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.334843] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.334843] software IO TLB: mapped [mem 0x0000000056205000-0x000000005a205000] (64MB)
[    3.332078] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    3.332679] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    3.358861] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.406356] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC289: line_outs=2 (0x14/0x17/0x0/0x0/0x0) type:speaker
[    3.406360] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.406361] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    3.406362] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    3.406363] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.406364] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    3.406365] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1b
[    3.406366] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    4.135352] snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]
[    4.146494] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[    4.146532] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[    4.146572] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    4.146603] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[    4.146636] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
[    4.146674] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22
[    4.830703] usbcore: registered new interface driver snd-usb-audio

Thanks in advance for any tips!

An note on kernel versions. I’m currently running 5.16.11-2, but I also tried 5.15.25-1, which had the same issue.

This should help you out https://wiki.archlinux.org/title/Dell_XPS_15#External_Display as is something the particular laptop model family requires.

I found similar a error message to this

snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]

in other discussions on this forum and Arch forum

Display goes black, Kernel 5.9 & disconnecting HDMI - #10 by grendelx

snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up / Kernel & Hardware / Arch Linux Forums

I suggest you try this to disable HDMI silent_stream

sudo tee /etc/modprobe.d/snd_hda_hdmi.conf <<< 'options snd_hda_codec_hdmi enable_silent_stream=N'