You are not logged in.

#1 2024-05-02 09:26:15

ameNiku
Member
Registered: 2024-05-02
Posts: 6

[SOLVED] Sound from two monitors (pipeware)

I have 2 monitors, Iiyama PLG2788H connected via DisplayPort and Iiyama PLX2283H connected via HDMI, both connected to one AMD Radeon RX 6750 XT video card. The problem is that when they are both turned on, the sound comes from the monitor connected via HDMI, but when I turn them on one at a time, the sound works fine for each.
I installed Arch using ArchInstall and chose PipeWare.

$ wpctl status
PipeWire 'pipewire-0' [1.0.5, ame@ame-pc, cookie:1956184672]
 └─ Clients:
        31. WirePlumber                         [1.0.5, ame@ame-pc, pid:763]
        35. pipewire                            [1.0.5, ame@ame-pc, pid:765]
        45. WirePlumber [export]                [1.0.5, ame@ame-pc, pid:763]
        75. xdg-desktop-portal-hyprland         [1.0.5, ame@ame-pc, pid:1199]
        76. waybar                              [1.0.5, ame@ame-pc, pid:959]
        77. waybar                              [1.0.5, ame@ame-pc, pid:959]
        78. telegram-desktop                    [1.0.5, ame@ame-pc, pid:970]
        79. WEBRTC VoiceEngine                  [1.0.5, ame@ame-pc, pid:2180]
        80. WEBRTC VoiceEngine                  [1.0.5, ame@ame-pc, pid:2180]
        81. Chromium input                      [1.0.5, ame@ame-pc, pid:2390]
        82. libcanberra                         [1.0.5, ame@ame-pc, pid:4646]
        83. Chromium input                      [1.0.5, ame@ame-pc, pid:7382]
        84. wpctl                               [1.0.5, ame@ame-pc, pid:21525]
        86. libcanberra                         [1.0.5, ame@ame-pc, pid:19258]
        94. Thunderbird                         [1.0.5, ame@ame-pc, pid:8151]
       106. Firefox                             [1.0.5, ame@ame-pc, pid:16582]

Audio
 ├─ Devices:
 │      49. Navi 21/23 HDMI/DP Audio Controller [alsa]
 │      50. Family 17h/19h HD Audio Controller  [alsa]
 │      51. Bloody Gaming Audio Device          [alsa]
 │      52. Camera                              [alsa]
 │      53. Rembrandt Radeon High Definition Audio Controller [alsa]
 │  
 ├─ Sinks:
 │      57. Navi 21/23 HDMI/DP Audio Controller (HDMI) [vol: 1.25]
 │  *   58. Family 17h/19h HD Audio Controller [vol: 0.30]
 │      61. Bloody Gaming Audio Device [vol: 0.00]
 │  
 ├─ Sources:
 │  *   59. Family 17h/19h HD Audio Controller [vol: 0.35]
 │      60. Bloody Gaming Audio Device [vol: 1.00]
 │      62. Camera                     [vol: 1.00]
 │  
 ├─ Filters:
 │  
 └─ Streams:

Video
 ├─ Devices:
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:
         0. Audio/Sink    alsa_output.pci-0000_12_00.6.analog-stereo.2
         1. Audio/Source  alsa_input.pci-0000_12_00.6.analog-stereo

As far as I understand Navi 21/23 HDMI/DP Audio Controller is video card output. when I set it as default(wpctl set-default 57), the sound starts coming from the monitor.

Unfortunately, I can’t even imagine what kind of information I should attach. sad I will be glad for any help.

I have two questions.
1) How to switch a monitor connected to DisplayPort or HDMI?
2) It can make the sound come from 2 monitors simultaneously

Last edited by ameNiku (2024-05-05 15:08:23)

Offline

#2 2024-05-02 17:43:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: [SOLVED] Sound from two monitors (pipeware)

sudo fuser -v /dev/snd/*
aplay -l
pactl list cards
pactl list sinks

Generally speaking the default profile setup will normally exclusively only show one or the other displays audio profiles and you can freely switch between them, but this should be a small config change away to allow all of them, but let's look at the status quo.

Offline

#3 2024-05-03 07:22:49

ameNiku
Member
Registered: 2024-05-02
Posts: 6

Re: [SOLVED] Sound from two monitors (pipeware)

Thank you very much for the answer. This is what you asked for.


$ sudo fuser -v /dev/snd/*

                     ПОЛЬЗ-ЛЬ    PID ДОСТУП КОМАНДА
/dev/snd/controlC0:  ame         763 F.... wireplumber
/dev/snd/controlC1:  ame         763 F.... wireplumber
/dev/snd/controlC2:  ame         763 F.... wireplumber
/dev/snd/controlC3:  ame         763 F.... wireplumber
/dev/snd/controlC4:  ame         763 F.... wireplumber
/dev/snd/seq:        ame         760 F.... pipewire

$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [PLX2283H]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 10: HDMI 4 [PLG2788H]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Device [Bloody Gaming Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ pactl list cards

Card #49
	Name: alsa_card.pci-0000_03_00.1
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.alsa.card = "0"
		api.alsa.card.longname = "HDA ATI HDMI at 0xfcc20000 irq 100"
		api.alsa.card.name = "HDA ATI HDMI"
		api.alsa.path = "hw:0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "pci"
		device.bus_path = "pci-0000:03:00.1"
		device.description = "Navi 21/23 HDMI/DP Audio Controller"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_03_00.1"
		device.nick = "HDA ATI HDMI"
		device.plugged.usec = "10528764"
		device.product.id = "0xab28"
		device.product.name = "Navi 21/23 HDMI/DP Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card0"
		device.vendor.id = "0x1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		media.class = "Audio/Device"
		factory.id = "14"
		client.id = "45"
		object.id = "49"
		object.serial = "49"
		object.path = "alsa:pcm:0"
		alsa.card = "0"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xfcc20000 irq 100"
		alsa.driver_name = "snd_hda_intel"
		alsa.mixer_name = "ATI R6xx HDMI"
		alsa.components = "HDA:1002aa01,00aa0100,00100800"
		alsa.id = "HDMI"
		device.string = "0"
	Profiles:
		off: Выключено (sinks: 0, sources: 0, priority: 0, available: yes)
		output:hdmi-stereo: Цифровой стерео (HDMI) выход (sinks: 1, sources: 0, priority: 5900, available: yes)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) выход (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) выход (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) выход (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) выход (sinks: 1, sources: 0, priority: 5700, available: yes)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) выход (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) выход (sinks: 1, sources: 0, priority: 600, available: no)
		pro-audio: Pro Audio (sinks: 6, sources: 0, priority: 1, available: yes)
	Active Profile: output:hdmi-stereo
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 1"
				device.icon_name = "video-display"
				card.profile.port = "0"
				device.product.name = "PLX2283H"
			Part of profile(s): output:hdmi-stereo
		hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 2"
				device.icon_name = "video-display"
				card.profile.port = "1"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 3"
				device.icon_name = "video-display"
				card.profile.port = "2"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
		hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 4"
				device.icon_name = "video-display"
				card.profile.port = "3"
			Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
		hdmi-output-4: HDMI / DisplayPort 5 (type: HDMI, priority: 5500, latency offset: 0 usec, availability group: Legacy 5, available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 5"
				device.icon_name = "video-display"
				card.profile.port = "4"
				device.product.name = "PLG2788H"
			Part of profile(s): output:hdmi-stereo-extra4
		hdmi-output-5: HDMI / DisplayPort 6 (type: HDMI, priority: 5400, latency offset: 0 usec, availability group: Legacy 6, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 6"
				device.icon_name = "video-display"
				card.profile.port = "5"
			Part of profile(s): output:hdmi-stereo-extra5, output:hdmi-surround-extra5, output:hdmi-surround71-extra5

Card #50
	Name: alsa_card.usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.alsa.card = "3"
		api.alsa.card.longname = "C-Media Electronics Inc. Bloody Gaming Audio Device at usb-0000:12:00.3-2, full"
		api.alsa.card.name = "Bloody Gaming Audio Device"
		api.alsa.path = "hw:3"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio3"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "usb"
		device.bus-id = "usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00"
		device.bus_path = "pci-0000:12:00.3-usb-0:2:1.0"
		device.description = "Bloody Gaming Audio Device"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-usb"
		device.name = "alsa_card.usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00"
		device.nick = "Bloody Gaming Audio Device"
		device.plugged.usec = "10709867"
		device.product.id = "0x2701"
		device.product.name = "Bloody Gaming Audio Device"
		device.serial = "C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:12:00.3/usb3/3-2/3-2:1.0/sound/card3"
		device.vendor.id = "0x09da"
		device.vendor.name = "A4Tech Co., Ltd."
		media.class = "Audio/Device"
		factory.id = "14"
		client.id = "45"
		object.id = "50"
		object.serial = "50"
		object.path = "alsa:pcm:3"
		alsa.card = "3"
		alsa.card_name = "Bloody Gaming Audio Device"
		alsa.long_card_name = "C-Media Electronics Inc. Bloody Gaming Audio Device at usb-0000:12:00.3-2, full"
		alsa.driver_name = "snd_usb_audio"
		alsa.mixer_name = "USB Mixer"
		alsa.components = "USB09da:2701"
		alsa.id = "Device"
		device.string = "3"
	Profiles:
		off: Выключено (sinks: 0, sources: 0, priority: 0, available: yes)
		output:analog-stereo+input:analog-stereo: Аналоговый стерео дуплекс (sinks: 1, sources: 1, priority: 6565, available: yes)
		output:analog-stereo+input:iec958-stereo: Аналоговый стерео выход + Цифровой стерео (IEC958) вход (sinks: 1, sources: 1, priority: 6555, available: yes)
		output:analog-stereo: Аналоговый стерео выход (sinks: 1, sources: 0, priority: 6500, available: yes)
		output:iec958-stereo+input:analog-stereo: Цифровой стерео (IEC958) выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 5565, available: yes)
		output:iec958-stereo+input:iec958-stereo: Цифровой стерео дуплекс (IEC958) (sinks: 1, sources: 1, priority: 5555, available: yes)
		output:iec958-stereo: Цифровой стерео (IEC958) выход (sinks: 1, sources: 0, priority: 5500, available: yes)
		output:iec958-ac3-surround-51+input:analog-stereo: Цифровой объёмный 5.1 (IEC958/AC3) выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 365, available: yes)
		output:iec958-ac3-surround-51+input:iec958-stereo: Цифровой объёмный 5.1 (IEC958/AC3) выход + Цифровой стерео (IEC958) вход (sinks: 1, sources: 1, priority: 355, available: yes)
		output:iec958-ac3-surround-51: Цифровой объёмный 5.1 (IEC958/AC3) выход (sinks: 1, sources: 0, priority: 300, available: yes)
		input:analog-stereo: Аналоговый стерео вход (sinks: 0, sources: 1, priority: 65, available: yes)
		input:iec958-stereo: Цифровой стерео (IEC958) вход (sinks: 0, sources: 1, priority: 55, available: yes)
		pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-mic: Микрофон (type: Mic, priority: 8700, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "mic"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "0"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:iec958-stereo+input:analog-stereo, output:iec958-ac3-surround-51+input:analog-stereo
		iec958-stereo-input: Цифровой вход (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "spdif"
				card.profile.port = "1"
			Part of profile(s): input:iec958-stereo, output:analog-stereo+input:iec958-stereo, output:iec958-stereo+input:iec958-stereo, output:iec958-ac3-surround-51+input:iec958-stereo
		analog-output: Аналоговый выход (type: Analog, priority: 9900, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "analog"
				card.profile.port = "2"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-stereo+input:iec958-stereo
		iec958-stereo-output: Цифровой выход (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "spdif"
				card.profile.port = "3"
			Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:analog-stereo, output:iec958-stereo+input:iec958-stereo

Card #51
	Name: alsa_card.usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera-02
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.alsa.card = "4"
		api.alsa.card.longname = "Sonix Technology Co., Ltd. USB 2.0 Camera at usb-0000:10:00.0-5.1, high speed"
		api.alsa.card.name = "USB 2.0 Camera"
		api.alsa.path = "hw:4"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio4"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "usb"
		device.bus-id = "usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera-02"
		device.bus_path = "pci-0000:10:00.0-usb-0:5.1:1.2"
		device.description = "Camera"
		device.enum.api = "udev"
		device.form_factor = "webcam"
		device.icon_name = "camera-web-analog-usb"
		device.name = "alsa_card.usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera-02"
		device.nick = "USB 2.0 Camera"
		device.plugged.usec = "10932445"
		device.product.id = "0x6340"
		device.product.name = "Camera"
		device.serial = "Sonix_Technology_Co.__Ltd._USB_2.0_Camera"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:02.1/0000:05:00.0/0000:06:0c.0/0000:10:00.0/usb1/1-5/1-5.1/1-5.1:1.2/sound/card4"
		device.vendor.id = "0x0c45"
		device.vendor.name = "Microdia"
		media.class = "Audio/Device"
		factory.id = "14"
		client.id = "45"
		object.id = "51"
		object.serial = "51"
		object.path = "alsa:pcm:4"
		alsa.card = "4"
		alsa.card_name = "USB 2.0 Camera"
		alsa.long_card_name = "Sonix Technology Co., Ltd. USB 2.0 Camera at usb-0000:10:00.0-5.1, high speed"
		alsa.driver_name = "snd_usb_audio"
		alsa.mixer_name = "USB Mixer"
		alsa.components = "USB0c45:6340"
		alsa.id = "Camera"
		device.string = "4"
	Profiles:
		off: Выключено (sinks: 0, sources: 0, priority: 0, available: yes)
		pro-audio: Pro Audio (sinks: 0, sources: 1, priority: 1, available: yes)
		input:mono-fallback: Моно вход (sinks: 0, sources: 1, priority: 1, available: yes)
	Active Profile: input:mono-fallback
	Ports:
		analog-input-mic: Микрофон (type: Mic, priority: 8700, latency offset: 0 usec, availability unknown)
			Properties:
				port.type = "mic"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "0"
			Part of profile(s): input:mono-fallback

Card #52
	Name: alsa_card.pci-0000_12_00.6
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.alsa.card = "2"
		api.alsa.card.longname = "HD-Audio Generic at 0xfca80000 irq 103"
		api.alsa.card.name = "HD-Audio Generic"
		api.alsa.path = "hw:2"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio2"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "pci"
		device.bus_path = "pci-0000:12:00.6"
		device.description = "Family 17h/19h HD Audio Controller"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_12_00.6"
		device.nick = "HD-Audio Generic"
		device.plugged.usec = "10560942"
		device.product.id = "0x15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:12:00.6/sound/card2"
		device.vendor.id = "0x1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		media.class = "Audio/Device"
		factory.id = "14"
		client.id = "45"
		object.id = "52"
		object.serial = "52"
		object.path = "alsa:pcm:2"
		alsa.card = "2"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfca80000 irq 103"
		alsa.driver_name = "snd_hda_intel"
		alsa.mixer_name = "Realtek ALC897"
		alsa.components = "HDA:10ec0897,14629d78,00100402"
		alsa.id = "Generic_1"
		device.string = "2"
	Profiles:
		off: Выключено (sinks: 0, sources: 0, priority: 0, available: yes)
		output:analog-stereo+input:analog-stereo: Аналоговый стерео дуплекс (sinks: 1, sources: 1, priority: 6565, available: yes)
		output:analog-stereo: Аналоговый стерео выход (sinks: 1, sources: 0, priority: 6500, available: yes)
		output:analog-surround-21+input:analog-stereo: Аналоговый объёмный 2.1 выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 1365, available: no)
		output:analog-surround-41+input:analog-stereo: Аналоговый объёмный 4.1 выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 1365, available: no)
		output:analog-surround-51+input:analog-stereo: Аналоговый объёмный 5.1 выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 1365, available: no)
		output:analog-surround-21: Аналоговый объёмный 2.1 выход (sinks: 1, sources: 0, priority: 1300, available: no)
		output:analog-surround-41: Аналоговый объёмный 4.1 выход (sinks: 1, sources: 0, priority: 1300, available: no)
		output:analog-surround-51: Аналоговый объёмный 5.1 выход (sinks: 1, sources: 0, priority: 1300, available: no)
		output:analog-surround-40+input:analog-stereo: Аналоговый объёмный 4.0 выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 1265, available: no)
		output:analog-surround-50+input:analog-stereo: Аналоговый объёмный 5.0 выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 1265, available: no)
		output:analog-surround-71+input:analog-stereo: Аналоговый объёмный 7.1 выход + Аналоговый стерео вход (sinks: 1, sources: 1, priority: 1265, available: no)
		output:analog-surround-40: Аналоговый объёмный 4.0 выход (sinks: 1, sources: 0, priority: 1200, available: no)
		output:analog-surround-50: Аналоговый объёмный 5.0 выход (sinks: 1, sources: 0, priority: 1200, available: no)
		output:analog-surround-71: Аналоговый объёмный 7.1 выход (sinks: 1, sources: 0, priority: 1200, available: no)
		input:analog-stereo: Аналоговый стерео вход (sinks: 0, sources: 1, priority: 65, available: yes)
		pro-audio: Pro Audio (sinks: 1, sources: 2, priority: 1, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-front-mic: Фронтальный микрофон (type: Mic, priority: 8500, latency offset: 0 usec, availability group: Legacy 1, available)
			Properties:
				port.type = "mic"
				port.availability-group = "Legacy 1"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "0"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:analog-surround-71+input:analog-stereo
		analog-input-rear-mic: Тыловой микрофон (type: Mic, priority: 8200, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "mic"
				port.availability-group = "Legacy 2"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "1"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:analog-surround-71+input:analog-stereo
		analog-input-linein: Линейный вход (type: Line, priority: 8100, latency offset: 0 usec, availability group: Legacy 3, not available)
			Properties:
				port.type = "line"
				port.availability-group = "Legacy 3"
				card.profile.port = "2"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:analog-surround-71+input:analog-stereo
		analog-output-lineout: Линейный выход (type: Line, priority: 9000, latency offset: 0 usec, availability group: Legacy 4, not available)
			Properties:
				port.type = "line"
				port.availability-group = "Legacy 4"
				card.profile.port = "3"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21, output:analog-surround-21+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo, output:analog-surround-41, output:analog-surround-41+input:analog-stereo, output:analog-surround-50, output:analog-surround-50+input:analog-stereo, output:analog-surround-51, output:analog-surround-51+input:analog-stereo, output:analog-surround-71, output:analog-surround-71+input:analog-stereo
		analog-output-headphones: Наушники (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 5, available)
			Properties:
				port.type = "headphones"
				port.availability-group = "Legacy 5"
				device.icon_name = "audio-headphones"
				card.profile.port = "4"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo

Card #53
	Name: alsa_card.pci-0000_12_00.1
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.alsa.card = "1"
		api.alsa.card.longname = "HD-Audio Generic at 0xfca88000 irq 102"
		api.alsa.card.name = "HD-Audio Generic"
		api.alsa.path = "hw:1"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio1"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "pci"
		device.bus_path = "pci-0000:12:00.1"
		device.description = "Rembrandt Radeon High Definition Audio Controller"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_12_00.1"
		device.nick = "HD-Audio Generic"
		device.plugged.usec = "10528714"
		device.product.id = "0x1640"
		device.product.name = "Rembrandt Radeon High Definition Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:12:00.1/sound/card1"
		device.vendor.id = "0x1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		media.class = "Audio/Device"
		factory.id = "14"
		client.id = "45"
		object.id = "53"
		object.serial = "53"
		object.path = "alsa:pcm:1"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfca88000 irq 102"
		alsa.driver_name = "snd_hda_intel"
		alsa.mixer_name = "ATI R6xx HDMI"
		alsa.components = "HDA:1002aa01,00aa0100,00100800"
		alsa.id = "Generic"
		device.string = "1"
	Profiles:
		off: Выключено (sinks: 0, sources: 0, priority: 0, available: yes)
		output:hdmi-stereo: Цифровой стерео (HDMI) выход (sinks: 1, sources: 0, priority: 5900, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) выход (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) выход (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) выход (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround: Цифровой объёмный 5.1 (HDMI) выход (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) выход (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) выход (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) выход (sinks: 1, sources: 0, priority: 600, available: no)
		pro-audio: Pro Audio (sinks: 4, sources: 0, priority: 1, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 1"
				device.icon_name = "video-display"
				card.profile.port = "0"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 2"
				device.icon_name = "video-display"
				card.profile.port = "1"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 3"
				device.icon_name = "video-display"
				card.profile.port = "2"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
		hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 4"
				device.icon_name = "video-display"
				card.profile.port = "3"
			Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3

$ pactl list sinks

Sink #57
	State: SUSPENDED
	Name: alsa_output.pci-0000_03_00.1.hdmi-stereo
	Description: Navi 21/23 HDMI/DP Audio Controller Цифровой стерео (HDMI)
	Driver: PipeWire
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 81920 / 125% / 5,81 dB,   front-right: 81920 / 125% / 5,81 dB
	       balance 0,00
	Base Volume: 65536 / 100% / 0,00 dB
	Monitor Source: alsa_output.pci-0000_03_00.1.hdmi-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA ATI HDMI"
		alsa.class = "generic"
		alsa.components = "HDA:1002aa01,00aa0100,00100800"
		alsa.device = "3"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xfcc20000 irq 100"
		alsa.mixer_name = "ATI R6xx HDMI"
		alsa.name = "PLX2283H"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HDA ATI HDMI at 0xfcc20000 irq 100"
		api.alsa.card.name = "HDA ATI HDMI"
		api.alsa.path = "hdmi:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "6"
		device.api = "alsa"
		device.class = "sound"
		device.id = "49"
		device.profile.description = "Цифровой стерео (HDMI)"
		device.profile.name = "hdmi-stereo"
		device.routes = "1"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Navi 21/23 HDMI/DP Audio Controller"
		node.name = "alsa_output.pci-0000_03_00.1.hdmi-stereo"
		node.nick = "PLX2283H"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:0:hdmi:0:playback"
		priority.driver = "696"
		priority.session = "696"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "45"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "57"
		object.serial = "57"
		api.acp.auto-port = "false"
		api.alsa.card = "0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.bus = "pci"
		device.bus_path = "pci-0000:03:00.1"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_03_00.1"
		device.nick = "HDA ATI HDMI"
		device.plugged.usec = "10528764"
		device.product.id = "0xab28"
		device.product.name = "Navi 21/23 HDMI/DP Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card0"
		device.vendor.id = "0x1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.string = "0"
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, availability group: Legacy 1, available)
	Active Port: hdmi-output-0
	Formats:
		pcm

Sink #61
	State: SUSPENDED
	Name: alsa_output.pci-0000_12_00.6.analog-stereo
	Description: Family 17h/19h HD Audio Controller Аналоговый стерео
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 29488 /  45% / -20,81 dB,   front-right: 29488 /  45% / -20,81 dB
	       balance 0,00
	Base Volume: 65536 / 100% / 0,00 dB
	Monitor Source: alsa_output.pci-0000_12_00.6.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "2"
		alsa.card_name = "HD-Audio Generic"
		alsa.class = "generic"
		alsa.components = "HDA:10ec0897,14629d78,00100402"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "Generic_1"
		alsa.long_card_name = "HD-Audio Generic at 0xfca80000 irq 103"
		alsa.mixer_name = "Realtek ALC897"
		alsa.name = "ALC897 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HD-Audio Generic at 0xfca80000 irq 103"
		api.alsa.card.name = "HD-Audio Generic"
		api.alsa.path = "front:2"
		api.alsa.pcm.card = "2"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "4"
		device.api = "alsa"
		device.class = "sound"
		device.id = "52"
		device.profile.description = "Аналоговый стерео"
		device.profile.name = "analog-stereo"
		device.routes = "2"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Family 17h/19h HD Audio Controller"
		node.name = "alsa_output.pci-0000_12_00.6.analog-stereo"
		node.nick = "ALC897 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:2:front:2:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "45"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "61"
		object.serial = "61"
		api.acp.auto-port = "false"
		api.alsa.card = "2"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio2"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.bus = "pci"
		device.bus_path = "pci-0000:12:00.6"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_12_00.6"
		device.nick = "HD-Audio Generic"
		device.plugged.usec = "10560942"
		device.product.id = "0x15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:12:00.6/sound/card2"
		device.vendor.id = "0x1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.string = "2"
	Ports:
		analog-output-lineout: Линейный выход (type: Line, priority: 9000, availability group: Legacy 4, not available)
		analog-output-headphones: Наушники (type: Headphones, priority: 9900, availability group: Legacy 5, available)
	Active Port: analog-output-headphones
	Formats:
		pcm

Sink #67
	State: SUSPENDED
	Name: alsa_output.usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00.analog-stereo
	Description: Bloody Gaming Audio Device Аналоговый стерео
	Driver: PipeWire
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 0 /   0% / -inf dB,   front-right: 0 /   0% / -inf dB
	       balance 0,00
	Base Volume: 65536 / 100% / 0,00 dB
	Monitor Source: alsa_output.usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "3"
		alsa.card_name = "Bloody Gaming Audio Device"
		alsa.class = "generic"
		alsa.components = "USB09da:2701"
		alsa.device = "0"
		alsa.driver_name = "snd_usb_audio"
		alsa.id = "Device"
		alsa.long_card_name = "C-Media Electronics Inc. Bloody Gaming Audio Device at usb-0000:12:00.3-2, full"
		alsa.mixer_name = "USB Mixer"
		alsa.name = "USB Audio"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "C-Media Electronics Inc. Bloody Gaming Audio Device at usb-0000:12:00.3-2, full"
		api.alsa.card.name = "Bloody Gaming Audio Device"
		api.alsa.path = "front:3"
		api.alsa.pcm.card = "3"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "4"
		device.api = "alsa"
		device.class = "sound"
		device.id = "50"
		device.profile.description = "Аналоговый стерео"
		device.profile.name = "analog-stereo"
		device.routes = "1"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Bloody Gaming Audio Device"
		node.name = "alsa_output.usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00.analog-stereo"
		node.nick = "Bloody Gaming Audio Device"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:3:front:3:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "45"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "59"
		object.serial = "67"
		api.acp.auto-port = "false"
		api.alsa.card = "3"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio3"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.bus = "usb"
		device.bus-id = "usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00"
		device.bus_path = "pci-0000:12:00.3-usb-0:2:1.0"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-usb"
		device.name = "alsa_card.usb-C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device-00"
		device.nick = "Bloody Gaming Audio Device"
		device.plugged.usec = "10709867"
		device.product.id = "0x2701"
		device.product.name = "Bloody Gaming Audio Device"
		device.serial = "C-Media_Electronics_Inc._Bloody_Gaming_Audio_Device"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:12:00.3/usb3/3-2/3-2:1.0/sound/card3"
		device.vendor.id = "0x09da"
		device.vendor.name = "A4Tech Co., Ltd."
		device.string = "3"
	Ports:
		analog-output: Аналоговый выход (type: Analog, priority: 9900, availability unknown)
	Active Port: analog-output
	Formats:
		pcm

Last edited by ameNiku (2024-05-03 07:28:03)

Offline

#4 2024-05-04 20:10:35

ameNiku
Member
Registered: 2024-05-02
Posts: 6

Re: [SOLVED] Sound from two monitors (pipeware)

Сan I provide any more information?

Offline

#5 2024-05-04 21:12:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: [SOLVED] Sound from two monitors (pipeware)

Sorry I saw this and meant to reply but got sidetracked.

A simple switch can be done via

pactl set-card-profile  alsa_card.pci-0000_03_00.1 output:hdmi-stereo-extra4 #or output:hdmi-stereo

to get simultaneous output working you can edit /usr/share/alsa-card-profile/mixer/profile-sets/9999-custom.conf and add

[Profile output:hdmi-stereo+output:hdmi-stereo-extra4]
description = Combined Profiles
output-mappings = hdmi-stereo hdmi-stereo-extra4

and reboot/restart wireplumber/pipewire with

systemctl --user restart pipewire{,-pulse} wireplumber

(note the file might get overwritten by alsa-card-profiles updates... one should probably exempt that, I might make a bug report) which will give you a new profile to select that should encompass both of the relevant sinks.

Edit: Fixed the copy paste and superflouous output: prefixes

Last edited by V1del (2024-05-04 22:17:17)

Offline

#6 2024-05-04 22:02:16

ameNiku
Member
Registered: 2024-05-02
Posts: 6

Re: [SOLVED] Sound from two monitors (pipeware)

Thanks for the answer!
Switching works perfect, thanks.

But there is a problem with the profile. When I enter this profile into the file and restart wireplumber/pipewire, all sinks disappear except for Idle Output

$ pactl list sinks

Sink #39
    State: SUSPENDED
    Name: auto_null
    Description: Idle Output
    Driver: PipeWire
    Sample Specification: float32le 2ch 48000Hz
    Channel Map: front-left,front-right
    Owner Module: 4294967295
    Mute: no
    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
    Monitor Source: auto_null.monitor
    Latency: 0 usec, configured 0 usec
    Flags: DECIBEL_VOLUME LATENCY 
    Properties:
        node.name = "auto_null"
        device.description = "Idle Output"
        audio.rate = "48000"
        audio.channels = "2"
        audio.position = "FL,FR"
        media.class = "Audio/Sink"
        factory.name = "support.null-audio-sink"
        node.virtual = "true"
        monitor.channel-volumes = "true"
        factory.id = "18"
        clock.quantum-limit = "8192"
        client.id = "33"
        node.driver = "true"
        factory.mode = "merge"
        audio.adapt.follower = ""
        library.name = "audioconvert/libspa-audioconvert"
        object.id = "39"
        object.serial = "39"
    Formats:
        pcm

When I remove this profile, everything is back to normal. What could be causing this?

Last edited by ameNiku (2024-05-04 22:04:38)

Offline

#7 2024-05-04 22:13:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: [SOLVED] Sound from two monitors (pipeware)

Maybe an issue with the space in the description? you can also drop that key, but maybe check what wireplumber/pipewire is complaining about in that case

journalctl --user -b -u pipewire -u pipewire-pulse -u wireplumber

because that config should normally work.

whoops I fucked up: 

[Profile output:hdmi-stereo+output:hdmi-stereo-extra4]
description = Combined Profiles
output-mappings = hdmi-stereo hdmi-stereo-extra4

need to drop the output: prefixes for the profile mappings of course

Last edited by V1del (2024-05-04 22:16:24)

Offline

#8 2024-05-05 08:26:42

ameNiku
Member
Registered: 2024-05-02
Posts: 6

Re: [SOLVED] Sound from two monitors (pipeware)

Now it works well. I admit, I Googled this problem for quite a long time, but apparently a case with sound from 2 monitors is very rare... Thanks for the help smile Now, if something happens, I’ll know where to dig.

Offline

#9 2024-05-05 11:28:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: [SOLVED] Sound from two monitors (pipeware)

Not sure how stable port enumeration is on your graphics card that this logical setup will always be correct, but yeah that should be the gist of it (and it's likely that which exact "extra" hdmi device is in use will change if you ever decide to switch the ports your display(s) are plugged into).

In any case, please mark as [SOLVED] by editing the in your first post.

Offline

#10 2024-05-05 11:33:17

cryptearth
Member
Registered: 2024-02-03
Posts: 74

Re: [SOLVED] Sound from two monitors (pipeware)

I use qpwgraph to manager sources and sinks
btw: sending the same source to multiple sinks or even matrix-mix several sources to several sinks is the base for every streamer: your mic has to be shared with both the stream and the voice, maybe even with in-game voice; all playbacks have to be mixed both to your headphones as well as to the stream
if you do it like me and use a 2nd external system to offload the stream encoder you have to route the local playback thru the hdmi to the capture system
on windows you have to get creative with stuff like voice meeter - as well as you require support from the various applications to even able to reroute audio - as the windows audio system works quite differently from how linux work

Offline

#11 2024-05-05 15:15:03

ameNiku
Member
Registered: 2024-05-02
Posts: 6

Re: [SOLVED] Sound from two monitors (pipeware)

cryptearth wrote:

I use qpwgraph to manager sources and sinks
btw: sending the same source to multiple sinks or even matrix-mix several sources to several sinks is the base for every streamer: your mic has to be shared with both the stream and the voice, maybe even with in-game voice; all playbacks have to be mixed both to your headphones as well as to the stream
if you do it like me and use a 2nd external system to offload the stream encoder you have to route the local playback thru the hdmi to the capture system
on windows you have to get creative with stuff like voice meeter - as well as you require support from the various applications to even able to reroute audio - as the windows audio system works quite differently from how linux work

I'm not a streamer. My main 2:1 audio system broke down and sometimes I needed to send sound not only through headphones, fortunately there were speakers on the monitors, the quality on them is so-so, but as a temporary solution it’s ok.

Offline

#12 2024-05-05 21:28:46

cryptearth
Member
Registered: 2024-02-03
Posts: 74

Re: [SOLVED] Sound from two monitors (pipeware)

my point is that "routing audio" is a common task for many people and use cases - and thanks to linux' audio system there're many ways to achieve the desired result
although many prefer tinkering with config files and going to hard way by mention qpwgraph I wanted to point towards an easy to use graphical tool
although I still don't get why you want to have audio blasting from two monitors at the same time I guess you have your reason for it - my solution would be to just pick up new headphones (don't get me wrong - I do use studio-grade over-ear headphones, a mixer and an audio-interface - so along with my mic it's worth a couple 100 bucks - I understand that "just buy new headphones" can be expensive)

Offline

Board footer

Powered by FluxBB