HDMI sound issue on nvidia laptop. no sound Help!!

HI, I am using suselinux on nvidia laptop that uses nvidia HDMI sound on windows but no HDMI sound linux. aplay or lspci doesn’t even show the nvidia audio device. I have nvidia graphic driver install but that doesn’t do anygood . I actually prefer the nouvea driver installed nvidia driver just for this issue. I am useing nvidia driver from Tumbleweed Nvidia repo version NVIDIA-SMI 470.57.02 . Is there a fix to this or a workaround to use HDMI audio in linux.

There are many things to try, and I don’t know which ones you have done so far.

openSUSE (even Tumbleweed with pipewire) via pulse audio provides the capability to direct sound from individual applications, to different hardware sound output devices. So if you have not checked for this ( ??? ) its entirely possible the sound is being directed to the wrong output device.

Before we dive in ‘too deep’ into your setup, have you tried installing ‘pavucontrol’ (pulse audio volume control) and make certain the correct HDMI configuration is selected, and then when playing audio ensure that pavucontrol is sending the audio to the correct output device?
.

If you see no HDMI selections in pavucontrol, then some more info might be useful. Please as a regular user, in an xterm/konsole, with PC connected to the internet, send this command:

/usr/sbin/alsa-info.sh

and select the UPLOAD/SHARE option, … let the script run to completion. Then look in the xterm/konsole, and it will give you a URL where diagnostic info was uploaded. Please copy that URL/address link (only) here and we can take a look at it and see if it gives any hints.
.

Pavucontrol doesn’t show any hdmi input device. Here is the alsa-info.sh generated link:
http://alsa-project.org/db/?f=38b4a56f045f0f97b1555ad0ce131925b3e16137

Show


inxi -AGxxxz

HDMI cannot input, can only output.
According to alsa info script you can only use ‘Realtek ALC255’.
ILL you need proper settings to a video driver.

Yes, clearly the HDMI is not detected. The only reference I saw for HMDI was in the dmesg


    0.207478] ACPI: Added _OSI(Linux-Dell-Video)
**    0.207478] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)**
    0.207478] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)

where IMHO that is insufficient to activate the HDMI. Further that referneces “Lenovo” while your laptop is an Acer Nitro.

This looks like an optimus equipped laptop … where I don’t have any experience with optimus.

I surfed a bit to learn others have a similar issue with this hardware. Some have (what appears to me) to be weird solutions, such as what I saw in this Ubuntu thread (albeit their optimius hardware is different from yours: https://askubuntu.com/questions/444132/hdmi-audio-on-optimus-system )

Hopefully someone on our forum with optimus hardware will chime in. If not, then you may be in bug reporting territory.

https://www.kernel.org/doc/html/v5.9/firmware-guide/acpi/osi.html

inxi -AGxxxz output shows this:

Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Acer Incorporated ALI
driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
Device-2: NVIDIA GP107M [GeForce GTX 1050 3 GB Max-Q] vendor: Acer Incorporated ALI
driver: nvidia v: 470.57.02 bus-ID: 01:00.0 chip-ID: 10de:1c91 class-ID: 0300
Device-3: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 1-5:2
chip-ID: 0408:a061 class-ID: 0e02
Display: x11 server: X.org 1.20.11 compositor: compiz v: 0.8.18 driver:
loaded: modesetting failed: nvidia resolution: <missing: xdpyinfo>
OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.1.6
compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
Sound Server-1: ALSA v: k5.13.6-1-default running: yes
Sound Server-2: JACK v: 1.9.18 running: no
Sound Server-3: PulseAudio v: 14.2-rebootstrapped running: yes
Sound Server-4: PipeWire v: 0.3.31 running: no

aplay -l shows the following :
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

I tried mxlinux live usb IT does detect the nvidia audio card. Am I missing something on that’s required in the system for the nvidia audio to be detected??
If not Is there any workaround that can be done with current system ??

compositor: compiz

  • what DE you are using?

Use Code tags for code: button #.

Nvidia-smi is not a driver: https://developer.nvidia.com/nvidia-system-management-interface

Your video drivers are not properly set.
Try to use Leap.

Do you really need HDMI sound output? It provides low sound quality with builtin speakers.

Post laptop model.

[QUOTE=Svyatko;3059546]- what DE you are using?

I am just using standalone compiz with emerald no DE. The nvidia driver is just the thumbleweed default.The xorg.conf has be setup by suse-prime.
I really do need HDMI audio to work for what I am trying to accomplish actually. It would be a great help I someone could help me out here Please.

There might be.

What kernel version is mxlinux live USB using? What graphic driver is mxlinux live usb using? Is mxlinux live usb using pulse? pipewire? Knowing that might give some hints as to the issue and how to configure openSUSE.

Hi, Here are the mxlinux info you asked:

kernel : 4.19.0-16-amd64 #1 SMP debian 4.19.181-1 (2021-03-19)
no pipewire 
yes pulseaudio 
nvidia-detect is installed  no nvidia driver installed 
nouveau is instealled 
no intel drivers installed 
has intel sound firmware 
opengl renderer llvmpipe

Here are more commands and tools in mxlinux to view information:


$ inxi -GAxxxz
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Acer Incorporated ALI driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA vendor: Acer Incorporated ALI driver: N/A bus ID: 01:00.0 
           chip ID: 10de:1c91 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) 
           v: 4.5 Mesa 18.3.6 compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:a348 
           Device-2: NVIDIA GP107GL High Definition Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0fb9 
           Sound Server: ALSA v: k4.19.0-16-amd64 
       
       
$ aplay -l 
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  

Output from quick system info tool:


System:    Host: <filter> Kernel: 4.19.0-16-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 
           parameters: BOOT_IMAGE=/antiX/vmlinuz quiet splasht nosplash 
           Desktop: Fluxbox 1.3.7 dm: LightDM 1.26.0 
           Distro: MX-19.4_x64 patito feo March 31  2021 base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Laptop System: Acer product: Nitro AN515-54 v: V1.31 serial: <filter> 
           Mobo: CFL model: Octavia_CFS v: V1.31 serial: <filter> UEFI: Insyde v: 1.31 
           date: 06/29/2020 
Battery:   ID-1: BAT1 charge: 42.3 Wh condition: 54.6/57.5 Wh (95%) volts: 16.0/15.4 
           model: LGC AP18E8M type: Li-ion serial: <filter> status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i5-9300H bits: 64 type: MT MCP arch: Kaby Lake 
           family: 6 model-id: 9E (158) stepping: A (10) microcode: CC L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38400 
           Speed: 900 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 
           5: 900 6: 900 7: 901 8: 901 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           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 generic retpoline, IBPB: conditional, IBRS_FW, 
           STIBP: conditional, RSB filling 
           Type: srbds status: Vulnerable: No microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Acer Incorporated ALI driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:3e9b 
           Device-2: NVIDIA vendor: Acer Incorporated ALI driver: N/A bus ID: 01:00.0 
           chip ID: 10de:1c91 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) 
           v: 4.5 Mesa 18.3.6 compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:a348 
           Device-2: NVIDIA GP107GL High Definition Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0fb9 
           Sound Server: ALSA v: k4.19.0-16-amd64 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel 
           port: 5000 bus ID: 00:14.3 chip ID: 8086:a370 
           IF: wlan0 state: down mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000 bus ID: 06:00.0 
           chip ID: 10ec:8168 
           IF: eth0 state: down mac: <filter> 
Drives:    Local Storage: total: 946.05 GiB used: 27.62 GiB (2.9%) 
           ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-21Z10T0 size: 931.51 GiB 
           block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 1A02 scheme: GPT 
           ID-2: /dev/sdb type: USB vendor: Kingston model: DataTraveler 2.0 size: 14.54 GiB 
           block size: physical: 512 B logical: 512 B serial: <filter> rev: PMAP scheme: MBR 
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 
           port: 5060 bus ID: 00:17.0 chip ID: 8086.282a rev: 10 
Partition: ID-1: / raw size: N/A size: 6.04 GiB used: 55.0 MiB (0.9%) fs: overlay 
           source: ERR-102 
Sensors:   System Temperatures: cpu: 50.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mxrepo.com/mx/repo/ buster main non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 256 Uptime: 3m Memory: 7.63 GiB used: 564.2 MiB (7.2%) Init: SysVinit 
           v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: quick-system-in 
           running in: quick-system-in inxi: 3.0.36 
Video Tweaks:
Detected possible Hybrid Graphics

ILL nouveau drivers conflict with Nvidia drivers.
Try to configure audio after clean install without installing Nvidia drivers.

drivers are fine on suse.

 
 ~ $ ] lsmod  | grep nouveau
  ~ $ ] lsmod  | grep nvidia
nvidia_drm             69632  7
nvidia_modeset       1200128  9 nvidia_drm
nvidia_uvm           1179648  0
nvidia              35315712  402 nvidia_uvm,nvidia_modeset
drm_kms_helper        294912  2 nvidia_drm,i915
drm                   577536  12 drm_kms_helper,nvidia,nvidia_drm,i915

Is there any workaround for the hdmi audio to work ?? Why Is aplay not detecting the nvidia driver is it something to do with the kernel??

Its possible its the kernel, but IMHO its more likely something along the lines of Svyatko’s thinking here, with something associated with the graphic driver (providing sound interface functionality) for your Nvidia hardware.

Its not clear to me at all what graphic driver device-2 mxlinux is using. What ever it is, it appears it has allowed a second instance of the audio (alsa) snd_hda_intel driver to load on mxlinux, while the same is not happening on openSUSE.

Does “lsmod | grep nvidia” on mxlinux give you the same output as on openSUSE?

No there is no nvidia driver installed . The command has no output.

I am not very knowledgeable in graphic drivers - but I sense that is the issue, where the graphic driver that goes with the HDMI hardware device, is not communicating sufficiently with the kernel on openSUSE to allow an audio driver for the HDMI to be identified/loaded.

What graphic driver is mxlinux using? Have you installed the same driver on openSUSE?

How can I output hdmi audio . Is there any workaround using pipewire or something else??