2

I have a blue tooth speaker that connects by default as Headset Unit (HSP/HFP). How can I make it connect by default High Fidelity Playback (A2DP Sink)?

I have two users defined on my machine and somehow for one of the users it remembers the connection setting A2DP. But for the other user it doesn't. I'm using Ubuntu 20.04.4 LTS

Edit: The answer suggested in the comment, http://askubuntu.com/a/1388140/32664, works but only until restart. Afterwards the problem persists. I noticed that if I am doing a manual pulseaudio -k && sudo systemctl restart bluetooth then the problem goes away...

wi2ard
  • 81

2 Answers2

0

Open up the audio.conf file (this should be the path: /etc/bluetooth/main.conf) while signed as the other user (the one which is not remembered) and see if the option AutoConnect=true is commented out or not (if it's not there add it). If it is, remove the # in front of it, exit and save the file, restart bluetooth with the following command: sudo service bluetooth restart and try again. Hope this helps!

0

I had the same problem and the solution from here worked for me:

Add to /etc/pulse/default.pa to automatically switch pulseaudio sink to Bluez:

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
load-module module-switch-on-connect # Add this
.endif

Modify /etc/bluetooth/audio.conf to auto select A2DP profile (instead of HSP/HFP):

[General]
Disable=Headset # Add this

Apply changes (did not work for me, I just rebooted):

sudo pulseaudio -k # Restarts pulseaudio
sudo restart --system bluetooth # Restarts BT
karel
  • 122,292
  • 133
  • 301
  • 332