Output sink controlled via the media keys (GNOME) and the actual default sink get out of sync
If you are filing this issue with a regular release please try master as it might already be fixed.
Version, Distribution, Desktop Environment:
- pipewire 0.3.25
- GNOME 40
- Fedora 34
Description of Problem:
For me, quite regularly the output sink controlled via the media keys (using GNOME) and the actual default sink (pipewires view) get out of sync after plugging and unplugging my external WD15 dock with connected speakers. However, g-c-c shows the correct default sink (matching pipewire).
Steps to Reproduce:
Yet unclear.
Here some logs after the problem occurred (actual default sink is "alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink" but media keys control "alsa_input.pci-0000_00_1f.3.analog-stereo"):
➜ ~ pw-metadata
Found "default" metadata 31
update: id:0 key:'default.audio.sink' value:'{ "name": "alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink" }' type:'Spa:String:JSON'
update: id:0 key:'default.audio.source' value:'{ "name": "alsa_input.pci-0000_00_1f.3.analog-stereo" }' type:'Spa:String:JSON'
update: id:0 key:'default.video.source' value:'{ "name": "v4l2_input.pci-0000_39_00.0-usb-0_2.7_1.0.2" }' type:'Spa:String:JSON'
➜ ~ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 34
Server Protocol Version: 35
Is Local: yes
Client Index: 95
Tile Size: 65472
User Name: bjoern
Host Name: xps-9370
Server Name: PulseAudio (on PipeWire 0.3.25)
Server Version: 14.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__hw_Dock_1__sink
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: 64ff:dfda