You are not logged in.

#26 2022-01-10 15:41:58

getcha
Member
Registered: 2016-10-28
Posts: 5

Re: Bluetooth not working on Kernel 5.15

lula wrote:

I just recompiled the modules in the drivers/bluetooth directory in the kernel source tree following the instructions in the wiki using the Arch Build System. After that i replaced the btusb.ko.zst with the newly compiled version followed by a depmod and a reboot.

The patch for my hardware was just changing one line in btusb.c in the mentioned directory

-	{ USB_DEVICE(0x8087, 0x0a2a), .driver_info = BTUSB_INTEL_COMBINED },
+	{ USB_DEVICE(0x8087, 0x0a2a), .driver_info = BTUSB_INTEL_COMBINED |
+						     BTUSB_INTEL_BROKEN_INITIAL_NCMD },

https://wiki.archlinux.org/title/Compil … ild_System

Thank you !

Offline

#27 2022-01-10 20:12:16

lula
Member
Registered: 2009-07-16
Posts: 70

Re: Bluetooth not working on Kernel 5.15

Does that mean it works for you? If so, think about switching to the patches that lokjo linked in #24 because these patches will (hopefully) be part of the kernel source tree in the near future, so no patches on our side will be needed any more. They work for me, too.

Offline

#28 2022-01-11 04:20:55

loqs
Member
Registered: 2014-03-06
Posts: 14,439

Re: Bluetooth not working on Kernel 5.15

commit has been merged into mainline for 5.17
https://git.kernel.org/pub/scm/linux/ke … 5b4c4c227b
It is marked for fixes so should be part of a future stable release.

Offline

#29 2022-01-11 16:41:14

crocme10
Member
Registered: 2022-01-11
Posts: 1

Re: Bluetooth not working on Kernel 5.15

Hello,

new to this channel here.

I just upgraded my system today, which included a new version of linux-firmware (20211027.1d00989-1 -> 20211216.f682ecb-1). And bluetooth stopped working.
The first sign I had was the command

bluetoothctl power on
Failed to set power on: org.bluez.Error.Failed

Looking in journalctl I see a lot of messages like so:

dbus-daemon[485]: [system] Rejected: destination has a full message queue, 0 matched rules; type="error", sender="(unset)" ((bus)) interface="(unset)" member="(unset)"
  error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="1" destination=":1.129" (uid=0 pid=404051 comm="/usr/lib/bluetooth/bluetoothd ")
[...]
kernel: Bluetooth: hci0: QCA: Discarding other packets
[...]
kernel: Bluetooth: hci0: QCA memdump unexpected packet 32

Other error message in journalctl related to powering bluetooth on:

bluetoothd[28962]: Failed to set mode: Failed (0x03)

A bit of background:

  • I run a stock kernel 5.15.13-arch1-1

  • I have several packages installed related to bluetooth: bluez 5.63-1, bluez-libs 5.63-1, bluez-utils 5.63-1, pulseaudio-bluetooth 15.0-1

  • The machine is a dell xps 9700 with a Network controller: Qualcomm QCA6390 Wireless Network Adapter [AX500-DBS (2x2)] (rev 01)

Any suggestion how to fix this?

Thank you

PS Other bits and pieces...

root@taipan ~ [1]# lsmod | grep -i bt
btqca                  24576  1 hci_uart
btrtl                  28672  1 hci_uart
btbcm                  24576  1 hci_uart
btintel                45056  1 hci_uart
bluetooth             749568  34 btrtl,btqca,btintel,hci_uart,btbcm,bnep,rfcomm

Offline

#30 2022-01-12 08:16:56

yallu
Member
Registered: 2020-02-14
Posts: 3

Re: Bluetooth not working on Kernel 5.15

Bluetooth not working for me either, Asus PN51 at Linux 5.15.13-arch1-1 (x86_64).

Not quite sure from the previous comments if if should already work or not...

Offline

#31 2022-01-13 22:17:42

loqs
Member
Registered: 2014-03-06
Posts: 14,439

Re: Bluetooth not working on Kernel 5.15

Fix is queued for 5.16.1 and 5.15.15
https://git.kernel.org/pub/scm/linux/ke … 98ecbdb92b
https://git.kernel.org/pub/scm/linux/ke … a83a12e7c0

Last edited by loqs (2022-01-13 22:18:05)

Offline

#32 2022-01-18 14:41:42

alxndr13
Member
Registered: 2016-09-22
Posts: 11

Re: Bluetooth not working on Kernel 5.15


Thanks for the heads up.

Offline

#33 2022-01-18 19:40:40

lula
Member
Registered: 2009-07-16
Posts: 70

Re: Bluetooth not working on Kernel 5.15

With todays update to 5.16.1-arch1-1 it works again for me without any patches

Offline

#34 2022-01-19 15:38:28

scaramanga
Member
Registered: 2022-01-19
Posts: 3

Re: Bluetooth not working on Kernel 5.15

The issue persists for me even after the upgrade. Didn't try 5.15.15, since the only way for me to use bluetooth devices is holding linux-lts at 5.10...

$ uname -r
5.16.1-arch1-1

# dmesg | grep -i bluetooth
[    2.462815] Bluetooth: Core ver 2.22
[    2.462837] NET: Registered PF_BLUETOOTH protocol family
[    2.462839] Bluetooth: HCI device and connection manager initialized
[    2.462844] Bluetooth: HCI socket layer initialized
[    2.462846] Bluetooth: L2CAP socket layer initialized
[    2.462850] Bluetooth: SCO socket layer initialized
[    3.782199] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.782202] Bluetooth: BNEP filters: protocol multicast
[    3.782206] Bluetooth: BNEP socket layer initialized
[    4.720015] Bluetooth: hci0: command 0xfc05 tx timeout
[    4.720030] Bluetooth: hci0: Reading Intel version command failed (-110)

Offline

#35 2022-01-20 17:22:42

yallu
Member
Registered: 2020-02-14
Posts: 3

Re: Bluetooth not working on Kernel 5.15

.16.1 kernel did not resolve it for me. (bluetooth has worked before)

# rfkill list
0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: no

$ lsmod | grep btusb
btusb                  65536  0
btrtl                  28672  1 btusb
btbcm                  24576  1 btusb
btintel                45056  1 btusb
bluetooth             770048  13 btrtl,btintel,btbcm,bnep,btusb

# systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2022-01-20 18:57:39 EET; 8min ago
       Docs: man:bluetoothd(8)
   Main PID: 4751 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 76428)
     Memory: 1.9M
        CPU: 17ms
     CGroup: /system.slice/bluetooth.service
             └─4751 /usr/lib/bluetooth/bluetoothd

jan 20 18:57:39 pn51 systemd[1]: Starting Bluetooth service...
jan 20 18:57:39 pn51 bluetoothd[4751]: Bluetooth daemon 5.63
jan 20 18:57:39 pn51 systemd[1]: Started Bluetooth service.
jan 20 18:57:39 pn51 bluetoothd[4751]: Starting SDP server
jan 20 18:57:39 pn51 bluetoothd[4751]: Bluetooth management interface 1.21 initialized

# dmesg | grep -i bluetooth
[    1.913824] Bluetooth: Core ver 2.22
[    1.913843] NET: Registered PF_BLUETOOTH protocol family
[    1.913844] Bluetooth: HCI device and connection manager initialized
[    1.913849] Bluetooth: HCI socket layer initialized
[    1.913851] Bluetooth: L2CAP socket layer initialized
[    1.913852] Bluetooth: SCO socket layer initialized
[   22.683113] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   22.683124] Bluetooth: BNEP filters: protocol multicast
[   22.683132] Bluetooth: BNEP socket layer initialized
[  745.966620] audit: type=1131 audit(1642698582.955:173): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  745.977677] audit: type=1130 audit(1642698582.965:176): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  758.638249] audit: type=1131 audit(1642698595.625:195): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  758.648701] audit: type=1130 audit(1642698595.638:198): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

# bluetoothctl devices
No default controller available

bluez and bluez-utils installed. Also tried bluez-utils-compat and bluez-hid2hci (since the dongle is for Logitech MX Master 3 and MX Keys).

Offline

#36 Yesterday 01:44:36

lokjo
Member
Registered: 2021-11-20
Posts: 8

Re: Bluetooth not working on Kernel 5.15

yallu you seem to not have the same error messages, not sure if your problem is related to the one in this thread.

scaramanga, in the fix commit they say they applied it to three devices 8087:07dc, 8087:0a2a and 8087:0aa7. Do you have one of those three devices or something else? (lsusb shows these ids)

Offline

#37 Yesterday 06:06:09

scaramanga
Member
Registered: 2022-01-19
Posts: 3

Re: Bluetooth not working on Kernel 5.15

lokjo wrote:

scaramanga, in the fix commit they say they applied it to three devices 8087:07dc, 8087:0a2a and 8087:0aa7. Do you have one of those three devices or something else? (lsusb shows these ids)

That explains it. I have 8087:0029 Intel Corp. AX200 Bluetooth (integrated into the mainboard).

Offline

#38 Yesterday 15:08:34

lokjo
Member
Registered: 2021-11-20
Posts: 8

Re: Bluetooth not working on Kernel 5.15

scaramanga wrote:

That explains it. I have 8087:0029 Intel Corp. AX200 Bluetooth (integrated into the mainboard).

I guess you could try applying the fix manually like lula described in post 23, i.e. add for your card the BTUSB_INTEL_BROKEN_INITIAL_NCMD flag, then compile and run it. If it works you can try to ask them in the bluetooth mailing list to apply it to the kernel.

Offline

#39 Yesterday 17:17:17

scaramanga
Member
Registered: 2022-01-19
Posts: 3

Re: Bluetooth not working on Kernel 5.15

I did reboot a few times after upgrading to 5.16.2 just now with bluetooth seeming to work. If the problem appears again I'll try to apply the patch though.

Offline

Board footer

Powered by FluxBB