It has always been a pain for me to work with Bluetooth devices, both on Windows and Linux. Different problems on different platforms and window managers. On Windows sometimes I had to reinstall the driver each time I wanted to connect. On another computer I would have to pair the device each time I wanted to use it. On Linux (Gnome/Opensuse), I would have to recreate the profile each time I wanted to connect and use it as a speaker. That is from the gnome control centre.
On the other hand if I connect through the terminal with bluetoothctl it works. It works after you actually make it work for the first time which can need a lot of time to figure it out.
Nowadays I’m using bluetoothctl with i3 and works like a charm.
I don’t know if the experience I had with Linux was due to more tested (old) packages or if it hasn’t yet been properly fixed.
- openeSUSE Leap 15.0
- bluetooth stereo
- bluetoothctl: 5.48
- pulseaudio 11.1-rebootstrapped
- Kernel: 4.12.14-lp150.12.16-default
This should work for older versions of openSUSE Leap. I had to do something similar to 41.*. As long as the Leap version works with these tools, this is how to circumvent the problem.
First of all, comment out the line that loads the module-bluetooth-discover in /etc/pulse/default.pa.
> sudo vim /etc/pulse/default.pa
Once booted up again, configure bluetoothctl as shown below
> pactl load-module module-bluetooth-discover > bluetoothctl >> power on >> agent on >> default-agent >> discoverable on >> scan on >> scan off >> trust 11:11:11:11:11:11 >> connect 11:11:11:11:11:11 WIN!
Hint, if you want to change the speakers that each application uses, you can do that from:
Note: Each time you want to connect to a bluetooth device that has an audio profile you need to run:
> pactl load-module module-bluetooth-discover
You can execute it from a script that gets executed upon login, i.e. i3 config file.
Note 2: Reconnecting to the same device messes up with my computer, bluetoothctl does not fine any Bluetooth controllers. Reboot both system and Bluetooth device to resolve.
Enjoy your cable free music!