Sample Header Ad - 728x90

wireplumber: How to disable auto-mute speakers when headphone is plugged in, and vice versa? Generally: How to stop it to interfere with alsa mixers?

1 vote
0 answers
2396 views
I recently switched to pipewire + pipewire-pulse + wireplumber. Is it somehow possible to tell wireplumber _not_ to automatically mute/ unmute unused paths? E.g. when I plug in a plug into the headphones socket, I do _not_ want my internal speakers to be muted. And I don't want headphone socket to be muted when there is apparently nothing plugged in. (Two reasons: 1. I still want to be able to get simultaneous output -- and will mute manually when i want, 2. my machine has a hardware glitch where it spuriously detects headphone removal although it has not been removed. That makes wireplumber mute headphones and unmute internal audio, and to just do the reverse shortly after because the glitches are really short. But that created big glitches on audio output.) With pulseaudio, I was [able to stop that by modifying /usr/share/pulseaudio/alsa-mixer/paths/analog-output-*-files](https://unix.stackexchange.com/questions/609967/how-to-stop-pulseaudio-from-muting-other-devices) (hacky, since it would not survice package upgrades, but I can write a hook to re-apply the changes after each upgrade. How can this be achieved with wireplumber? I want to use wireplumber to automatically connect audio sources to audio sinks. I _do not_ want wireplumber to interfere with my alsa mixer settings at all, ideally; at least not doing any auto-mute/ auto-volume-zero when devices are connected/ disconnected. I see that wireplumber is doing it, since when I kill wireplumber but leave pipewire and pipewire-pulse running, auto-mute does not occur. Regards!
Asked by Golar Ramblar (1929 rep)
Feb 3, 2023, 02:08 PM