Bluetooth connection issue

Hello, I moved to Endeavour recently and can’t figure out the problem with my Bluetooth headset connection. I could be able to get the android mobile connected via Bluetooth but not headsets (realme buds wireless and Q). I followed Endeavour Bluetooth article and even did a restart but the same issue with headsets persists.

Things I tried:

  • I did remove the devices, repaired and restarted service
  • Installed additional packages that helped others in this forum
  • I did enter pairing mode on both headsets options, but couldn’t be able to connect later on

after pairing and trusting, while connecting headset this happens:

Attempting to connect to 18:95:XX:XX:XX:XX
[CHG] Device 18:95:XX:XX:XX:XX Connected: yes
Failed to connect: org.bluez.Error.Failed
[CHG] Device 18:95:XX:XX:XX:XX Connected: no

here are some details:

[details="inxi -Fxzmc0 --no-host"]
System:    Kernel: 5.12.12-arch1-1 x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: KDE Plasma 5.22.1 Distro: EndeavourOS 
           base: Arch Linux 
Machine:   Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X412FAC_X412FA v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X412FAC v: 1.0 serial: <filter> UEFI: American Megatrends v: X412FAC.303 date: 07/17/2020 
Battery:   ID-1: BAT0 charge: 33.2 Wh (100.0%) condition: 33.2/37.1 Wh (89.5%) volts: 7.8 min: 7.8 model: ASUSTeK ASUS Battery 
           status: Not charging 
Memory:    RAM: total: 7.61 GiB used: 3.92 GiB (51.5%) 
           RAM Report: missing: Required tool dmidecode not installed. Check --recommends 
CPU:       Info: Quad Core model: Intel Core i5-10210U bits: 64 type: MT MCP arch: Kaby Lake note: check rev: C cache: 
           L2: 6 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 33615 
           Speed: 800 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 
           Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo bus-ID: 1-5:3 
           Display: x11 server: X.org 1.20.11 driver: loaded: intel unloaded: fbdev,modesetting,vesa 
           resolution: <missing: xdpyinfo> 
           Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:     Device-1: Intel Comet Lake PCH-LP cAVS vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 
           Sound Server-1: ALSA v: k5.12.12-arch1-1 running: yes 
           Sound Server-2: JACK v: 0.125.0 running: no 
           Sound Server-3: PulseAudio v: 14.2 running: yes 
           Sound Server-4: PipeWire v: 0.3.30 running: no 
Network:   Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel port: 3000 bus-ID: 00:14.3 
           IF: wlan0 state: up mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb v: 0.8 bus-ID: 1-10:4 
           Report: This feature requires one of these tools: hciconfig/bt-adapter 
Drives:    Local Storage: total: 1.14 TiB used: 33.98 GiB (2.9%) 
           ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFM256GDJTNG-8310A size: 238.47 GiB 
           ID-2: /dev/sda vendor: Western Digital model: WD10SPZX-80Z10T2 size: 931.51 GiB 
Partition: ID-1: / size: 57.37 GiB used: 19.97 GiB (34.8%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: /boot/efi size: 598.8 MiB used: 296 KiB (0.0%) fs: vfat dev: /dev/nvme0n1p1 
           ID-3: /home size: 175.42 GiB used: 3.28 GiB (1.9%) fs: ext4 dev: /dev/nvme0n1p3 
Swap:      ID-1: swap-1 type: file size: 7.81 GiB used: 3.2 MiB (0.0%) file: /swapfile 
Sensors:   System Temperatures: cpu: 55.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2000 
Info:      Processes: 273 Uptime: 1h 28m Init: systemd Compilers: gcc: 11.1.0 Packages: 1046 Shell: Bash v: 5.1.8 inxi: 3.3.03 
[/details]
[details="hwinfo --bluetooth"]
01: USB 00.0: 11500 Bluetooth Device                            
  [Created at usb.122]
  Unique ID: ...
  Parent ID: k4bc.2DFUsyrieMD
  SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0
  SysFS BusID: 1-10:1.0
  Hardware Class: bluetooth
  Model: "Intel Bluetooth 9460/9560 Jefferson Peak (JfP)"
  Hotplug: USB
  Vendor: usb 0x8087 "Intel Corp."
  Device: usb 0x0aaa "Bluetooth 9460/9560 Jefferson Peak (JfP)"
  Revision: "0.02"
  Driver: "btusb"
  Driver Modules: "btusb"
  Speed: 12 Mbps
  Module Alias: "usb:v8087p0AAAd0002dcE0dsc01dp01icE0isc01ip01in00"
  Driver Info #0:
    Driver Status: btusb is active
    Driver Activation Cmd: "modprobe btusb"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #4 (Hub)
[/details]
[details="yay -Qs bluetooth"]
local/blueberry 1.4.2-1
    Bluetooth configuration tool
local/bluedevil 1:5.22.1-1 (plasma)
    Integrate the Bluetooth technology within KDE workspace and applications
local/bluez 5.59-2
    Daemons for the bluetooth protocol stack
local/bluez-hid2hci 5.59-2
    Put HID proxying bluetooth HCI's into HCI mode
local/bluez-libs 5.59-2
    Deprecated libraries for the bluetooth protocol stack
local/bluez-tools 0.2.0-5
    A set of tools to manage Bluetooth devices for Linux
local/bluez-utils 5.59-2
    Development and debugging utilities for the bluetooth protocol stack
local/gnome-bluetooth 3.34.5-2
    The GNOME Bluetooth Subsystem
local/hidapi 0.10.1-1
    Simple library for communicating with USB and Bluetooth HID devices
local/libldac 2.0.2.3-1
    LDAC Bluetooth encoder library
local/pulseaudio-bluetooth 14.2-3
    Bluetooth support for PulseAudio
local/sbc 1.5-2
    Bluetooth Subband Codec (SBC) library
[/details]
[details="sudo dmesg | grep blue"]
[ 5311.323824] audit: type=1131 audit(1624355266.843:206): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 5311.335765] audit: type=1130 audit(1624355266.856:207): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 5435.203586] audit: type=1131 audit(1624355390.723:242): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 5435.215254] audit: type=1130 audit(1624355390.733:243): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[/details]
[details="systemctl status bluetooth"]
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2021-06-22 15:24:36 IST; 26min ago
       Docs: man:bluetoothd(8)
   Main PID: 12240 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9327)
     Memory: 1.1M
        CPU: 154ms
     CGroup: /system.slice/bluetooth.service
             └─12240 /usr/lib/bluetooth/bluetoothd

Jun 22 15:38:35 ceph bluetoothd[12240]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 22 15:38:35 ceph bluetoothd[12240]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 22 15:38:35 ceph bluetoothd[12240]: profiles/audio/a2dp.c:a2dp_select_capabilities() Unable to select SEP
Jun 22 15:38:37 ceph bluetoothd[12240]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 22 15:38:58 ceph bluetoothd[12240]: profiles/audio/a2dp.c:a2dp_select_capabilities() Unable to select SEP
Jun 22 15:39:00 ceph bluetoothd[12240]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 22 15:40:03 ceph bluetoothd[12240]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 22 15:41:14 ceph bluetoothd[12240]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 22 15:41:14 ceph bluetoothd[12240]: profiles/audio/avdtp.c:caps_to_list() Invalid capability data in getcap resp
Jun 22 15:41:14 ceph bluetoothd[12240]: profiles/audio/a2dp.c:a2dp_select_capabilities() Unable to select SEP
[/details]
Thank you

**Moderator edit: Fixed formatting.**
1 Like

Welcome Aboard!
welcome

Read here:

It seems they may not have addressed this bug yet. Try downgrading as instructed in the link and see if it helps your problem :+1:

I have two sets of BT earbuds, one set (Yimaxx??) never connected, the new ones (Oppo W51) connect straight away. Not helpful, but it may be the earbuds - do you have a Windows PC, can you connect them there?

Thank you Elloquin
I downgraded the bluez bluez-libs and bluez-utils to 5.58 and removed /var/lib/bluetooth
I could be able to connect to device Q but not the other (same issue - connects and drops within a second). But, even the connected one isn’t able to play audio, although the sound level bar fluctuates for that device on taskbar icon

xircon, so yeah it could also be dependent on buds, one device has LDAC codec (realme buds wireless pro), while other is normal (realme buds Q) earbuds.
Both are able to connect to windows laptop and android mobile albeit the LDAC codec device’s mic is not taking input on windows unless I disable or remove the actual laptop’s microphone drivers.

Try a different kernel like zen for an example.

Just tried zen kernel but still stuck with same.
although bluez downgrade removed caps_to_list error, the other error persists:

Jun 22 18:23:44 ceph bluetoothd[622]: profiles/audio/a2dp.c:a2dp_select_capabilities() Unable to select SEP
Jun 22 18:23:59 ceph bluetoothd[622]: profiles/audio/a2dp.c:a2dp_select_capabilities() Unable to select SEP

Tried bluez-git suggestion from this Arch forum PulseAudio Bluetooth Issue: Unable to select SEP

Could be able to connect and listen finally :smiley:

But any help on using headset’s mic?

needs connect device as headset device, can be … troublesome :grin:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.