No sound via Nvidia HDMI

Hello all, I’m trying to get audio output via HDMI port on Nvidia card in my laptop (yes, Optimus) with no success yet.
lspci:


00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31)
00:15.1 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #1 (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #3 (rev f1)
00:1c.3 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #4 (rev f1)
00:1f.0 ISA bridge: Intel Corporation HM175 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)

pacmd list-cards/sinks see in the next message in the thread
aplay -l:


**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: S112 [SMSL M7 1.1.2], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Output of alsa-info.sh is herepavucontrol shows a lot of Digital Stereo/Surround entries in the GP107GL profile list in the config tab, but all of them are “unplugged”.
I’ve read the discussion in the Nvidia forum : “For some reason, a lot of recent laptops are set up to boot with the GPU’s PCI audio function disabled. I haven’t done much investigation, but you can turn on the audio function and make the kernel see it by setting the appropriate PCI configuration bit and then telling the kernel to rescan the PCI bus on the PCI bridge the GPU is connected to.” Can it be still the problem? If yes, than how to fix it for Nouveau driver? All the solutitions there were done for Nvidia drivers AFAIK

setpci -s 01:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-drm nvidia-modeset nvidia
echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove 
echo 1 > /sys/bus/pci/devices/0000:00:01.0/rescan
modprobe nvidia-drm 
xinit -- -retro

and convert them to the Nouveau case is not an easy task for such a dumb user as me. I’m testing audio output with the Denon AVR1908 receiver if it makes the difference. Receiver power cycle did not give any result.

pacmd list-cards:


3 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xa4000000 irq 17"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fb9"
                device.product.name = "GP107GL High Definition Audio Controller"
                device.string = "1"
                device.description = "GP107GL High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) выход (priority 5900, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) выход (priority 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) выход (priority 800, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) выход (priority 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) выход (priority 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) выход (priority 600, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) выход (priority 5700, available: no)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) выход (priority 600, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) выход (priority 600, available: no)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) выход (priority 5700, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) выход (priority 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) выход (priority 600, available: no)
                off: Выключено (priority 0, available: unknown)
        active profile: <off>
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.pci-0000_00_1f.3>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xa4520000 irq 132"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a171"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Встроенное аудио"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Аналоговый стерео вход (priority 65, available: unknown)
                output:analog-stereo: Аналоговый стерео выход (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Аналоговый стерео дуплекс (priority 6565, available: unknown)
                off: Выключено (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Встроенное аудио Аналоговый стерео
        sources:
                alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Встроенное аудио Аналоговый стерео
                alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Встроенное аудио Аналоговый стерео
        ports:
                analog-input-internal-mic: Встроенный микрофон (priority 8900, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-headset-mic: Микрофон гарнитуры (priority 8800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Динамики (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Наушники (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
    index: 2
        name: <alsa_card.usb-SMSL_SMSL_M7_1.1.2-00>
        driver: <module-alsa-card.c>
        owner module: 28
        properties:
                alsa.card = "2"
                alsa.card_name = "SMSL M7 1.1.2"
                alsa.long_card_name = "SMSL SMSL M7 1.1.2 at usb-0000:00:14.0-5, high speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:5:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/sound/card2"
                udev.id = "usb-SMSL_SMSL_M7_1.1.2-00"
                device.bus = "usb"
                device.vendor.id = "152a"
                device.vendor.name = "Thesycon Systemsoftware & Consulting GmbH"
                device.product.id = "85dd"
                device.product.name = "SMSL M7 1.1.2"
                device.serial = "SMSL_SMSL_M7_1.1.2"
                device.string = "2"
                device.description = "SMSL M7 1.1.2"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        profiles:
                output:analog-stereo: Аналоговый стерео выход (priority 6500, available: unknown)
                output:iec958-stereo: Цифровой стерео (IEC958) выход (priority 5500, available: unknown)
                off: Выключено (priority 0, available: unknown)
        active profile: <output:iec958-stereo>
        sinks:
                alsa_output.usb-SMSL_SMSL_M7_1.1.2-00.iec958-stereo/#2: SMSL M7 1.1.2 Цифровой стерео (IEC958)
        sources:
                 alsa_output.usb-SMSL_SMSL_M7_1.1.2-00.iec958-stereo.monitor/#3: Monitor  of SMSL M7 1.1.2 Цифровой стерео (IEC958)
        ports:
                analog-output: Аналоговый выход (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

                iec958-stereo-output: Цифровой выход (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

pacmd list-sinks:


2 sink(s) available.
    index: 0
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: IDLE
        suspend cause: (none)
        priority: 9039
        volume: front-left: 49807 /  76% / -7,15 dB,   front-right: 49807 /  76% / -7,15 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 46,37 ms
        max request: 7 KiB
        max rewind: 7 KiB
        monitor source: 0
        sample spec: s16le 2-канальный 4410
        channel map: front-left,front-right
                     Стерео
        used by: 0
        linked by: 1
        configured latency: 46,00 ms; range is 46,00 .. 2000,00 ms
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC255 Analog"
                alsa.id = "ALC255 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xa4520000 irq 132"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a171"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Аналоговый стерео"
                device.description = "Встроенное аудио Аналоговый стерео"
                alsa.mixer_name = "Realtek ALC255"
                alsa.components = "HDA:10ec0255,10251196,00100002"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Динамики (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Наушники (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>
  * index: 2
        name: <alsa_output.usb-SMSL_SMSL_M7_1.1.2-00.iec958-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: IDLE
        suspend cause: (none)
        priority: 9048
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 42,33 ms
        max request: 15 KiB
        max rewind: 15 KiB
        monitor source: 3
        sample spec: s32le 2-канальный 4410
        channel map: front-left,front-right
                     Стерео
        used by: 0
        linked by: 3
        configured latency: 46,00 ms; range is 46,00 .. 2000,00 ms
        card: 2 <alsa_card.usb-SMSL_SMSL_M7_1.1.2-00>
        module: 28
        properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "2"
                alsa.card_name = "SMSL M7 1.1.2"
                alsa.long_card_name = "SMSL SMSL M7 1.1.2 at usb-0000:00:14.0-5, high speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:5:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/sound/card2"
                udev.id = "usb-SMSL_SMSL_M7_1.1.2-00"
                device.bus = "usb"
                device.vendor.id = "152a"
                device.vendor.name = "Thesycon Systemsoftware & Consulting GmbH"
                device.product.id = "85dd"
                device.product.name = "SMSL M7 1.1.2"
                device.serial = "SMSL_SMSL_M7_1.1.2"
                device.string = "iec958:2"
                device.buffering.buffer_size = "705600"
                device.buffering.fragment_size = "352800"
                device.access_mode = "mmap+timer"
                device.profile.name = "iec958-stereo"
                device.profile.description = "Цифровой стерео (IEC958)"
                device.description = "SMSL M7 1.1.2 Цифровой стерео (IEC958)"
                alsa.mixer_name = "USB Mixer"
                alsa.components = "USB152a:85dd"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        ports:
                iec958-stereo-output: Цифровой выход (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

        active port: <iec958-stereo-output>

  1. Perform tests with unplugged SMSL M7.
  2. You want to use nouveau drivers instead of nVidia?

active profile: <off>

Maybe you need to turn on HDMI output?

Done, no sound from HDMI

I’m using nouveau drivers now and would like to leave them in place if possible. I think receipt above can be applied to nouveau case as well. But I don’t know which drivers (instead of nvidia-drm nvidia-modeset nvidia) need to be unloaded and reloaded again.

Done for all possible profiles, no results.
pacmd list-cards:


2 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xa4000000 irq 17"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fb9"
                device.product.name = "GP107GL High Definition Audio Controller"
                device.string = "1"
                device.description = "GP107GL High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) выход (priority 5900, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) выход (priority 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) выход (priority 800, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) выход (priority 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) выход (priority 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) выход (priority 600, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) выход (priority 5700, available: no)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) выход (priority 600, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) выход (priority 600, available: no)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) выход (priority 5700, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) выход (priority 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) выход (priority 600, available: no)
                off: Выключено (priority 0, available: unknown)
        active profile: <output:hdmi-stereo-extra2>
        sinks:
                alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2/#4: GP107GL High Definition Audio Controller Digital Stereo (HDMI 3)
        sources:
                alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor/#5: Monitor of GP107GL High Definition Audio Controller Digital Stereo (HDMI 3)
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.pci-0000_00_1f.3>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xa4520000 irq 132"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a171"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Встроенное аудио"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Аналоговый стерео вход (priority 65, available: unknown)
                output:analog-stereo: Аналоговый стерео выход (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Аналоговый стерео дуплекс (priority 6565, available: unknown)
                off: Выключено (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Встроенное аудио Аналоговый стерео
        sources:
                alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Встроенное аудио Аналоговый стерео
                alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Встроенное аудио Аналоговый стерео
        ports:
                analog-input-internal-mic: Встроенный микрофон (priority 8900, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-headset-mic: Микрофон гарнитуры (priority 8800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Динамики (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Наушники (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"

@valent314:

If you’re using KDE Plasma, check the volume controls → right-click the Volume Control Plasmoid –

  • With multiple output channels, I’ve, a few minutes ago, experienced that the HDMI volume control was set to only about 5 % – admittedly, it wasn’t the standard output, but …

Been there, done that. No luck. I think “disable” (in pavucontrol), “available: no” (in pacmd list-cards) for all HDMI profiles and the HDMI sink missing in the list-sinks do mean something more essential.

I would like to try and help , and I propose stepping a back a bit with a more basic test.

By default, openSUSE will send audio to sound-card-0, which in your PC case is PCH (using an ALC255 Analog) and not Nvidia HDMI.

From the APLAY output, its clear your PC’s HDMI devices are hw:1,3 and hw:1,7 and hw:1,8 and hw:1,9.

As to which one of those 4 HDMI devices is the correct one for audio output to your HDMI device, I do not know. You will need to determine that.

Typically the easiest way to do such, is to launch “Pulse Audio Volume Control” (pavucontrol) and tune your output audio with that applications ‘configuration’ tab. Often one needs to install ‘pavucontrol’ if not already installed. I believe you have (had ? ) it installed. You make reference to pauvcontrol in one of your posts which I do not understand.

Still - lets try testing by bypassing pulse audio for a very simple test .

If you simply wish to do basic testing, to confirm basic HDMI audio works (when it is appropriately setup best that you can) you can try each of the following commands in a konsole/xterm, 1st as a regular user, and if that unsuccessful to generate any sound, try again with ‘root’ permissions (in case there is a permissions issue).

Testing hw:1,3


pasuspender -- aplay -D plughw:1,3 /usr/share/sounds/alsa/test.wav

Testing hw:1,7


pasuspender -- aplay -D plughw:1,7 /usr/share/sounds/alsa/test.wav

Testing hw:1,8


pasuspender -- aplay -D plughw:1,8 /usr/share/sounds/alsa/test.wav

Testing hw:1,9


pasuspender -- aplay -D plughw:1,9 /usr/share/sounds/alsa/test.wav

Again, try both as a regular user, and then with root permissions (if regular user not successful). If sound does not work in any of the above, report back here of ANY errors any of the above give.

EDIT: Pay VERY careful to the syntax in the above. It may be best for you to simply copy and paste what I typed on a command by command basis.

Thank you for your help, but unfortunately all the pasuspender calls as regular user finished with no errors and no sound, just a

Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

message.
All the calls as root finished with

Connection failure: Connection refused
pa_context_connect() failed: Invalid argument

error.
Yes, pavucontrol is installed in my system
Yes, I was extremely carefull and used copy/paste to enter commands mentioned

Hmmm … no sound at all ? Not even a bit more of a hiss with one of those commands?

That suggests application is playing the sound but is not correctly connected to a device for the audio to be played via the HDMI.

Every system is different - on my PC sound works as a regular user, and if I try as user root, I get the same behaviour you obtained as a regular user with no error messages. I don’t know if that ‘user root’ error is significant.

I think you should have obtained sound as a regular user from one of those commands. But you didn’t.

Assuming nothing misconfigured in your mixer for sound (and I couldn’t see anything wrong with it when I looked at the script output) then I suspect there could be an alsa driver issue with the NVIDIA hardware, as you inferred in your post. The alsa driver comes with the kernel.

If it were me, at this point, I would write a bug report on openSUSE LEAP-15.2 kernel, noting sound does not work with your NVIDIA hardware. That will get the attention of one GNU/Linux’s alsa driver developers, and if he doesn’t solve the problem he may point you quicker in the right direction to sort the issue.

There is guidance for writing bug reports here: openSUSE:Submitting bug reports - openSUSE Wiki … I think you can log on to buzilla using your openSUSE forum username and password < not sure thou > . The openSUSE sound packager (who is an alsa developer) will NOT read a forum thread, so you need to ensure your bug report succinctly contains the relevant information. Be certain to attach to the bug report the output of the diagnostic script ‘alsa-info.sh’ that you ran earlier.

Good luck - but given this very VERY basic test yielded no sound , then I don’t think I can help further.

Not at all, unless my ears got a very specific filter in.

Thank you very much for your efforts.

Sometimes it depends on how new the machine is.
Newer machines needs the latest HDMI cables probably to detect the audio, else it will just show as unplugged in pavucontrol.

Yes, check cables.
And check whether HDMI outputs are unmuted with

alsamixer

IMHO thats excellent advice.

IMHO the OP already did that and posted such by providing a link to the diagnostic script.

This (below) is the OPs alsamixer settings (as reported by ‘amixer’) provided by the OP, and when I checked them in support of the OP I believe they look ok for HDMI, unless I missed something.





  1. !!Amixer output 
  1. !!------------- 
  1. !!-------Mixer controls for card 0 [PCH] 
  1. Card hw:0 'PCH'/'HDA Intel PCH at 0xa4520000 irq 132' 
  1.   Mixer name    : 'Realtek ALC255' 
  1.   Components    : 'HDA:10ec0255,10251196,00100002' 
  1.   Controls      : 25 
  1.   Simple ctrls  : 13 
  1. Simple mixer control 'Master',0 
  1.   Capabilities: pvolume pvolume-joined pswitch pswitch-joined 
  1.   Playback channels: Mono 
  1.   Limits: Playback 0 - 87 
  1.   Mono: Playback 77 [89%] -7.50dB] [on] 
  1. Simple mixer control 'Headphone',0 
  1.   Capabilities: pvolume pswitch 
  1.   Playback channels: Front Left - Front Right 
  1.   Limits: Playback 0 - 87 
  1.   Mono: 
  1.   Front Left: Playback 0 [0%] -65.25dB] [off] 
  1.   Front Right: Playback 0 [0%] -65.25dB] [off] 
  1. Simple mixer control 'Speaker',0 
  1.   Capabilities: pvolume pswitch 
  1.   Playback channels: Front Left - Front Right 
  1.   Limits: Playback 0 - 87 
  1.   Mono: 
  1.   Front Left: Playback 87 [100%] [0.00dB] [on] 
  1.   Front Right: Playback 87 [100%] [0.00dB] [on] 
  1. Simple mixer control 'PCM',0 
  1.   Capabilities: pvolume 
  1.   Playback channels: Front Left - Front Right 
  1.   Limits: Playback 0 - 255 
  1.   Mono: 
  1.   Front Left: Playback 255 [100%] [0.00dB] 
  1.   Front Right: Playback 255 [100%] [0.00dB] 
  1. Simple mixer control 'Mic Mute-LED Mode',0 
  1.   Capabilities: enum 
  1.   Items: 'On' 'Off' 'Follow Capture' 'Follow Mute' 
  1.   Item0: 'Follow Mute' 
  1. Simple mixer control 'Beep',0 
  1.   Capabilities: pvolume pswitch 
  1.   Playback channels: Front Left - Front Right 
  1.   Limits: Playback 0 - 31 
  1.   Mono: 
  1.   Front Left: Playback 0 [0%] -34.50dB] [on] 
  1.   Front Right: Playback 0 [0%] -34.50dB] [on] 
  1. Simple mixer control 'Capture',0 
  1.   Capabilities: cvolume cswitch 
  1.   Capture channels: Front Left - Front Right 
  1.   Limits: Capture 0 - 63 
  1.   Front Left: Capture 39 [62%] [12.00dB] [on] 
  1.   Front Right: Capture 39 [62%] [12.00dB] [on] 
  1. Simple mixer control 'Auto-Mute Mode',0 
  1.   Capabilities: enum 
  1.   Items: 'Disabled' 'Enabled' 
  1.   Item0: 'Enabled' 
  1. Simple mixer control 'Headset Mic',0 
  1.   Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive 
  1.   Capture exclusive group: 0 
  1.   Playback channels: Front Left - Front Right 
  1.   Capture channels: Mono 
  1.   Limits: Playback 0 - 31 
  1.   Mono: Capture [off] 
  1.   Front Left: Playback 0 [0%] -34.50dB] [on] 
  1.   Front Right: Playback 0 [0%] -34.50dB] [on] 
  1. Simple mixer control 'Headset Mic Boost',0 
  1.   Capabilities: volume 
  1.   Playback channels: Front Left - Front Right 
  1.   Capture channels: Front Left - Front Right 
  1.   Limits: 0 - 3 
  1.   Front Left: 0 [0%] [0.00dB] 
  1.   Front Right: 0 [0%] [0.00dB] 
  1. Simple mixer control 'Internal Mic',0 
  1.   Capabilities: cswitch cswitch-joined cswitch-exclusive 
  1.   Capture exclusive group: 0 
  1.   Capture channels: Mono 
  1.   Mono: Capture [on] 
  1. Simple mixer control 'Internal Mic Boost',0 
  1.   Capabilities: volume 
  1.   Playback channels: Front Left - Front Right 
  1.   Capture channels: Front Left - Front Right 
  1.   Limits: 0 - 3 
  1.   Front Left: 0 [0%] [0.00dB] 
  1.   Front Right: 0 [0%] [0.00dB] 
  1. Simple mixer control 'Loopback Mixing',0 
  1.   Capabilities: enum 
  1.   Items: 'Disabled' 'Enabled' 
  1.   Item0: 'Disabled' 
  1. !!-------Mixer controls for card 1 [NVidia] 
  1. Card hw:1 'NVidia'/'HDA NVidia at 0xa4000000 irq 17' 
  1.   Mixer name    : 'Nvidia GPU 80 HDMI/DP' 
  1.   Components    : 'HDA:10de0080,10251199,00100100' 
  1.   Controls      : 28 
  1.   Simple ctrls  : 4 
  1. Simple mixer control 'IEC958',0 
  1.   Capabilities: pswitch pswitch-joined 
  1.   Playback channels: Mono 
  1.   Mono: Playback [on] 
  1. Simple mixer control 'IEC958',1 
  1.   Capabilities: pswitch pswitch-joined 
  1.   Playback channels: Mono 
  1.   Mono: Playback [on] 
  1. Simple mixer control 'IEC958',2 
  1.   Capabilities: pswitch pswitch-joined 
  1.   Playback channels: Mono 
  1.   Mono: Playback [on] 
  1. Simple mixer control 'IEC958',3 
  1.   Capabilities: pswitch pswitch-joined 
  1.   Playback channels: Mono 
  1.   Mono: Playback [on] 



OP has “Simple mixer control ‘IEC958’”, but not “Simple mixer control ‘PCM’”. See “Mixer controls for card 1 [NVidia]”.
Maybe OP can change sound volume by a monitor controls?

Cables were a really good shot, but I made the check much better: my laptop has the Endless OS factory installed, I use it time to time as a backup when something bad happens with OpenSuse. And (surprise!) sound is running well via HDMI under Endless with the same hardware setup. So cables can be acquitted now.

Endless OS is a GNU/Linux distribution. Which version do you have? I note from Distrowatch that version 3.9.2 has v.1.1.8 of alsa-lib and has the 5.10.14 kernel (I believe). OpenSUSE LEAP-15.2 has the 5.3.18 kernel which is much older. Its possible if you update your openSUSE-LEAP-15.2 to a new 3rd party (or development) kernel, this will solve your HDMI problem. (Having typed that, I still think this is worth a bug report on the older openSUSE LEAP-15.2 kernel).

You could check the Endless OS output of the diagnostic script by this command:


 wget http://www.alsa-project.org/alsa-info.sh -O alsa-info.sh && bash alsa-info.sh

and compare it to the openSUSE.

However my guess is you simply need to update to a newer Kernel, and others more knowledgeable / experienced (in updating to 3rd party kernels) on this forum than myself, can explain to you on how to do that.

https://distrowatch.com/table.php?distribution=endless
Kernel 5.8, Mesa 20.1.5.

No need for a 3rd party kernels - just use kernel from openSUSE’s kernel:stable repo.
But you may want to update only Mesa 3D - use X11: XOrg repo for this: https://software.opensuse.org/package/Mesa .

You may check with TW.

Yes - you are correct - 5.8 (I was incorrect). I think it still newer than the openSUSE kernel (5.3.18), so using kernel from openSUSE’s kernel:stable repo. could address the sound problem.

A kernel update could bring other issues (I note you mention Mesa as a consideration) - which is why I propose other’s than myself recommend how to go about this. Tumbleweed is a good idea, but then its a complete re-install.

I have Endless 3.8.7 installed, according to release info it contains 5.4 kernel with fixes from 5.4.41, a bit ahead of 5.3.8 anyway, and proprietary Nvidia drivers 440.64. So the solution is somewhere in these items, Well, now I’ll try to justify update headache with the need of HDMI sound. Thanks to all who stepped into.