You are not logged in.
Is there a way to stream audiochannels automatically to a bluetooth speaker when it is connected?
At the moment I have to change manually in pavucontrol Playback section. Otherwise sound is still played via internal speakers..
Any ideas? Thanks!
Last edited by miro279 (2015-02-03 14:03:54)
Offline
The answer to that would most likely be yes. However, the same answer could be applied to getting pigs to fly as well (with details that could involve anything from a catapault to an airplane).
So what is your setup?
Knute
Offline
;-)
running:
plasma-framework 5.6.0-2
libbluedevil-frameworks 5.2.0-1
bluedevil-frameworks 5.2.0-1
bluez 5.27-1
bluez-libs 5.27-1
bluez-utils 5.27-1
sbc 1.3-1
pulseaudio 5.0-1
pulseaudio-alsa 2-3
The bluetooth speaker is a Denon Envaya mini, connected in A2DP mode.
The whole setup is not working realy stable at the moment, sometimes the device is connecting just fine and I see it in pulseaudio, sometimes it doesn't and bluetooth is crashing when trying to connect. Same is true for trying with bluetoothctl, so I guess it's not a plasma problem.. I also tried gut versions for most of the packages (at least for pulseaudio, libbluedevil-frameworks and bluedevil-frameworks).
Anyway. even when connecting is successfull, I still have to set the audiostream manually to the speaker with pavucontrol.
I tried to load pulsaudio module-switch-on-connect in default.pa but didn't see a difference.. I'm guessing this should only autoconnect the speaker when present, but what I'd like to do is to automaticly stream audio to the speaker when connected, not to the internal laptop speaker..
Last edited by miro279 (2015-02-03 11:18:03)
Offline
I tried to load pulsaudio module-switch-on-connect in default.pa but didn't see a difference.. I'm guessing this should only autoconnect the speaker when present, but what I'd like to do is to automaticly stream audio to the speaker when connected, not to the internal laptop speaker..
That's exactly what module-switch-on-connect does. Did you load it at the correct place (right before "if.. udev-detect")? What can also help is switching the bluetooth headset to be your default device (just tick it as such in pavucontrol) this way it should be recognized as your prefered connection. Also make sure to remove the db files in ~/.pulse or ~/.config/pulse after making said adjustments as different settings there could lead to certain streams saving wrong defaults initially
Offline
I just placed it at the end of default.pa.. After taking it to the right place as you said it's working! Thanks a lot!
One more thing: Is there a way to modify the volume of the created device? It always starts at 100% which is pretty loud.. Changing the volume in pavucontrol or kmix doens't make the system remember..
Offline