Sony Bluetooth Stereo Headset

Mine too probably (Tool - Discourse removed my quote from @Akito) , I probably play them more than any other artist… my younger brother (deceased) was also a huge fan… He had his Harley’s license plate “46AND2” :smiley: . Only caught them live once (2011 Big Day Out). Catching up with mutual friend of my brother’s tonight, who’s also a huge Tool fan…

Anyway - as mentioned in my previous update - I have screwed up bluetooth on my home 18.04 laptop - tried removing blueman, but now I’m getting “bluez” errors… tried purging blueman (sudo apt purge blueman). I always kinda hate how sucky bluetooth can be in Linux… seemed to take ages to get proper pairing with BLE devices to work - and it was one of the reasons that made me jump back to Ubuntu from dabbling in elementary… might be different now that Juno is Ubuntu 18.04 - but last time I tried it (Juno - about 3-4 months ago, then again about 6 weeks ago) - I found it too limiting and nazi controlled :smiley:

So - anyway - I found this fix (which probably would have worked on my home 18.04 if I hadn’t install blueman) and successfully did it on my work 18.10 laptop : https://gist.github.com/pylover/d68be364adac5f946887b85e6ed6e7ae

e.g. :

[[ ! -d ~/tmp ]] && mkdir ~/tmp
cd ~/tmp
git clone https://gist.github.com/pylover/d68be364adac5f946887b85e6ed6e7ae
cd d68be364adac5f946887b85e6ed6e7ae
cp ./a2dp.py ~/bin/.
cp ./fix-bt.py ~/bin/.
cp ./fix-bt.service ~/.config/systemd/users/.

There’s no “how to” info (there’s no proper reader friendly readme.md either) - but lots of comments with snippets of how to deploy this solution.

So I put/copied the a2dp.py file in my ~/bin (which is on my $PATH). I also put the “fix-bt.py” in the same dir.

Run the a2dp.py script and pair your headset (note the MAC address).

Then I copied the fix-bt.service file into ~/.config/systemd/users.

The fix-bt.py and the fix-bt.service file require a teensy bit of tweaking.

fix-bt.py
Point the A2DP variable at the location of the a2dp.py script
e.g :
A2DP = '/home/x/bin/a2dp.py'
(where “x” is my username)

Point the DEV_IDS variable at the MAC address of your device :
e.g. :
DEV_IDS = ['00:18:09:D4:44:D9']
(MAC address of my Sony device)

Edit fix-bt.service
Set location of fix-bt.py script :
ExecStart=/home/x/bin/fix-bt.py

Set “WantedBy” to :
WantedBy=default.target
(so it can run as a “user” systemd service)

Then enable the service :
systemctl --user enable fix-bt.service

Then start the service :
systemctl --user start fix-bt.service

Now I just power up the headset - and pairs, everytime, in Stereo!

Also - super cool feature with these headphones - the track controls button works with Sayonara (doesn’t work with my Logitech headset, or el cheapo “QUDO” or my ancient Motorola S305 BT headset).

1 Like