GDM screen lock changes audio configuration
GDM seems to have created pipewire config files now:
~gdm # find .config/pipewire
.config/pipewire
.config/pipewire/media-session.d
.config/pipewire/media-session.d/restore-stream
.config/pipewire/media-session.d/default-routes
I can see how this can be useful when it should play audio from the login screen. But if I just use screen lock, it should not fiddle with the audio configuration.
- it changes the audio profile for one of my audio devices, switching it to the port that has no cable plugged in. (HDMI audio via GPU)
- it changes the default audio sink and source.
So you can not turn on music, lock your screen, because if you do that it switches to a different audio sink. This had been a problem with pulseaudio as well and I was actually happy that pipewire did not do that in the beginning.
Also tracked here https://bugzilla.opensuse.org/show_bug.cgi?id=1188978