BT powering off when pairing or connecting

Hello people,
reproduced the following problem on Plasma 5.17 and XFCE 4.14, both on Endeavour and Manjaro, on Kernel 5.7 and 5.6. Not reproducable on MXLinux live-session so I guess it’s something Arch-related.

The issue: Bluetooth adapter and available devices are shown properly in GUI (in blueman, blueberry and bluedevil) as well as in bluetoothctl scan on. When I try to pair, the adapter shuts off for 2-3 seconds, saying no adapter found and then powers on again. Same behaviour when using bluetoothctl pair/connect in terminal.

Any suggestion is appreciated.
Best,
cpt

lspci

01:00.0 Ethernet controller: Qualcomm Atheros QCA8171 Gigabit Ethernet (rev 13)
01:00.1 SD Host controller: Qualcomm Atheros Device 3010 (rev 13)
05:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
sudo lsmod |grep blue 

bluetooth             716800  44 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm
ecdh_generic           16384  2 bluetooth
rfkill                 28672  10 acer_wmi,bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4
pactl list short | grep blue

9       module-bluetooth-policy
10      module-bluetooth-discover
11      module-bluez5-discover
hciconfig -a

hci0:   Type: Primary  Bus: USB
        BD Address: 40:F0:2F:66:86:0A  ACL MTU: 1022:8  SCO MTU: 183:5
        UP RUNNING PSCAN ISCAN 
        RX bytes:1956 acl:0 sco:0 events:108 errors:0
        TX bytes:6124 acl:0 sco:0 commands:108 errors:0
        Features: 0xff 0xfe 0x0d 0xfe 0xd8 0x7f 0x7b 0x8f
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF 
        Link mode: SLAVE ACCEPT 
        Name: 'plasma'
        Class: 0x7c010c
        Service Classes: Rendering, Capturing, Object Transfer, Audio, Telephony
        Device Class: Computer, Laptop
        HCI Version: 4.1 (0x7)  Revision: 0x3101
        LMP Version: 4.1 (0x7)  Subversion: 0x1
        Manufacturer: Atheros Communications, Inc. (69)

Hello @cpt
Did you follow the wiki?

Also have a look at the Arch wiki.

https://wiki.archlinux.org/index.php/Bluetooth#Installation

I did. Installed Arch-based system a few times in the past, never ran into that problem. I tried the whole trouble shooting go through without success.

Did you look at journalctl?

journalctl | grep -i bluetooth

Jul 04 16:33:03 plasma systemd[1]: Starting Bluetooth service...
Jul 04 16:33:03 plasma bluetoothd[10714]: Bluetooth daemon 5.54
Jul 04 16:33:03 plasma systemd[1]: Started Bluetooth service.
Jul 04 16:33:03 plasma audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 04 16:33:03 plasma kernel: audit: type=1130 audit(1593873183.128:229): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 04 16:33:03 plasma bluetoothd[10714]: Starting SDP server
Jul 04 16:33:03 plasma dbus-daemon[786]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.1809' (uid=0 pid=10714 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
Jul 04 16:33:03 plasma bluetoothd[10714]: Bluetooth management interface 1.16 initialized
Jul 04 16:33:03 plasma kded5[1241]: bluedevil: Bluetooth operational changed true
Jul 04 16:33:03 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:03 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:03 plasma bluetoothd[10714]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/sbc
Jul 04 16:33:03 plasma bluetoothd[10714]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/sbc
Jul 04 16:33:03 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:16 plasma bluetoothd[10714]: 34:DF:2A:32:30:BB: error updating services: Software caused connection abort (103)
Jul 04 16:33:16 plasma systemd[1167]: Stopped target Bluetooth.
Jul 04 16:33:16 plasma systemd[1]: Stopped target Bluetooth.
Jul 04 16:33:16 plasma bluetoothd[10714]: Endpoint unregistered: sender=:1.47 path=/MediaEndpoint/A2DPSink/sbc
Jul 04 16:33:16 plasma bluetoothd[10714]: Endpoint unregistered: sender=:1.47 path=/MediaEndpoint/A2DPSource/sbc
Jul 04 16:33:16 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:16 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:16 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:22 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:22 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined
Jul 04 16:33:22 plasma bluetoothd[10714]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/sbc
Jul 04 16:33:22 plasma bluetoothd[10714]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/sbc
Jul 04 16:33:22 plasma plasmashell[1326]: file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js:36: TypeError: Cannot read property 'devices' of undefined

I don’t know how to interpret this.

I see the error messages. Have you have these same devices paired before on a different system?

Do you also have wifi?

yes, on Mx in live session it worked without a problem

yes, no issues there

What wifi chip is it?

lspci | grep -i wireless

05:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)

You said you have already gone through troubleshooting. Might have to keep looking at some more entries and looking for answers.

@cpt
Have you tried manually checking and removing any pairing and then try to re-pare the devices.

bluetoothctl

remove aa:bb:cc:dd:ee:ff

yes, without an luck.

when I remove a device now, and try to repair in bluetoothctl, the following shows up:

[bluetooth]# pair 34:DF:2A:32:30:BB
Attempting to pair with 34:DF:2A:32:30:BB
Failed to pair: org.bluez.Error.AuthenticationFailed
[CHG] Controller 40:F0:2F:66:86:0A Class: 0x00000000
[CHG] Controller 40:F0:2F:66:86:0A Powered: no
[CHG] Controller 40:F0:2F:66:86:0A Discovering: no
[DEL] Device 18:F0:E4:2C:A3:83 Xiaomi Redmi 4X
[DEL] Device 34:DF:2A:32:30:BB Teufel MUTE BT
[DEL] Device 60:AB:67:44:62:CF Redmi
[DEL] Device F4:F9:51:E1:EA:6E F4-F9-51-E1-EA-6E
[DEL] Controller 40:F0:2F:66:86:0A plasma [default]
[NEW] Controller 40:F0:2F:66:86:0A plasma [default]
[NEW] Device 18:F0:E4:2C:A3:83 Xiaomi Redmi 4X
[NEW] Device 34:DF:2A:32:30:BB Teufel MUTE BT
[CHG] Controller 40:F0:2F:66:86:0A Powered: yes
[CHG] Controller 40:F0:2F:66:86:0A Alias: plasma
[CHG] Controller 40:F0:2F:66:86:0A Class: 0x0000010c

sudo systemctl status bluetooth

sudo systemctl status bluetooth

● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled>
     Active: active (running) since Sat 2020-07-04 17:03:53 CEST; 46min >
       Docs: man:bluetoothd(8)
   Main PID: 11396 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 6449)
     Memory: 1.6M
     CGroup: /system.slice/bluetooth.service
             └─11396 /usr/lib/bluetooth/bluetoothd

Jul 04 17:25:31 plasma bluetoothd[11396]: Endpoint registered: sender=:1>
Jul 04 17:25:31 plasma bluetoothd[11396]: Endpoint registered: sender=:1>
Jul 04 17:26:59 plasma bluetoothd[11396]: Endpoint unregistered: sender=>
Jul 04 17:26:59 plasma bluetoothd[11396]: Endpoint unregistered: sender=>
Jul 04 17:27:05 plasma bluetoothd[11396]: Endpoint registered: sender=:1>
Jul 04 17:27:05 plasma bluetoothd[11396]: Endpoint registered: sender=:1>
Jul 04 17:28:13 plasma bluetoothd[11396]: Endpoint unregistered: sender=>
Jul 04 17:28:13 plasma bluetoothd[11396]: Endpoint unregistered: sender=>
Jul 04 17:28:19 plasma bluetoothd[11396]: Endpoint registered: sender=:1>
Jul 04 17:28:19 plasma bluetoothd[11396]: Endpoint registered: sender=:1>
lines 1-21/21 (END)

Did you check?

rfkill list

rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
16: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

dmesg | grep blue
dmesg | grep blue
[   28.952028] audit: type=1130 audit(1593866285.558:46): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 6917.136469] audit: type=1131 audit(1593873173.745:226): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 6926.522437] audit: type=1130 audit(1593873183.128:229): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 8747.408878] audit: type=1131 audit(1593875004.015:253): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 8777.304431] audit: type=1130 audit(1593875033.912:256): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'