You are not logged in.

#1 2023-09-09 19:29:48

nontriviality
Member
Registered: 2021-05-09
Posts: 17

Can't get sound to play on HDMI monitor

Hey, I have BenQ monitor and I can't get any sound to play on it. The sound on my headphones works just fine:

Out of aplay -l:

```
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [BenQ GW2480]
  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 1: Generic [HD-Audio Generic], device 0: ALCS1200A
Analog [ALCS1200A Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALCS1200A
Digital [ALCS1200A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 2: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 3: J300 [JBL Quantum 300], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
```

I checked alsamixer and nothing is muted.

Offline

#2 2023-09-09 20:10:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Can't get sound to play on HDMI monitor

Please use [code][/code] tags, the bbs predates markdown by a decade or so. Edit your post in this regard.

aplay -L
speaker-test -c2 -D <hw here>
speaker-test -c2 -D <hw here>
speaker-test -c2 -D hdmi:CARD=NVidia,DEV=0 # eg.! check your actual device list

Offline

#3 2023-09-09 20:23:07

nontriviality
Member
Registered: 2021-05-09
Posts: 17

Re: Can't get sound to play on HDMI monitor

aplay -L

null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, BenQ GW2480
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
sysdefault:CARD=Generic
    HD-Audio Generic, ALCS1200A Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    Front output / input
surround21:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
    HD-Audio Generic, ALCS1200A Digital
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
sysdefault:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
front:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Front output / input
surround21:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Loopback
    Loopback
    USB Stream Output
sysdefault:CARD=J300
    JBL Quantum 300, USB Audio
    Default Audio Device
front:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    Front output / input
surround21:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=J300,DEV=0
    JBL Quantum 300, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=J300
    JBL Quantum 300
    USB Stream Output

And when I test the speaker on the BenQ:

speaker-test 1.2.9

Playback device is hdmi:CARD=NVidia,DEV=0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Write error: -77,File descriptor in bad state
xrun_recovery failed: -77,File descriptor in bad state
Transfer failed: File descriptor in bad state

Offline

#4 2023-09-09 20:36:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Can't get sound to play on HDMI monitor

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

On a limb:
https://wiki.archlinux.org/title/NVIDIA … de_setting

Offline

#5 2023-09-09 20:40:41

nontriviality
Member
Registered: 2021-05-09
Posts: 17

Re: Can't get sound to play on HDMI monitor

Offline

#6 2023-09-09 20:44:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Can't get sound to play on HDMI monitor

Sep 09 15:19:03 a systemd[1]: Mounted /home/a/Windows10.

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Offline

#7 2023-09-09 22:57:00

nontriviality
Member
Registered: 2021-05-09
Posts: 17

Re: Can't get sound to play on HDMI monitor

Disabled fast start and hibernation, still haven't got the sound to work.

Offline

#8 2023-09-10 06:20:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Can't get sound to play on HDMI monitor

Do you still get "Write error: -77,File descriptor in bad state" for the speaker-test?

Offline

#9 2023-09-10 12:56:02

nontriviality
Member
Registered: 2021-05-09
Posts: 17

Re: Can't get sound to play on HDMI monitor

Yes, same error.

Offline

#10 2023-09-10 13:29:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Can't get sound to play on HDMI monitor

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#11 2023-09-10 14:20:15

nontriviality
Member
Registered: 2021-05-09
Posts: 17

Re: Can't get sound to play on HDMI monitor

Offline

#12 2023-09-10 14:25:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Can't get sound to play on HDMI monitor

Sep 10 08:54:21 a systemd[570]: Listening on PipeWire Multimedia System Socket.
Sep 10 08:54:23 a dbus-daemon[527]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.13' (uid=1000 pid=768 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Sep 10 08:54:23 a pulseaudio[768]: The decibel volume range for element 'Mic' (-5200 dB - -200 dB) has negative maximum. Disabling the decibel range.
pacman -Qs 'wire|pulse'

You do get sound otherwise?

You probably want to switch to pipewire and pipewire-pulse but first test to first stop pulseaudio and then the speaker-test again.

Offline

#13 2023-09-10 15:37:48

nontriviality
Member
Registered: 2021-05-09
Posts: 17

Re: Can't get sound to play on HDMI monitor

Speaker test gives same error. No luck.

I'm not sure what pipewire is. How should I switch to it?

Offline

#14 2023-09-10 15:40:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,101

Re: Can't get sound to play on HDMI monitor

https://wiki.archlinux.org/title/PipeWire but w/ the file error remaining I'd at best be mildly optimistic.

Offline

Board footer

Powered by FluxBB