You are not logged in.

#1 2024-06-05 13:15:04

greenPillow
Member
Registered: 2024-04-20
Posts: 3

bluetoothctl 5.76 fails to connect after pairing on broadcom card

I am trying to connect my (up to date) arch linux with my headphones.
It seems that there are a lot of questions about the topic, and I have tried many ideas:
I have tried rebooting, removing the /var/lib/bluetooth directory, reinstalling the packages, removing the device and retrying to pair+connect, restarting the services, none has helped me.

Bluetooth card is the following (from lsusb): `ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)`
I installed bluez-hid2hci to make the device detectable.

hciconfig -a

hci0:   Type: Primary  Bus: USB
        BD Address: 00:00:00:00:00:00  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING PSCAN
        RX bytes:58955 acl:1 sco:0 events:751 errors:0
        TX bytes:14509 acl:23 sco:0 commands:403 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: PERIPHERAL ACCEPT
        Name: 'arch'
        Class: 0x00010c
        Service Classes: Unspecified
        Device Class: Computer, Laptop
        HCI Version: 2.1 (0x4)  Revision: 0x50ad
        LMP Version: 2.1 (0x4)  Subversion: 0x423d
        Manufacturer: Broadcom Corporation (15)

btmgmt info

Index list with 1 item
hci0:   Primary controller
        addr 88:9F:FA:B3:3C:0D version 4 manufacturer 15 class 0x00010c
        supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr debug-keys phy-configuration
        current settings: powered ssp br/edr
        name arch
        short name

lsmod | grep btusb

btusb                  86016  0
btrtl                  32768  1 btusb
btintel                65536  1 btusb
btbcm                  24576  1 btusb
btmtk                  12288  1 btusb
bluetooth            1097728  26 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm

sudo systemctl status bluetooth.service

 bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: active (running) since Wed 2024-06-05 15:14:03 IDT; 18min ago
       Docs: man:bluetoothd(8)
   Main PID: 3098 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4426)
     Memory: 944.0K (peak: 1.4M)
        CPU: 277ms
     CGroup: /system.slice/bluetooth.service
             └─3098 /usr/lib/bluetooth/bluetoothd

Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSink/sbc_xq_453
Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSource/sbc_xq_552
Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSink/faststream
Jun 05 15:23:00 arch bluetoothd[3098]: Endpoint unregistered: sender=:1.111 path=/MediaEndpoint/A2DPSource/faststream
Jun 05 15:25:41 arch bluetoothd[3098]: src/device.c:search_cb() 18:26:54:A5:26:97: error updating services: Connection timed out (110)
Jun 05 15:26:01 arch bluetoothd[3098]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 18:26:54:A5:26:97: Protocol not available

rfkill

ID TYPE      DEVICE      SOFT      HARD
 0 bluetooth hci0   unblocked unblocked
 1 wlan      phy0   unblocked unblocked

versions:

bluetoothctl 5.76
bluez-deprecated-tools 5.76.1
bluez-hid2hci 5.76-1
pulseaudio-bluetooth 17.0-3

My user is part of the lp group.

I do the following:

bluetoothctl
scan on
pair 00:01:02:03:04:05
Attempting to pair with 00:01:02:03:04:05
[CHG] Device 00:01:02:03:04:05 Connected: yes
[Headphones]# [CHG] Device 00:01:02:03:04:05 Bonded: yes
[Headphones]# [CHG] Device 00:01:02:03:04:05 RSSI: 0xffffffd8 (-40)
[Headphones]# [CHG] Device 00:01:02:03:04:05 ServicesResolved: yes
[Headphones]# [CHG] Device 00:01:02:03:04:05 Paired: yes
[Headphones]# Pairing successful
trust 00:01:02:03:04:05
[Headphones]# [CHG] Device 00:01:02:03:04:05 Trusted: yes
[Headphones]# Changing 00:01:02:03:04:05 trust succeeded
[Headphones]# connect 00:01:02:03:04:05
Attempting to connect to 00:01:02:03:04:05
[Headphones]# Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable

On another occasion when I start or stop pulse audio with

 pulseaudio --start 

I am getting:

 Failed to connect: org.bluez.Error.Failed br-connection-canceled 

Last edited by greenPillow (2024-06-05 13:15:38)

Offline

Board footer

Powered by FluxBB