How to connect a2dp bluetooth headset on Ubuntu 16.04

The bluetooth stereo headset on Ubuntu has been in trouble for some time.
To solve it, I have read different techniques but in several you have to edit and configure files.
I found a quick and easy way to connect and enable the a2dp function (stereo) on your headset with just execute one file.

You can download it from the github project or directly:

https://gist.github.com/pylover/d68be364adac5f946887b85e6ed6e7ae
or
wget https://gist.githubusercontent.com/pylover/d68be364adac5f946887b85e6ed6e7ae/raw/763ef4ef7245665b55024a3a76794808c3b6a322/a2dp.py

Just execute it with python3 and select your mac address device that you want to connect.
If you use pavucontrol, you can see on configuration tab, that your device appears with a High Fidelity Playback (A2DP Sink) profile.
Enjoy it!

Comments

Post a Comment

Popular posts from this blog

How to fix Android when developer options are not available for this user

Exception: Could not find a default OpenFlow controller in Mininet

v4l2: open /dev/video0: Permission denied