Cannot connect to bluetooth Boltune BT-BH001 with `Unable to get Headset Voice gateway SDP record: Device or resource busy` error

I’ve been trying to connect to my bluetooth BT-BH001 headset with 20.1 Mikah Manjaro and it is able to pair and trust, but it constantly fails to connect like so;

[bluetooth]# connect 00:56:06:08:13:D8 
Attempting to connect to 00:56:06:08:13:D8
Failed to connect: org.bluez.Error.Failed

The logs show the following;

asdf12@yoga:~$ journalctl -u bluetooth | tail
Sep 04 02:32:52 yoga systemd[1]: Starting Bluetooth service...
Sep 04 02:32:52 yoga bluetoothd[1583]: Bluetooth daemon 5.54
Sep 04 02:32:52 yoga systemd[1]: Started Bluetooth service.
Sep 04 02:32:52 yoga bluetoothd[1583]: Starting SDP server
Sep 04 02:32:52 yoga bluetoothd[1583]: Bluetooth management interface 1.16 initialized
Sep 04 02:32:52 yoga bluetoothd[1583]: Endpoint registered: sender=:1.50 path=/MediaEndpoint/A2DPSink/sbc
Sep 04 02:32:52 yoga bluetoothd[1583]: Endpoint registered: sender=:1.50 path=/MediaEndpoint/A2DPSource/sbc
Sep 04 02:33:56 yoga bluetoothd[1583]: Unable to get Headset Voice gateway SDP record: Device or resource busy
Sep 04 02:33:56 yoga bluetoothd[1583]: connect error: Device or resource busy (16)
Sep 04 02:33:58 yoga bluetoothd[1583]: connect error: Device or resource busy (16)

and

asdf12@yoga:~$ sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
     Active: active (running) since Fri 2020-09-04 02:32:52 PDT; 9min ago
       Docs: man:bluetoothd(8)
   Main PID: 1583 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18889)
     Memory: 3.2M
     CGroup: /system.slice/bluetooth.service
             └─1583 /usr/lib/bluetooth/bluetoothd

Sep 04 02:32:52 yoga systemd[1]: Starting Bluetooth service...
Sep 04 02:32:52 yoga bluetoothd[1583]: Bluetooth daemon 5.54
Sep 04 02:32:52 yoga systemd[1]: Started Bluetooth service.
Sep 04 02:32:52 yoga bluetoothd[1583]: Starting SDP server
Sep 04 02:32:52 yoga bluetoothd[1583]: Bluetooth management interface 1.16 initialized
Sep 04 02:32:52 yoga bluetoothd[1583]: Endpoint registered: sender=:1.50 path=/MediaEndpoint/A2DPSink/sbc
Sep 04 02:32:52 yoga bluetoothd[1583]: Endpoint registered: sender=:1.50 path=/MediaEndpoint/A2DPSource/sbc
Sep 04 02:33:56 yoga bluetoothd[1583]: Unable to get Headset Voice gateway SDP record: Device or resource busy
Sep 04 02:33:56 yoga bluetoothd[1583]: connect error: Device or resource busy (16)
Sep 04 02:33:58 yoga bluetoothd[1583]: connect error: Device or resource busy (16)

I’ve verified that I am able to connect to other devices with bluetooth such as a speaker I have, but this headset just refuses to connect. Any help would be appreciated.

Some more logs. I don’t know why these are different, but sometimes I get output like this instead when I try to connect.

asdf12@yoga:/lib/systemd/system$ journalctl -u bluetooth | tail
Sep 05 14:50:37 yoga bluetoothd[6931]: Starting SDP server
Sep 05 14:50:37 yoga bluetoothd[6931]: Bluetooth management interface 1.16 initialized
Sep 05 14:50:37 yoga bluetoothd[6931]: Endpoint registered: sender=:1.90 path=/MediaEndpoint/A2DPSink/sbc
Sep 05 14:50:37 yoga bluetoothd[6931]: Endpoint registered: sender=:1.90 path=/MediaEndpoint/A2DPSource/sbc
Sep 05 14:51:04 yoga bluetoothd[6931]: Unable to get Headset Voice gateway SDP record: Device or resource busy
Sep 05 14:51:04 yoga bluetoothd[6931]: connect error: Device or resource busy (16)
Sep 05 14:51:07 yoga bluetoothd[6931]: connect error: Device or resource busy (16)
Sep 05 14:53:12 yoga bluetoothd[6931]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Sep 05 14:53:12 yoga bluetoothd[6931]: connect error: Connection refused (111)
Sep 05 14:53:15 yoga bluetoothd[6931]: connect error: Connection refused (111)

Here is some device information as well. Only the address beginning with 00 seems to be the actual audio headset. I am able to connect to the other address, but the headset still gives a visual cue of being in pairing mode (flashing light) and it doesn’t give any sound output.

[bluetooth]# info 00:56:06:08:13:D8
Device 00:56:06:08:13:D8 (public)
	Name: Boltune BT-BH001
	Alias: Boltune BT-BH001
	Class: 0x00240418
	Icon: audio-card
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	Modalias: bluetooth:v005Dp223Bd0100
[bluetooth]# info EC:54:26:9B:FA:26
Device EC:54:26:9B:FA:26 (random)
	Name: Boltune BT-BH001
	Alias: Boltune BT-BH001
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: Vendor specific           (000002fd-3c17-d293-8e48-14fe2e4da212)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (0000d0ff-3c17-d293-8e48-14fe2e4da212)

Hi,

i would say you need the package pulseaudio-modules-bt.

After installing restart pulseaudio: systemctl --user restart pulseaudio

Hope i helps :wink:

Thanks for your response. I installed pulseaudio-modules-bt and found that it conflicted with already installed pulseaudio-bluetooth. I went ahead and removed the latter to install your suggestion and restarted pulseaudio but it still does not work and all logs give the same errors as before.

Sorry, i don’t use bluetooth at all, so cant test it, but did you check this solution?

Unfortunately I think I have tried this before, and doing it again, I think this still does not work for me. The only output I have when even searching for pulseaudio-module is the following

asdf12@yoga:~$ sudo pacman -Ss pulseaudio-module

community/pulseaudio-modules-bt 1.4-1.0
    PulseAudio Bluetooth modules with SBC, AAC, APTX, APTX-HD, Sony LDAC (A2DP codec) support

The full pulseaudio-module-bluetooth does not show up at all even when explicitly searching for it. Trying the load-module commands errors me with this

asdf12@yoga:~$ sudo pactl load-module module-bluetooth-discover
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

It just simply does not seem to want to work.

I see you are using A2DP. That could be the root problem.

Check also this page: Bluetooth headset - ArchWiki

Hi,
I had a slightly different problem recently. In my case, I could connect the headset at first but once discnnecting, I cannot reconnect. Weirdy, attempting a second connect could “broke” my computer’s bluetooth ability until I restart the computer.
Anyway, the problem was disappearing when I connect the headset with another device (an android phone) and tried to pair and connect again. Problem was seeming weird as if the headset cannot forget previous connection. Then I realized that removing the headset (by bluetoothctl remove), then re-scan and connect also made it work. I cannot find any “proper” solution to that, but I just automatize the remove-reconnect steps using expect.
I’m not sure removing and pairing againg will work for you. Probably you already tried that, but I still wanted to tell…

Based on the following logs, that very well could be the issue;

Sep 06 18:47:24 yoga bluetoothd[4440]: Endpoint registered: sender=:1.50 path=/MediaEndpoint/A2DPSource/sbc
Sep 06 18:47:57 yoga bluetoothd[4440]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Sep 06 18:47:57 yoga bluetoothd[4440]: connect error: Connection refused (111)
Sep 06 18:48:01 yoga bluetoothd[4440]: connect error: Connection refused (111)
Sep 06 18:48:14 yoga bluetoothd[4440]: Endpoint unregistered: sender=:1.50 path=/MediaEndpoint/A2DPSink/sbc
Sep 06 18:48:14 yoga bluetoothd[4440]: Endpoint unregistered: sender=:1.50 path=/MediaEndpoint/A2DPSource/sbc
Sep 06 18:48:25 yoga bluetoothd[4440]: a2dp-sink profile connect failed for 00:56:06:08:13:D8: Protocol not available
Sep 06 18:48:37 yoga bluetoothd[4440]: a2dp-sink profile connect failed for 00:56:06:08:13:D8: Protocol not available
Sep 06 18:51:45 yoga bluetoothd[4440]: Endpoint registered: sender=:1.157 path=/MediaEndpoint/A2DPSink/sbc
Sep 06 18:51:45 yoga bluetoothd[4440]: Endpoint registered: sender=:1.157 path=/MediaEndpoint/A2DPSource/sbc

I went through the whole arch wiki page and still nothing works. This device worked fine back when I was using Ubuntu, I guess I’ll just have to keep searching.

As nice and easy as this would be, it does not work unfortunately. I appreciate your input though.

1 Like

For what it’s worth, here’s some of my package list as well. I’m pretty sure I have everything installed that is necessary.

asdf12@yoga:~$ sudo pacman -Qs bluetooth
local/blueman 2.1.3-1
    GTK+ Bluetooth Manager
local/bluez 5.54-2
    Daemons for the bluetooth protocol stack
local/bluez-hid2hci 5.54-2
    Put HID proxying bluetooth HCI's into HCI mode
local/bluez-libs 5.54-2
    Deprecated libraries for the bluetooth protocol stack
local/bluez-utils 5.54-2
    Development and debugging utilities for the bluetooth protocol stack
local/gnome-bluetooth 3.34.1-1
    The GNOME Bluetooth Subsystem
local/hidapi 0.9.0-2
    Simple library for communicating with USB and Bluetooth HID devices
local/pulseaudio-bluetooth 13.0-3
    Bluetooth support for PulseAudio
local/sbc 1.4-2
    Bluetooth Subband Codec (SBC) library
asdf12@yoga:~$ sudo pacman -Qs bluez
local/bluez 5.54-2
    Daemons for the bluetooth protocol stack
local/bluez-hid2hci 5.54-2
    Put HID proxying bluetooth HCI's into HCI mode
local/bluez-libs 5.54-2
    Deprecated libraries for the bluetooth protocol stack
local/bluez-utils 5.54-2
    Development and debugging utilities for the bluetooth protocol stack
asdf12@yoga:~$ sudo pacman -Qs pulseaudio
local/libcanberra-pulse 0.30+2+gc0620e4-3
    PulseAudio plugin for libcanberra
local/pavucontrol 1:4.0-2
    PulseAudio Volume Control
local/pulseaudio 13.0-3
    A featureful, general-purpose sound server
local/pulseaudio-alsa 1:1.2.2-2
    ALSA Configuration for PulseAudio
local/pulseaudio-bluetooth 13.0-3
    Bluetooth support for PulseAudio

Huch? you are using gnome?

Did you try this? Talk:Bluetooth headset - ArchWiki

There is also an official package:
pamac install pulseaudio-bluetooth-a2dp-gdm-fix

The arch wiki suggestion did not work. I had tried downloading that package before, but it didn’t work so I removed it. I tried redownloading that package in conjunction with the default.pa fix from the wiki, still no success.

I’m tempted and willing to do basically a complete wipe of all my audio/bluetooth stuff in order to get this to work. Since it worked before with Ubuntu, I would think the issue has simply got to be the packages that I am using.