Custom matches not respected anymore after switching from pewire-media-session to wireplumber
- Fedora 35
- pipewire 0.3.35
- wireplumber 0.4.1
I have a custom matches entry in my /etc/pipewire/media-session.d/alsa-monitor.conf
to automatically switch over to my docking station speakers when connected. It looks as follows:
{
matches = [
{
node.name = "alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink"
}
]
actions = {
update-props = {
priority.session = 10000
}
}
}
However, after switching from pipewire-media-session
to wireplumber
this does not seem to have any effect anymore. How is one supposed to achieve this behavior with wireplumber?
pactl list sinks
also shows, that the priority is not applied to this sink correctly.
For the above line out it shows
Sink #103
State: SUSPENDED
Name: alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink
Description: USB Audio Line Out
Driver: PipeWire
Sample Specification: s24le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 48287 / 74% / -7,96 dB, front-right: 48287 / 74% / -7,96 dB
balance 0,00
Base Volume: 65536 / 100% / 0,00 dB
Monitor Source: alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.card = "3"
alsa.card_name = "WD15 Dock"
alsa.class = "generic"
alsa.device = "1"
alsa.driver_name = "snd_usb_audio"
alsa.id = "USB Audio"
alsa.long_card_name = "Dell-WD15-Dock"
alsa.mixer_device = "_ucm0008.hw:Dock"
alsa.name = "USB Audio #1"
alsa.resolution_bits = "24"
alsa.subclass = "generic-mix"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
api.alsa.card.longname = "Dell-WD15-Dock"
api.alsa.card.name = "WD15 Dock"
api.alsa.open.ucm = "true"
api.alsa.path = "hw:Dock,1"
api.alsa.pcm.card = "3"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
card.profile.device = "0"
device.api = "alsa"
device.class = "sound"
device.id = "98"
device.profile.description = "Line Out"
device.profile.name = "HiFi: hw:Dock,1: sink"
device.routes = "1"
factory.name = "api.alsa.pcm.sink"
media.class = "Audio/Sink"
device.description = "USB Audio Line Out"
node.name = "alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink"
node.nick = "WD15 Dock"
node.pause-on-idle = "false"
object.path = "alsa:pcm:3:hw:Dock,1:playback"
priority.driver = "728"
priority.session = "728"
factory.id = "18"
client.id = "51"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "103"
Ports:
[Out] Line: Line Out (type: Line, priority: 200, availability unknown)
Active Port: [Out] Line
Formats:
pcm