You are not logged in.

#1 2023-12-08 16:34:22

mobyduck
Member
Registered: 2023-12-08
Posts: 5

[SOLVED] Bluetooth USB dongle fails to connect to Devices.

Hi guys,
I have recently bought a USB bluetooth dongle: TP Link  UB500.

I have it up and running, it scans and detects devices, it is seemingly able to register the mac address in Bluedevil, bluetuith.

I'll be using reference to bluedevil in this case:

However when adding the device I get the following message:
"The setup of <Device name> has failed" [1]

I have followed the guide to setting up bluetooth on the wiki, maybe someone here can help me out incase i'm missing something.

For further reference:

Output to rfkill:
ID TYPE      DEVICE      SOFT      HARD
2 bluetooth hci0   unblocked unblocked

Output to
lsmod | grep btusb
btusb                  86016  0
btrtl                  32768  1 btusb
btintel                57344  1 btusb
btbcm                  24576  1 btusb
btmtk                  12288  1 btusb
bluetooth            1114112  40 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm

Packages installed: pulseaudio,pulseaudio-bluetooth,bluez

Devices I have tried to connect through BT:
My phone
My Headset
Another Headset
-- All showcase the above mentioned prompt on bluedevil [1] while it shows nothing in bluetuith--

Please do mention incase you want any other information.
Greatly appreciate time anyone gives me.

Last edited by mobyduck (2023-12-08 18:21:07)

Offline

#2 2023-12-08 18:19:42

mobyduck
Member
Registered: 2023-12-08
Posts: 5

Re: [SOLVED] Bluetooth USB dongle fails to connect to Devices.

Here's how I fixed it.
++ Found an error in logs:
src/service.c:btd_service_connect() a2dp-source
profile connect failed for 30:21:C0:06:14:1F: Protocol not available


^ Mac address for my first headphone.

If your problem is the same as me

Command:

journalctl -u bluetooth -r

Would show you the same error.
src/service.c:btd_service_connect() a2dp-source
profile connect failed for <MAC address of your device you wanna connect>: Protocol not available

Here is how i fixed it.

sudo nano /etc/pulse/default.pa
Added the following line to the following section:
### Automatically restore the volume of streams and devices
load-module module-bluez5-discover

So it is look like for me now:
### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-bluez5-discover

And finally restarted everything:
sudo systemctl restart bluetooth
sudo killall pulseaudio

Now everything is working.

-_____________________________________-
Also,
aur/fix-bt-a2dp 0.1-2 (+4 0.00)
Workaround fixing no A2DP when BT headphone reconnects automatically (after being paired).
Have not tried yet.

Marking it as solved in my case.

Offline

Board footer

Powered by FluxBB