|
|
|
|
|
by dkozel
3369 days ago
|
|
I follow a nearly identical flow several times a day to connect bluetooth headphones to my laptop. - Turn on headphones
* Laptop connects immediately and uses the HSP/HFP mode (works!)
* Trying to select A2DP appears to work, but no audio will play
- Disconnect the headphones using the Bluetooth manager
- Reconnect the headphones using the Bluetooth manager
- Select A2DP, this now works. https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1438510 Separately, many web videos will stop playing and refuse to play when the Bluetooth audio device is selected. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1589008 |
|
Here you can find a script which automates the connection to bluetooth headphones, executing (in ruby) the steps outlined above, using the bluez commandline tool (including: retry until the connection is established...):
https://gist.github.com/anonymous/8f6058df9a879292bc8dbd3aaf...
As usual, you need to give execution permissions, or pass it to the ruby interpreter. It's designed to executed via terminal, call it from GUI has undefined behavior.