NVidia HDMI not an option for audio output

Resolved HDMI video with these helpful steps: No HDMI output on either free or non-free

Found today however that no audio is available out through HDMI, it doesn’t appear to be a device option in settings.

System:
  Kernel: 5.13.13-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64 
  root=UUID=403f112b-1702-45ed-a929-c45d3823ec77 rw quiet 
  cryptdevice=UUID=2ee7a1ba-8adb-4f6f-a13d-e555ed19d9bd:luks-2ee7a1ba-8adb-4f6f-a13d-e555ed19d9bd 
  root=/dev/mapper/luks-2ee7a1ba-8adb-4f6f-a13d-e555ed19d9bd apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: OMEN Laptop 15-en0xxx v: N/A 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 8786 v: 22.54 serial: <filter> UEFI: AMI v: F.07 
  date: 09/16/2020 
Battery:
  ID-1: BAT0 charge: 68.7 Wh (100.0%) condition: 68.7/68.7 Wh (100.0%) 
  volts: 12.9 min: 11.6 model: Hewlett-Packard Primary type: Li-ion 
  serial: N/A status: Full cycles: 618 
Memory:
  RAM: total: 15 GiB used: 5.83 GiB (38.9%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1 
  microcode: 8600103 cache: L2: 4 MiB bogomips: 92661 
  Speed: 2755 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 
  1: 2755 2: 3084 3: 1694 4: 1741 5: 1539 6: 1793 7: 1491 8: 1397 9: 2718 
  10: 1904 11: 1542 12: 1587 13: 1500 14: 1907 15: 1490 16: 4066 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs irperf lahf_lm 
  lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx 
  nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter 
  pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni 
  popcnt pse pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni 
  skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor 
  svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl 
  v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave 
  xsavec xsaveerptr xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Hewlett-Packard 
  driver: nvidia v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:2191 class-ID: 0300 
  Device-2: AMD Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel 
  bus-ID: 06:00.0 chip-ID: 1002:1636 class-ID: 0300 
  Device-3: Luxvisions Innotech Limited HP Wide Vision HD Camera type: USB 
  driver: uvcvideo bus-ID: 3-3:3 chip-ID: 30c9:000e class-ID: 0e02 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: modesetting,nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0") 
  s-diag: 777mm (30.6") 
  Monitor-1: HDMI-0 res: 2560x1440 hz: 75 dpi: 93 size: 697x393mm (27.4x15.5") 
  diag: 800mm (31.5") 
  OpenGL: renderer: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:1aeb 
  class-ID: 0403 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel 
  alternate: snd_pci_acp3x bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480 
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus-ID: 06:00.6 chip-ID: 1022:15e3 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.13.13-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.34 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: e000 bus-ID: 02:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: eno1 state: down mac: <filter> 
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: e000 
  bus-ID: 03:00.0 chip-ID: 8086:2723 class-ID: 0280 
  IF: wlo1 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-4:4 
  chip-ID: 8087:0029 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
  Device-1: luks-2ee7a1ba-8adb-4f6f-a13d-e555ed19d9bd maj-min: 254:0 
  type: LUKS dm: dm-0 size: 790.16 GiB 
  Components: 
  p-1: nvme0n1p5 maj-min: 259:5 size: 790.16 GiB 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 953.87 GiB used: 23.41 GiB (2.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: PC SN730 SDBPNTY-1T00-1006 size: 953.87 GiB block-size: 
  physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD 
  serial: <filter> rev: HPS2 temp: 34.9 C scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 790.16 GiB size: 776.68 GiB (98.29%) 
  used: 23.36 GiB (3.0%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-2ee7a1ba-8adb-4f6f-a13d-e555ed19d9bd label: N/A 
  uuid: 403f112b-1702-45ed-a929-c45d3823ec77 
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) 
  used: 60 MiB (23.4%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  label: SYSTEM uuid: 18B8-834A 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 162.93 GiB fs: ntfs label: Windows 
  uuid: 9C34BA6134BA3DD8 
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 511 MiB fs: ntfs 
  label: Windows RE tools uuid: 747E102D7E0FE6A8 
USB:
  Hub-1: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-2:5 
  info: Microsoft 2.4GHz Transceiver v8.0 used by mouse Wireless Desktop 900 
  type: Keyboard,Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 045e:07b2 class-ID: 0300 
  Device-2: 3-3:3 info: Luxvisions Innotech Limited HP Wide Vision HD Camera 
  type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s 
  power: 500mA chip-ID: 30c9:000e class-ID: 0e02 
  Device-3: 3-4:4 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029 
  class-ID: e001 
  Hub-2: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  GPU: device: nvidia screen: :0.0 temp: 43 C device: amdgpu temp: 42.0 C 
Info:
  Processes: 401 Uptime: 20h 9m wakeups: 3 Init: systemd v: 248 
  tool: systemctl Compilers: gcc: 11.1.0 Packages: 1325 pacman: 1318 lib: 369 
  flatpak: 0 snap: 7 Shell: Zsh v: 5.8 default: Bash v: 5.1.8 
  running-in: yakuake inxi: 3.3.06 

saw in some other threads modification to pulse rules, this is the current rule state… not clear to me if any of this is problematic.

# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1"

# Remove NVIDIA USB Type-C UCSI devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1"

# Remove NVIDIA Audio devices, if present (enable it for kernels lower than 5.5)
#ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"

# Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"
1 Like

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and press the three dots below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

:+1:

P.S. If you want to notify me that you did provide this information, please :heart: this message and I’ll come back and have another look.

1 Like

Driver is loaded, so that’s good.

  1. Have you tried another HDMI cable yet?
  2. I suppose the HDMI is hooked up to a TV with internal speakers and not external ones?
    If that’s not the case, remove the external speakers / amplifier / … and try again.

:thinking:

1 Like

Open pavucontrol and go to “Configuration”:

Nothing here?

Also:

It is a bad idea to have both enabled. Stop pipewire or pulseaudio.

2 Likes

Installed pavucontrol and it just shows the laptop built-in device (I do get audio out of the laptop speakers). No sign of the HDMI device.

Screenshot_20210907_120745

Stopped PulseAudio as I read somewhere PipeWire is needed for KDE?

Only have the one handy but it works on my other system, it’s an ASUS monitor with built-ins.

So it is not possible to enable it on the configuration? I mean, when I disable the HDMI output on the configuration then it will also not be displayed on the output devices.

1 Like

No I only see the one device for the laptop speakers.

I had to install pavucontrol manually fwiw.

Are there 2 cards present?

pactl list cards short

returns just one…

0 alsa_card.pci-0000_06_00.6 module-alsa-card.c

1 Like

and this?

sudo lspci -v -k | sed -n "/Audio/,/Kernel modules/p"
1 Like
01:00.1 Audio device: NVIDIA Corporation TU116 High Definition Audio Controller (rev a1)
        Subsystem: Hewlett-Packard Company Device 8786
        Flags: bus master, fast devsel, latency 0, IRQ 55, IOMMU group 10
        Memory at fc080000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
        Subsystem: Hewlett-Packard Company Device 8786
        Flags: bus master, fast devsel, latency 0, IRQ 82, IOMMU group 7
        Memory at fc580000 (32-bit, non-prefetchable) [size=256K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [64] Express Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: snd_rn_pci_acp3x
        Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
        Subsystem: Hewlett-Packard Company Device 8786
        Flags: bus master, fast devsel, latency 0, IRQ 35, IOMMU group 7
        Memory at fc5c0000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [64] Express Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
2 Likes

Stop PipeWire instead of PulseAudio as PipeWire is quite new:

systemctl --user disable --now pipewire.socket && systemctl --user disable --now pipewire.service && systemctl --user mask pipewire.socket

(I’m on KDE and PulseAudio too and it works)

:crossed_fingers:

2 Likes

ok my idea about this:

Since the AMD GPU seems to be the main, and it is hardwired to the internal card, I would say only the internal Soundcard can be addressed, as long as you use the amdgpu as main.

If you need the Nivdia Soundcard for the HDMI output, which must be hardwired to the Nivdia GPU, you have to use the Nvidia Card as main somehow.

Maybe you can switch it with the optimus-manager? Since I have no laptop with a hybrid GPU I can not assist here.

1 Like

Did this and a reboot, no change unfortunately.

Post-reboot I found however that I still need to run optimus-manager --switch nvidia to regain HDMI output to my monitor.

Should I be setting this in a more persistent way somewhere that would perhaps detect HDMI audio as the system boots?

This is unrelated, but hybrid mode, too, should theoretically provide access to the outputs of the nvidia gpu.

Strange, confirmed HDMI video works in hybrid but couldn’t test audio as it effectively locks up the system to where the mouse moves max 2 frames per minute. Reproducible.

  • What does lock op the system? Playing audio or optimus-manager --switch nvidia all by itself?
  • How do you get out of the lock-up? Switching back or a REISUB?

If you tell me now “By pressing the power button”, please read all of this:

:scream:

optimus-manager --switch hybrid causes it, its not a “smother it with a pillow” hard lock, but unusable beyond getting back to terminal.

Reversion to --switch nvidia clears it up.

1 Like

@nikgnomic We need a pro here…

:+1: