You are not logged in.

#1 2022-10-14 21:11:39

Rnnarch1
Member
From: Brazil
Registered: 2022-10-14
Posts: 1

Bluetooth no longer working after kernel 6.0.1-arch2-1

Hi there,

Bluetooth adapter no longer working after update to kernel 6.0.1-arch2-1


lsusb
Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

journalctl output when plug the bluetooth dongle:

out 14 16:56:17 arch kernel: usb 1-8: new full-speed USB device number 9 using xhci_hcd
out 14 16:56:17 arch kernel: usb 1-8: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=88.91
out 14 16:56:17 arch kernel: usb 1-8: New USB device strings: Mfr=0, Product=2, SerialNumber=0
out 14 16:56:17 arch kernel: usb 1-8: Product: BT DONGLE10
out 14 16:56:17 arch kernel: Bluetooth: hci0: CSR: Unbranded CSR clone detected; adding workarounds and force-suspending once...
out 14 16:56:17 arch NetworkManager[445]: <debug> [1665780977.3776] udev rfkill event: action 'add' device 'rfkill1'
out 14 16:56:17 arch systemd[1097]: Reached target Bluetooth.
░░ Subject: Unidade UNIT concluiu a inicialização
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A unidade UNIT concluiu a inicialização.
░░ 
░░ The start-up result is done.
out 14 16:56:17 arch dbus-daemon[440]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service' requested by ':1.96' (uid=970 pid=3925 comm="/usr/lib/colord-sane")
out 14 16:56:17 arch NetworkManager[445]: <debug> [1665780977.3788] udev rfkill event: action 'change' device 'rfkill1'
out 14 16:56:17 arch systemd[1]: Starting Load/Save RF Kill Switch Status...
░░ Subject: Unidade systemd-rfkill.service sendo iniciado
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A unidade systemd-rfkill.service está sendo iniciada.
out 14 16:56:17 arch dbus-daemon[440]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service not found.
out 14 16:56:17 arch systemd[1]: Reached target Bluetooth Support.
░░ Subject: Unidade bluetooth.target concluiu a inicialização
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A unidade bluetooth.target concluiu a inicialização.
░░ 
░░ The start-up result is done.
out 14 16:56:17 arch systemd[1]: Started Load/Save RF Kill Switch Status.
░░ Subject: Unidade systemd-rfkill.service concluiu a inicialização
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A unidade systemd-rfkill.service concluiu a inicialização.
░░ 
░░ The start-up result is done.
out 14 16:56:17 arch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
out 14 16:56:17 arch kernel: audit: type=1130 audit(1665780977.440:175): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
out 14 16:56:17 arch kernel: Bluetooth: hci0: HCI Delete Stored Link Key command is advertised, but not supported.
out 14 16:56:17 arch kernel: Bluetooth: hci0: HCI Set Event Filter command not supported.
out 14 16:56:20 arch kernel: Bluetooth: hci0: Opcode 0x c5a failed: -110
out 14 16:56:20 arch kernel: Bluetooth: hci0: command tx timeout

out 14 16:56:22 arch systemd[1]: systemd-rfkill.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit systemd-rfkill.service has successfully entered the 'dead' state.
out 14 16:56:22 arch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
out 14 16:56:22 arch kernel: audit: type=1131 audit(1665780982.446:176): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
btmgmt info
Index list with 0 items
lsmod | grep btusb
btusb                  65536  0
btrtl                  28672  1 btusb
btbcm                  24576  1 btusb
btintel                45056  1 btusb
btmtk                  16384  1 btusb
bluetooth             937984  13 btrtl,btmtk,btintel,btbcm,bnep,btusb

any clue what's happening?

Offline

#2 2022-10-18 12:25:37

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

Same problem happening to me for both my Lenovo T14 AMD gen2 laptop and a USB dongle I have in my Desktop.
Reverting to 5.19.13-arch1-1 brought it back.

lsusb

Desktop

Bus 001 Device 004: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0

Laptop

Bus 005 Device 004: ID 0489:e0d0 Foxconn / Hon Hai 

I'll have a go at running linux-git and bisecting around to see when this happened.


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

#3 2022-10-22 08:43:11

iyanmv
Member
Registered: 2016-11-08
Posts: 39
Website

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

quantumphaze wrote:

I'll have a go at running linux-git and bisecting around to see when this happened.

Before doing this, maybe you can wait for 6.0.3. In the changelog there are a few mentions to Bluetooth fixes.

Offline

#4 2022-10-22 09:18:50

iyanmv
Member
Registered: 2016-11-08
Posts: 39
Website

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

Actually, I just tried from [testing] and 6.0.3 fixes the issue for me. Give it a try.

Offline

#5 2022-10-25 04:44:00

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

iyanmv wrote:
quantumphaze wrote:

I'll have a go at running linux-git and bisecting around to see when this happened.

Before doing this, maybe you can wait for 6.0.3. In the changelog there are a few mentions to Bluetooth fixes.

Thanks for this. I refreshed too late to stop wasting my time unfortunately. I got stuck trying to build older 5.19 with the current gcc toolchain. Issue trying to link

ld: warning: vmlinux has a LOAD segment with RWX permissions

so I gave up once I found out that the Bluetooth bug was introduced after the compilation issue was merged in. At least I stopped before going down the rabbit hole of downgrading the toolchain to gcc 11.


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

#6 2022-10-25 10:49:07

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

iyanmv wrote:

Actually, I just tried from [testing] and 6.0.3 fixes the issue for me. Give it a try.

Still broken for me on 6.0.3-arch3-1 from testing

dmesg is the same as before:

# journalctl --output=cat --dmesg | grep Bluetooth       
Bluetooth: Core ver 2.22
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Bluetooth: hci0: unexpected cc 0x2060 length: 1 < 7
Bluetooth: hci0: Opcode 0x2060 failed: -38
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: hci0: command tx timeout

What does the good output look like on v6.0.3?


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

#7 2022-11-12 03:58:59

mantide
Member
Registered: 2022-11-12
Posts: 2

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

Hi Same here. Ever since my last fresh install (On kernel 6.0.1) I have no bluetooth. And also on 6.0.6, now 6.0.8.

The hardware is fine becuase I can pass through the bluetooth device to QEMU windows guest. I am able to use bluetooth just fine.


lsusb:

Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 26ce:01a2 ASRock LED Controller
Bus 001 Device 005: ID 046d:c548 Logitech, Inc. USB Receiver
Bus 001 Device 004: ID 046d:c547 Logitech, Inc. USB Receiver
Bus 001 Device 003: ID 03f0:098d HP, Inc HyperX Cloud Alpha Wireless
Bus 001 Device 007: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

bluetoothctl show:

No default controller available

sudo rfkill list:

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no

Really appreciate the help.

Last edited by mantide (2022-11-12 03:59:44)

Offline

#8 2022-11-19 20:07:17

codehia
Member
Registered: 2022-01-24
Posts: 2

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

I am facing the same issue with 6.0.9-arch1-1. Any help will be much appreciated.

Offline

#9 2022-11-22 13:50:21

quantumphaze
Member
From: Melbourne, Australia
Registered: 2008-11-14
Posts: 175

Re: Bluetooth no longer working after kernel 6.0.1-arch2-1

I finally managed to get a bisect working!

It took so long because I had to find out that you can't build Linux v5.19 on updated Arch with pahole 1:1.24-1. Downgrading to 1:1.23-1 lets me build older kernels.
Here's the code spat out during the build in case anyone else is searching for it

FAILED: load BTF from vmlinux: Invalid argument
make: *** [Makefile:1164: vmlinux] Error 255
make: *** Deleting file 'vmlinux'

The commit

26afbd826ee326e63a334c37fd45e82e50a615ec is the first bad commit
commit 26afbd826ee326e63a334c37fd45e82e50a615ec
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon Jul 29 18:15:43 2019 +0300

    Bluetooth: Add initial implementation of CIS connections
    
    This adds the initial implementation of CIS connections and introduces
    the ISO packets/links.
    
    == Central: Set CIG Parameters, create a CIS and Setup Data Path ==
    
    > tools/isotest -s <address>
    
    < HCI Command: LE Extended Create... (0x08|0x0043) plen 26
    ...
    > HCI Event: Command Status (0x0f) plen 4
          LE Extended Create Connection (0x08|0x0043) ncmd 1
            Status: Success (0x00)
    > HCI Event: LE Meta Event (0x3e) plen 31
          LE Enhanced Connection Complete (0x0a)
          ...
    < HCI Command: LE Create Connected... (0x08|0x0064) plen 5
    ...
    > HCI Event: Command Status (0x0f) plen 4
          LE Create Connected Isochronous Stream (0x08|0x0064) ncmd 1
            Status: Success (0x00)
    > HCI Event: LE Meta Event (0x3e) plen 29
          LE Connected Isochronous Stream Established (0x19)
          ...
    < HCI Command: LE Setup Isochronou.. (0x08|0x006e) plen 13
    ...
    > HCI Event: Command Complete (0x0e) plen 6
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 257
    < HCI Command: LE Setup Isochronou.. (0x08|0x006e) plen 13
    ...
    > HCI Event: Command Complete (0x0e) plen 6
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 257
    
    == Peripheral: Accept CIS and Setup Data Path ==
    
    > tools/isotest -d
    
     HCI Event: LE Meta Event (0x3e) plen 7
          LE Connected Isochronous Stream Request (0x1a)
    ...
    < HCI Command: LE Accept Co.. (0x08|0x0066) plen 2
    ...
    > HCI Event: LE Meta Event (0x3e) plen 29
          LE Connected Isochronous Stream Established (0x19)
    ...
    < HCI Command: LE Setup Is.. (0x08|0x006e) plen 13
    ...
    > HCI Event: Command Complete (0x0e) plen 6
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 257
    < HCI Command: LE Setup Is.. (0x08|0x006e) plen 13
    ...
    > HCI Event: Command Complete (0x0e) plen 6
          LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
            Status: Success (0x00)
            Handle: 257
    
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

 include/net/bluetooth/bluetooth.h |  33 ++-
 include/net/bluetooth/hci.h       |  28 ++-
 include/net/bluetooth/hci_core.h  | 107 ++++++++-
 include/net/bluetooth/hci_sock.h  |   2 +
 include/net/bluetooth/hci_sync.h  |   3 +
 net/bluetooth/Kconfig             |   1 +
 net/bluetooth/hci_conn.c          | 440 ++++++++++++++++++++++++++++++++++++++
 net/bluetooth/hci_core.c          | 230 ++++++++++++++++----
 net/bluetooth/hci_event.c         | 307 +++++++++++++++++++++++++-
 net/bluetooth/hci_sync.c          |  49 ++++-
 10 files changed, 1145 insertions(+), 55 deletions(-)

Please check to see if this is the commit that is causing your issues.


▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▏▎▍▌▋▊▉█▇▆▅▄▃▂▁

Offline

Board footer

Powered by FluxBB