You are not logged in.

#1 2019-05-24 14:18:49

faviouz
Member
Registered: 2011-09-15
Posts: 10

[SOLVED] Audio doesn't play through bluetooth headset if app was open

For bluetooth (specifically for my bluetooth headset) I installed:

pacman -S bluez bluez-utils bluez-libs pulseaudio-bluetooth

Additionally I also installed blueman for convenience:

pacman -S blueman

Everything works as expected except that if I connect to my bluetooth headset after an application is already playing audio then audio will come out of my laptop's speakers instead of the bluetooth headset. Restarting the applications (e.g. Chrome, Spotify) that were already playing audio before fixes it, but is a little annoying. Of course, if I launch a new audio application (after connecting to the bluetooth headset) then audio will correctly come out of my bluetooth headset.

What's going on and how can I fix it?

Last edited by faviouz (2019-05-27 12:13:04)

Offline

#2 2019-05-24 17:10:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: [SOLVED] Audio doesn't play through bluetooth headset if app was open

Add

load-module module-switch-on-connect

before the if... udev-detect block in your /etc/pulse/default.pa

Also FWIW you can switch outputs around dynamically with a relevant pulse mixer, pavucontrol is the reference implementation here and good to learn the ropes.

Last edited by V1del (2019-05-24 17:11:10)

Offline

#3 2019-05-27 12:11:29

faviouz
Member
Registered: 2011-09-15
Posts: 10

Re: [SOLVED] Audio doesn't play through bluetooth headset if app was open

Thanks, that works!

Offline

Board footer

Powered by FluxBB