Sound only plays from one of the HDMI devices connected to NVIDIA card

I have recently installed manjaro XFCE with pipewire-alsa and manjaro-pipewire but I can´t manage to play sound from one of the two monitors I have connected to an NVIDIA card.

> cat /proc/asound/cards
 0 [MPM4000U       ]: USB-Audio - MPM-4000U
                      Marantz Pro MPM-4000U at usb-0000:0a:00.3-4, full speed
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 120
 2 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf7a00000 irq 122

Alsa recognizes three cards. pavucontrol also lets me chose between three options to play audio but selecting the HDMI option sound plays through my second monitor when I want it to play in my main monitor.

My main monitor appears in the list of available devices as card 1: NVidia [HDA NVidia], device 7: HDMI 1 [VG27A], and my second monitor as card 1: NVidia [HDA NVidia], device 3: HDMI 0 [ZOWIE XL LCD].

> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MPM4000U [MPM-4000U], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [ZOWIE XL LCD]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [VG27A]
  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: Generic [HD-Audio Generic], device 0: ALCS1200A Analog [ALCS1200A Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic [HD-Audio Generic], device 1: ALCS1200A Digital [ALCS1200A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Is there any change I can do so selecting the HDMI option in pavucontrol prioritizes my main monitor?

Go to the Configuration tab in pavucontrol (pavucontrol --tab=5)
Click on the Profile: drop-down menu for the nVidia device
and select the Profile for the 2nd HDMI output

pavucontrol profiles use different numbering for audio devices to ALSA starting from 1 instead of 0
so the first device in ALSA (HDMI 0) will be shown as HDMI
and 2nd device (HDMI 1) will be HDMI 2

Or use this command to show all the card profiles

pactl list cards

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.