Bluetooth headset not detected as audio output
-
Hi,
Is there a way to forcibily set a bluetooth device as audio output as my bluetooth headset is not recognised as a audio output ?
Thanks ! -
Well, after a long time of trying to understand the bluetooth daemon, I managed to get the headset working on my phone.
Device : Xperia X running the edge arm64 branch.
I had this issue appearing in /var/log/syslog after I tried to connect to my headset :Apr 29 23:45:11 ubuntu-phablet bluetoothd[1387]: GATT service objects disabled
Steps to resolve :
Changing bluetooth controller mode
change the bluetooth controller to bredr
sudo mount -o rw,remount /
Then open (as root) /etc/bluetooth/main.conf and change the line
ControllerMode = bredrAnd finally remount the file system
sudo mount -o ro,remount /
Fixing sound glitches
And I had sound glitches which can be avoided by changing the latency of the sound card as described here (search for "Connecting works, but there are sound glitches all the time")
pactl set-port-latency-offset <bluez_card> headset-output 125000
Where the identifier of the card can be found with
pacmd list-sinks | egrep -o 'bluez_card[^>]*'
This seems like an issue with bluetooth low energy not working on xperia x. @fredldotme should I open a new issue ?
-
@henri2h It seems as if our PulseAudio is a little too old for Bluetooth LE. But filing a bug should be no problem.
Regarding its functionality: Just asking, have you only tried music playback or is call audio also working for you?
-
@fredldotme yes, I tried to update bluez with apt upgrade but the update was stuck at some point...
For the audio call, the audio wasn't redirected to the headset.
For the bug report, I'm going to open one. Do you know where I should open one, I have looked in gitlab but didn't find a proper place. -
For the bluetooth you need a trick,
Please follow this link : https://forums.ubports.com/topic/3253/oneplus-3-3t/397 -
@ernest Could you please show me the sources of what has changed for bluetooth audio in calls?
-
The source of the package is from focal : https://github.com/ubports/bluez-packaging/commits/xenial_-_even-newer-bluez
On the OP3, this version is helping to connect to some speaker which failed with the released version. I think to improve the call pulseaudio should be upgraded (you might know more).
Side note : I'm impressed SFOS bluetooth works smooth.
-
@ernest Pardon me for my intrusion. What does SFOS mean in regard to bluetooth. My net searching skills must have failed me, cuz I found nothing. Thanks.
-
@jezek You'll not find difference except if you dig into their gitlab : https://git.sailfishos.org/mer-core
They seem to have upgrade pulseaudio and bluez in a more constant way. (Of course depend on time and resources ). Their package are not compatible with ubports from my understanding.
-
@ernest Ah, I see. SFOS means SailFishOS. Thanks.