Hi Vincent, Le jeu. 29 sept. 2022 à 12:39, Vincent Lefevre <vinc...@vinc17.net> a écrit : > > The problem is still there. The headphones autoconnect as usual but > the audio is not switched to them automatically. I need to manually > do the switch from pavucontrol. When I switch off the headphones, > the audio is switched back to the bluetooth speakers automatically. > When I switch on the headphones, the audio is still connected to > the speakers. So the problem is reproducible.
I discussed technical details of this issue on #pipewire. This autoswitch is not the default behavior of pulseaudio, but it can be enabled using the module-switch-on-connect pulseaudio module [1] (the same module is available for pipewire [2]). Usually, this module is not enabled by default because it is too aggressive, so it might not be loaded in your case. If this module if not loaded, then your autoswitch is done via a behavior of pulseaudio which prioritize previous configured defaults. The same logic has just been merged in wireplumber and should be available in the next release [3]. Dylan [1] https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-switch-on-connect [2] https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Migrate-PulseAudio#module-switch-on-connect [3] https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/7a1b48b7