[arch-general] Configure default bluetooth profile in PulseAudio?
Dear all, is it possible to define the default BT profile used when a headset connects to my system? Currently I have to switch from A2DP to HSP/HFP every time I turn the headset on. As I'm mostly using the headset as headset (for webconfs), not headphones, I'd like to change that behavior. I found this article [1] but that seems to automatically switch BT profiles based on the requirements. I don't want that behavior as I prefer static configurations (I want my music to always come from the speaker boxes regardless of whether headphones are available.) Although I will try this out later-on. Any hints? Thanks, Uwe [1] https://askubuntu.com/questions/1248886/how-to-set-default-profile-for-bluet...
I think auto-switching might not be so bad if it works as advertised. With regards to your static configuration, pulse seems to remember your preferences pretty well. I just ran youtube over my headphones and mpv over my speakers. (used pavucontrol to set it up) Disconnected the headphones, everything went to speakers. Reconnected the headphones, only youtube went back to them. mpv stayed on the speakers as before. In this scenario, perhaps auto switching would work for you since your speakers should remain unaffected.
Unfortunately, configuring /etc/pulse/default.pa load-module module-bluetooth-policy auto_switch=2 has no effect on both PCs I tried. It seems that the browsers I'm using (Firefox & Opera) don't request an input stream which might trigger the BT profile change but iterate over existing devices, thus they don't see any input. I'd really prefer a static configuration… Regards, Uwe Am 13.01.21 um 10:34 schrieb Ben Oliver via arch-general:
I think auto-switching might not be so bad if it works as advertised.
With regards to your static configuration, pulse seems to remember your preferences pretty well.
I just ran youtube over my headphones and mpv over my speakers. (used pavucontrol to set it up)
Disconnected the headphones, everything went to speakers.
Reconnected the headphones, only youtube went back to them. mpv stayed on the speakers as before.
In this scenario, perhaps auto switching would work for you since your speakers should remain unaffected.
In your pulse configuration file (normally called 'default.pa', look up for the 'load-module module-card-restore', uncomment it if it's commented, add a blank space and include 'restore_bluetooth_profile=true'. On Mon, Jan 18, 2021 at 6:00 AM Uwe Sauter via arch-general < arch-general@lists.archlinux.org> wrote:
Unfortunately, configuring
/etc/pulse/default.pa load-module module-bluetooth-policy auto_switch=2
has no effect on both PCs I tried. It seems that the browsers I'm using (Firefox & Opera) don't request an input stream which might trigger the BT profile change but iterate over existing devices, thus they don't see any input.
I'd really prefer a static configuration…
Regards,
Uwe
I think auto-switching might not be so bad if it works as advertised.
With regards to your static configuration, pulse seems to remember your
Am 13.01.21 um 10:34 schrieb Ben Oliver via arch-general: preferences pretty well.
I just ran youtube over my headphones and mpv over my speakers. (used
pavucontrol to set it up)
Disconnected the headphones, everything went to speakers.
Reconnected the headphones, only youtube went back to them. mpv stayed
on the speakers as before.
In this scenario, perhaps auto switching would work for you since your
speakers should remain unaffected.
Will test and report back. Thanks for the hint. Am 18.01.21 um 19:40 schrieb Marc Ranolfi:
In your pulse configuration file (normally called 'default.pa <http://default.pa>', look up for the 'load-module module-card-restore', uncomment it if it's commented, add a blank space and include 'restore_bluetooth_profile=true'.
On Mon, Jan 18, 2021 at 6:00 AM Uwe Sauter via arch-general <arch-general@lists.archlinux.org <mailto:arch-general@lists.archlinux.org>> wrote:
Unfortunately, configuring
/etc/pulse/default.pa <http://default.pa> load-module module-bluetooth-policy auto_switch=2
has no effect on both PCs I tried. It seems that the browsers I'm using (Firefox & Opera) don't request an input stream which might trigger the BT profile change but iterate over existing devices, thus they don't see any input.
I'd really prefer a static configuration…
Regards,
Uwe
Am 13.01.21 um 10:34 schrieb Ben Oliver via arch-general: > I think auto-switching might not be so bad if it works as advertised. > > With regards to your static configuration, pulse seems to remember your preferences pretty well. > > I just ran youtube over my headphones and mpv over my speakers. (used pavucontrol to set it up) > > Disconnected the headphones, everything went to speakers. > > Reconnected the headphones, only youtube went back to them. mpv stayed on the speakers as before. > > In this scenario, perhaps auto switching would work for you since your speakers should remain unaffected.
participants (3)
-
Ben Oliver
-
Marc Ranolfi
-
Uwe Sauter