You are not logged in.

#1 2015-04-19 11:43:10

sejorules
Member
Registered: 2014-06-13
Posts: 9

[Solved] BlueZ and PulseAudio can't change to A2DP profile

Hi all!
These days I have been trying to configure a bluetooth speaker without any luck. It seems like the connection between the USB dongle and the speaker is done using the Headset profile, and there is no way I can change it to A2DP. If I open pavucontrol, sometimes I can see the speaker, but the profile list only shows Headset.

The bluetooth dongle that I'm using is a LM506, which contains a Broadcom BCM20702 chip. I am using Blueman (under XFCE) to manage the connection, although I have tried setting the connection manually through bluetoothctl, with the same result. Connecting with gnome-bluetooth under GNOME works from time to time, but again, most of the times I can't change the profile, or even see the bluetooth speaker in pavucontrol.


I have noticed some errors thrown by the bluetooth daemon, but I had no luck and google didn't help. Any idea what is going on?

Here is my journalctl output for the bluetooth daemon:

abr 19 13:20:29 SejoLaptop systemd[1]: Starting Bluetooth service...
abr 19 13:20:29 SejoLaptop bluetoothd[558]: Bluetooth daemon 5.30
abr 19 13:20:29 SejoLaptop systemd[1]: Started Bluetooth service.
abr 19 13:20:29 SejoLaptop bluetoothd[558]: Starting SDP server
abr 19 13:20:30 SejoLaptop bluetoothd[558]: Bluetooth management interface 1.8 initialized
abr 19 13:24:34 SejoLaptop bluetoothd[558]: Failed to obtain handles for "Service Changed" characteristic
abr 19 13:24:34 SejoLaptop bluetoothd[558]: Failed to register org.bluez.LEAdvertisingManager1
abr 19 13:24:34 SejoLaptop bluetoothd[558]: Failed to register LEAdvertisingManager1 interface for adapter
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Not enough free handles to register service
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Error adding Link Loss service
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Not enough free handles to register service
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Not enough free handles to register service
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Not enough free handles to register service
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Current Time Service could not be registered
abr 19 13:24:35 SejoLaptop bluetoothd[558]: gatt-time-server: Input/output error (5)
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Not enough free handles to register service
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Not enough free handles to register service
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Sap driver initialization failed.
abr 19 13:24:35 SejoLaptop bluetoothd[558]: sap-server: Operation not permitted (1)
abr 19 13:24:35 SejoLaptop bluetoothd[558]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Endpoint registered: sender=:1.39 path=/MediaEndpoint/A2DPSource
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Endpoint registered: sender=:1.39 path=/MediaEndpoint/A2DPSink
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Endpoint registered: sender=:1.20 path=/MediaEndpoint/A2DPSource
abr 19 13:24:35 SejoLaptop bluetoothd[558]: Endpoint registered: sender=:1.20 path=/MediaEndpoint/A2DPSink
abr 19 13:26:38 SejoLaptop bluetoothd[558]: /org/bluez/hci0/dev_FC_58_FA_93_49_B5/fd0: fd(24) ready

Last edited by sejorules (2015-04-23 18:32:46)

Offline

#2 2015-04-19 12:41:45

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: [Solved] BlueZ and PulseAudio can't change to A2DP profile

You may have to switch it to the A2DP profile using pacmd. See the wiki article on bluetooth headsets for that.
You can get the device index using

$ pacmd list-sinks

[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#3 2015-04-19 22:43:07

sejorules
Member
Registered: 2014-06-13
Posts: 9

Re: [Solved] BlueZ and PulseAudio can't change to A2DP profile

Yeah! That did the trick, thanks so much! Anyway, I'm still getting those nasty Gatt Input/Output errors every time I plug in the dongle. Also, from time to time, it happens that even though the speaker is connected to the computer, it is not recognized as a sink. It seems like removing the device and unplugging the dongle is a workaround, but maybe there is a better solution.

Offline

#4 2015-04-22 20:35:50

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: [Solved] BlueZ and PulseAudio can't change to A2DP profile

I usually just reconnect the device using the applet in the systray, but it not being detected happens very rarely if at all.
Btw, don't forget to edit the thread title and put a [Solved] into it to indicate the problem is solved.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#5 2015-04-23 18:32:09

sejorules
Member
Registered: 2014-06-13
Posts: 9

Re: [Solved] BlueZ and PulseAudio can't change to A2DP profile

Hmm ok, thanks! If I find some solution to those errors, I'll post them here.

Offline

Board footer

Powered by FluxBB