Tuesday, May 23, 2017

Bose Soundlink Bluetooth headphones with A2DP in Ubuntu 16.04

Problem Description

When connecting to computer, my headphones would only connect in headset mode. I could not get it to change to High-Fidelity Playback (A2DP).
Headset would say "call from" after starting playback (very annoying).
 Sound quality was trash.

Solution

Edit /etc/pulse/default.pa
Comment out the line: load-module module-bluetooth-discover
Edit /usr/bin/start-pulseaudio-x11
Add 
/usr/bin/pactl load-module module-bluetooth-discover
after the SESSION_MANAGER if statement.
Reboot
Found a post with the following on archlinux.org forums:
Edit the file:
/etc/pulse/default.pa
and comment out (with an # at the beginning of the line) the following line:
load-module module-bluetooth-discover
now edit the file:
/usr/bin/start-pulseaudio-x11
and after the lines:
   if [ x"$SESSION_MANAGER" != x ] ; then
    /usr/bin/pactl load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null
   fi
add the following line:
/usr/bin/pactl load-module module-bluetooth-discover
This way the Pulse audio's Bluetooth modules will not be downloaded at boot time but after x11 is started.```