24.04.2 seems to have broken bluetooth device discovery, eek!

Ubuntu Version: 24.04.2 LTS

Desktop Environment (if applicable): Gnome

Problem Description: Bluetooth device scanning, previously working fine for the past several months, stopped working around the time 24.04.2 was applied. I’m not 100% sure 24.04.2 is the problem, but the timing was about right. I didn’t do anything else interesting like adding/removing any hardware or software or switching bluetooth devices.

Problem is, every diagnostic I can think of shows that bluetooth is working - the adapter is up, there are no errors anywhere. Scans just never find any devices.

Relevant System Information:

inxi shows:

  Host: qqq Kernel: 6.11.0-17-generic arch: x86_64 bits: 64
  Desktop: GNOME v: 46.0 Distro: Ubuntu 24.04.2 LTS (Noble Numbat)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: qqq
  Mobo: ASUSTeK model: PRIME B550M-A WIFI II v: Rev X.0x
    serial: qqq UEFI: American Megatrends v: 3607
Bluetooth:
  Device-1: IMC Networks Bluetooth Radio driver: btusb type: USB
  Report: hciconfig ID: hci0 state: up address: A8:41:F4:E2:31:F5 bt-v: 5.3

hciconfig:

hci0:	Type: Primary  Bus: USB
	BD Address: A8:41:F4:E2:31:F5  ACL MTU: 1021:6  SCO MTU: 255:12
	UP RUNNING PSCAN ISCAN 
	RX bytes:4273 acl:0 sco:0 events:567 errors:0
	TX bytes:66067 acl:0 sco:0 commands:526 errors:0

bluetoothctl:

[bluetooth]# show
Controller A8:41:F4:E2:31:F5 (public)
	Manufacturer: 0x005d (93)
	Version: 0x0c (12)
	Name: qqq
	Alias: qqq
	Class: 0x007c0104 (8126724)
	Powered: yes
	Discoverable: yes
	DiscoverableTimeout: 0x00000708 (1800)
	Pairable: yes
	UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
	UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d0548
	Discovering: yes
	Roles: central
	Roles: peripheral
Advertising Features:
	ActiveInstances: 0x00 (0)
	SupportedInstances: 0x0a (10)
	SupportedIncludes: tx-power
	SupportedIncludes: appearance
	SupportedIncludes: local-name
	SupportedSecondaryChannels: 1M
	SupportedSecondaryChannels: 2M
	SupportedSecondaryChannels: Coded

Screenshots or Error Messages:

Frustratingly, there are no errors! No errors in dmesg or journalctl that I can find. Services restart fine, the driver is discoverable. Other than the lack of devices being discovered, everything appears to work flawlessly.

What I’ve Tried:

  • Many reboots
  • Confirming there are devices around to be discovered (my phone identifies at least 4)
  • rfkill unblock bluetooth
  • removing and re-adding [bluez, blueman, bluez-tools, pipewire, pipewire-pulse, pipewire-audio, pulseaudio-module-bluetooth]
  • rmmod and modprobe on all the bluetooth modules
  • Disabling and re-enabling bluetooth in the bios
  • unscrewing and rescrewing the antenna for the wifi/bluetooth connector rm -rf /var/lib/bluetooth
  • add-apt-repository ppa:bluetooth/bluez (although this doesn’t seem to matter as both launchpad and the official repo have 5.72
  • apt clear, apt update, apt upgrade, as well as searching for updates in the UI
1 Like

I’d check and correct typos in your question; as details do matter.

You state multiple times you’re using 22.04.2 (title, and in release details) and a recent update; or an update that occurred February 2023? You likely mean 24.04 or the 2024-April release.

If it’s related to the recent switch (for users of 24.04 using the HWE kernel stack) from 6.8 to 6.11 kernel; I’d test that by booting and selecting an older 6.8 kernel at grub on next boot; and see if the problem still occurs there. If it’s fine there, switching your system from HWE kernel to GA may provide a workaround, at least for now (Ubuntu 24.04.2 using the GA kernel still uses 6.8).

You can also have GA & HWE kernel stacks installed; selecting at boot which you’ll use; so you can always test HWE in the future & see if issue is resolved; or work on it when you have a chance; but use the GA kernel when you just need your machine & bluetooth to work.

Kernel/LTSEnablementStack - Ubuntu Wiki maybe useful if you’re not understanding kernel stack options for Ubuntu LTS releases; the default stack is set by your install media; as Ubuntu 24.04 LTS like prior releases, has ISOs that install & use GA kernel, others than use HWE.

I have little experience with bluetooth, so I can’t help there sorry, but kernel stack changes is easy to test for, and maybe a workaround or fix too, depending on your needs (even if fixing HWE kernel is possible).

Be aware that some closed-source kernel modules (NVidia etc) can prevent an install from having multiple kernel stacks co-existing on a single install

Thanks for the quick response, typos fixed to reflect that this is indeed the new 24.04.2. I have rebooted into the older kernel (didn’t know one could do that), this is what you mean correct?

~! inxi
Kernel: 6.8.0-52-generic x86_64 Up: 1m Mem: 2.52/31.25 GiB (8.1%)

Sadly that didn’t instantly resolve the problem, but I will try some of the same troubleshooting steps on this kernel regardless since I am out of other ideas. Thanks again.

1 Like

That test likely ruled out, or helped rule out a problem with the kernel (and interactions with your actual hardware)

I got exactly the same issue!
ubuntu 24.04 LTS
kernel: 6.8.0-52-generic

hciconfig output

hci0:   Type: Primary  Bus: USB
        BD Address: 00:A6:44:03:2D:EC  ACL MTU: 1021:6  SCO MTU: 255:12
        UP RUNNING PSCAN ISCAN 
        RX bytes:9640 acl:0 sco:0 events:940 errors:0
        TX bytes:24806 acl:0 sco:0 commands:873 errors:0

inxi output:

Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb type: USB
  Report: hciconfig ID: hci0 state: up address: 00:A6:44:03:2D:EC bt-v: 5.1

bluetoothctl output:

Waiting to connect to bluetoothd...[bluetooth]# Agent registered               
[bluetooth]# show                                                              
Controller 00:A6:44:03:2D:EC (public)                                          
        Manufacturer: 0x005d (93)                                              
        Version: 0x0a (10)                                                     
        Name: sunyi-station-ai                                                 
        Alias: sunyi-station-ai                                                
        Class: 0x007c0104 (8126724)                                            
        Powered: yes                                                           
        Discoverable: yes                                                      
        DiscoverableTimeout: 0x00000000 (0)                                    
        Pairable: yes                                                          
        UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb) 
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb) 
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb) 
        UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb) 
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb) 
        UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb) 
        UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001) 
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) 
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) 
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb) 
        UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb) 
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb) 
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb) 
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb) 
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb) 
        UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb) 
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb) 
        Modalias: usb:v1D6Bp0246d0548                                          
        Discovering: no                                                        
        Roles: central                                                         
        Roles: peripheral                                                      
Advertising Features:                                                          
        ActiveInstances: 0x00 (0)                                              
        SupportedInstances: 0x04 (4)                                           
        SupportedIncludes: tx-power                                            
        SupportedIncludes: appearance                                          
        SupportedIncludes: local-name                                          
        SupportedSecondaryChannels: 1M                                         
        SupportedSecondaryChannels: 2M                                         
        SupportedSecondaryChannels: Coded                                      

As @ineptech mentioned, I tried everything before I’m here:

  • Many reboots
  • Confirming there are devices around to be discovered
  • rfkill no unblock bluetooth
  • Bluetoothctl blueman-manager
  • rmmod and modprobe on all the bluetooth modules
  • apt clear, apt update, apt upgrade, as well as searching for updates in the UI

Did you solve the issue ?

No it is not solved, in fact it has gotten worse. No progress all week, then today after applying OS updates through the UI (I did not check what they were, just let Software Updater do its thing and now I don’t know how to find out what changed) I can no longer get the hci interface up:

:~$ sudo hciconfig hci0 up
Can’t init device hci0: Connection timed out (110)
:~$ sudo hciconfig -a
hci1: Type: Primary Bus: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:1 errors:1
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: PERIPHERAL ACCEPT

I’ve tried the new and old kernels, removing and reinstalling the apt packages for bluez and bluez-tools, rmmod and modprobe on all the related modules, and many reboots, hci0 will not come up. dmesg has some errors but I couldn’t find anything useful or relevant from searching them:

[ 17.754522] Bluetooth: hci0: unexpected event for opcode 0x00fd
[ 17.755515] Bluetooth: hci0: unexpected event for opcode 0x5044
[ 17.756527] Bluetooth: hci0: unexpected event for opcode 0x47a9
[ 28.126573] Bluetooth: hci0: RTL: download fw command failed (-110)
[ 30.174444] Bluetooth: hci0: command 0xfc20 tx timeout
[ 30.174445] Bluetooth: hci0: Failed to read MSFT supported features (-110)
[ 32.222435] Bluetooth: hci0: command 0xfc20 tx timeout
[ 32.222451] Bluetooth: hci0: AOSP get vendor capabilities (-110)
[ 252.750660] Bluetooth: hci0: command tx timeout
[ 260.877870] Bluetooth: hci0: RTL: RTL: Read reg16 failed (-110)
[ 260.877885] Bluetooth: hci0: MSFT extension not registered
[ 262.925688] Bluetooth: hci0: command tx timeout
[ 262.925696] Bluetooth: hci0: AOSP get vendor capabilities (-110)
[ 889.819071] Bluetooth: hci0: command tx timeout
[ 889.819085] Bluetooth: hci0: Resetting usb device.
[ 897.818918] Bluetooth: hci0: RTL: RTL: Read reg16 failed (-110)
[ 897.818931] Bluetooth: hci0: MSFT extension not registered
[ 899.866879] Bluetooth: hci0: command tx timeout
[ 899.866887] Bluetooth: hci0: AOSP get vendor capabilities (-110)
[ 899.866895] Bluetooth: hci0: Resetting usb device.
[ 900.046555] usb 1-5: reset full-speed USB device number 5 using xhci_hcd
[ 900.483709] usb 1-5: reset full-speed USB device number 5 using xhci_hcd
[ 902.746588] Bluetooth: hci1: command 0xfc61 tx timeout
[ 902.746598] Bluetooth: hci1: RTL: Failed to generate devcoredump
[ 902.746613] Bluetooth: hci1: RTL: RTL: Read reg16 failed (-110)

At this point I guess I just buy a bluetooth dongle and hope for the best. It’s at least possible the problem is hardware (although hardware doesn’t usually fail just at the moment you update software) but I am out of other ideas and essentially just poking at it like a monkey hoping something will randomly work.

1 Like

Please post results for lsusb

Thanks for the interest and here you go:

$ sudo lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 343f:930a SunplusIT Inc A68-1600W
Bus 001 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 13d3:3571 IMC Networks Bluetooth Radio
Bus 001 Device 007: ID 0b05:1939 ASUSTek Computer, Inc. AURA LED Controller
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

$ inxi --bluetooth
Bluetooth:
Device-1: IMC Networks Bluetooth Radio driver: btusb type: USB
Report: hciconfig ID: hci0 rfk-id: 0 state: down
bt-service: enabled,running rfk-block: hardware: no software: no
address: 00:00:00:00:00:00

Is fast boot enabled in BIOS? The only other thing I can think of is that the Bluetooth hardware is failing

A post was split to a new topic: Bluetooth issue in 24.04.r

Fast boot is enabled, not sure why that would affect this? I tried disabling it and there’s no obvious change. For the record dmesg has some new errors that I haven’t seen before:

:~$ modinfo btusb; sudo dmesg |egrep -i ‘blue|firm’
filename: /lib/modules/6.11.0-17-generic/kernel/drivers/bluetooth/btusb.ko.zst
license: GPL
version: 0.8
description: Generic Bluetooth USB driver ver 0.8
author: Marcel Holtmann marcel@holtmann.org
srcversion: 6601FD378CA0D6D5086ECD9
alias: usb:v8087p0A5Addcdscdpiciscipin
alias: usb:v0930pddcdscdpicFFisc01ip01in
alias: usb:v413CpddcdscdpicFFisc01ip01in
alias: usb:v13D3pddcdscdpicFFisc01ip01in
alias: usb:v050DpddcdscdpicFFisc01ip01in
alias: usb:v0B05pddcdscdpicFFisc01ip01in
alias: usb:v0A5CpddcdscdpicFFisc01ip01in
alias: usb:v04CApddcdscdpicFFisc01ip01in
alias: usb:v0489pddcdscdpicFFisc01ip01in
alias: usb:v0BB4pddcdscdpicFFisc01ip01in
alias: usb:v105BpddcdscdpicFFisc01ip01in
alias: usb:v19FFp0239ddcdscdpiciscipin
alias: usb:v0C10p0000ddcdscdpiciscipin
alias: usb:v0BDBp1002ddcdscdpiciscipin
alias: usb:v044Ep3002ddcdscdpiciscipin
alias: usb:v044Ep3001ddcdscdpiciscipin
alias: usb:v04BFp030Addcdscdpiciscipin
alias: usb:v057Cp3800ddcdscdpiciscipin
alias: usb:v05ACp8281ddcdscdpiciscipin
alias: usb:v05ACp821Addcdscdpiciscipin
alias: usb:v05ACp821Fddcdscdpiciscipin
alias: usb:v05ACp821Bddcdscdpiciscipin
alias: usb:v05ACp8218ddcdscdpiciscipin
alias: usb:v05ACp8215ddcdscdpiciscipin
alias: usb:v05ACp8213ddcdscdpiciscipin
alias: usb:v0A5Cp21E1ddcdscdpiciscipin
alias: usb:v0E8Dp763Fddcdscdpiciscipin
alias: usb:v05ACpddcdscdpicFFisc01ip01in
alias: usb:vpddcdscdpicE0isc01ip01in*
alias: usb:vpddcE0dsc01dp04iciscipin*
alias: usb:vpddcE0dsc01dp01iciscipin*
alias: of:NTCusb4ca,301aC*
alias: of:NTCusb4ca,301a
alias: of:NTCusbcf3,e300C*
alias: of:NTCusbcf3,e300
alias: of:NTCusb1286,204eC*
alias: of:NTCusb1286,204e
depends: bluetooth,btmtk,btintel,btbcm,btrtl
retpoline: Y
intree: Y
name: btusb
vermagic: 6.11.0-17-generic SMP preempt mod_unload modversions
sig_id: PKCS#7
signer: Build time autogenerated kernel key
sig_key: 04:C4:4A:DA:A5:9C:D1:96:25:C7:2E:72:7F:7D:11:93:C0:17:79:26
sig_hashalgo: sha512
signature: 88:40:3E:F1:D5:A4:15:77:6A:C4:54:60:4C:76:3A:64:79:EB:A8:18:
D1:94:56:F8:EB:4A:99:35:2F:A4:C4:C8:E7:0D:01:18:83:79:AD:BB:
D1:99:E1:E4:48:23:80:4D:B4:40:19:3D:E2:E0:92:E4:17:38:43:13:
FE:4F:95:3A:ED:B7:E6:7B:DB:09:27:0E:C4:36:27:31:35:25:75:20:
40:CA:FA:E3:05:F5:97:2B:21:21:EF:18:FF:03:AD:FD:41:C2:20:85:
CB:F8:10:F0:62:06:3D:CB:4C:4A:CF:9A:59:AC:E1:C9:22:44:E0:96:
CD:D8:4B:96:31:06:A3:96:90:60:B7:52:7B:7B:97:01:6E:7D:2D:36:
E1:3A:9A:24:61:83:E4:47:8A:D7:AD:84:88:44:9B:0D:86:18:9A:A8:
35:94:07:9E:97:C4:53:21:FC:18:22:2B:A1:88:FA:41:F8:93:09:48:
9F:2C:2E:F6:1D:59:16:87:17:4B:92:F0:A4:D1:D9:3F:E5:FA:15:41:
5D:C3:6C:93:13:59:48:22:1A:3A:BE:66:38:0C:31:D3:1D:AF:DC:02:
7E:D6:A8:80:9F:AC:71:02:DD:BC:FF:41:7B:38:60:7C:DB:FA:EB:F9:
93:4C:B6:FE:BA:90:FA:65:BA:84:5D:04:02:5D:F0:09:85:29:C6:85:
FC:AC:4D:54:6B:F9:94:23:08:FF:3B:C0:AC:CF:3F:3D:5C:AF:41:55:
BA:5F:1D:A7:89:9B:AC:FC:8B:69:CB:E5:4A:2B:25:01:C1:FC:BE:12:
54:2E:06:7D:1B:7B:1D:DF:35:8A:AB:6B:D6:F1:9A:1D:C5:D1:9C:13:
64:7C:FD:A7:91:ED:C9:6B:21:6A:71:75:29:B7:8F:35:DB:33:39:81:
77:3E:C3:68:61:01:03:C8:D6:DC:34:72:BA:75:C5:59:21:EE:B9:4C:
E9:59:FC:B4:1C:78:6B:38:FF:EC:DF:B2:6D:08:11:97:A5:C3:6A:16:
23:B2:3B:FF:10:16:F9:C0:20:D1:3E:22:91:F8:1E:EF:EE:2F:9E:86:
E4:4A:2A:81:E6:D5:76:B4:E4:82:2B:2F:10:4A:D9:30:B7:9F:63:E7:
38:72:12:C5:FB:C7:38:F3:8A:81:63:F4:23:A3:42:5B:3E:52:6F:E4:
BE:A1:99:9F:86:0F:70:95:EE:D7:9D:AF:87:FC:00:FF:8D:13:37:2D:
38:78:C7:BE:F7:1F:FF:DE:98:9E:30:FD:1C:BC:41:C9:9A:1F:E3:BD:
F5:8D:D6:05:E5:5E:D0:D2:11:11:44:05:89:32:D1:53:C4:15:EE:ED:
88:D9:D1:0E:59:E1:50:23:38:48:C1:4A
parm: disable_scofix:Disable fixup of wrong SCO buffer size (bool)
parm: force_scofix:Force fixup of wrong SCO buffers size (bool)
parm: enable_autosuspend:Enable USB autosuspend by default (bool)
parm: reset:Send HCI reset command on initialization (bool)
[ 0.568600] Spectre V2 : Enabling Restricted Speculation for firmware calls
[ 0.748650] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.791594] acpi PNP0A08:00: [Firmware Info]: ECAM [mem 0xf0000000-0xf7ffffff] for domain 0000 [bus 00-7f] only partially covers this bridge
[ 3.310458] usb 1-5: Product: Bluetooth Radio
[ 5.797404] systemd[1]: Mounting snap-firmware\x2dupdater-147.mount - Mount unit for firmware-updater, revision 147…
[ 5.798211] systemd[1]: Mounting snap-firmware\x2dupdater-167.mount - Mount unit for firmware-updater, revision 167…
[ 6.173601] Bluetooth: Core ver 2.22
[ 6.191233] NET: Registered PF_BLUETOOTH protocol family
[ 6.191236] Bluetooth: HCI device and connection manager initialized
[ 6.191240] Bluetooth: HCI socket layer initialized
[ 6.191243] Bluetooth: L2CAP socket layer initialized
[ 6.191251] Bluetooth: SCO socket layer initialized
[ 6.324268] rtw89_8852be 0000:09:00.0: loaded firmware rtw89/rtw8852b_fw-1.bin
[ 6.325971] rtw89_8852be 0000:09:00.0: Firmware version 0.29.29.5 (da87cccd), cmd version 0, type 5
[ 6.325976] rtw89_8852be 0000:09:00.0: Firmware version 0.29.29.5 (da87cccd), cmd version 0, type 3
[ 8.274205] Bluetooth: hci0: command 0xfc61 tx timeout
[ 8.274214] Bluetooth: hci0: RTL: Failed to generate devcoredump
[ 8.274233] Bluetooth: hci0: RTL: RTL: Read reg16 failed (-110)
[ 8.822695] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 8.822699] Bluetooth: BNEP filters: protocol multicast
[ 8.822703] Bluetooth: BNEP socket layer initialized
[ 10.858763] [drm] Loading DMUB firmware via PSP: version=0x02020020
[ 10.859293] [drm] Found VCN firmware Version ENC: 1.30 DEC: 3 VEP: 0 Revision: 4
[ 11.387541] rtw89_8852be 0000:09:00.0: download firmware fail
[ 13.313561] rtw89_8852be 0000:09:00.0: download firmware fail

Might be the wifi/bluetooth chipset needs replacing as it is reporting a download firmware failure

There’s no way to replace the chipset without a new motherboard, right? I was hoping the download failure meant I needed a different firmware or source, as opposed to an inability to download firmware.

Anyway I am just assuming hardware failure and ordered a usb bluetooth dongle today.

It depends on the computer on how easy the wifi/bluetooth is to replace it