Bluetooth Broken In Kernel Versions 6.5+ (Realtek)

Bug #2062280 reported by Bogdan Mitrea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Anthony Wong

Bug Description

Starting with kernel 6.5 the external Bluetooth USB dongle based on Realtek stop working.

This issue occurs on either UBuntu 22.04, 23.10 and 24.04 when kernel version is > 6.5. On a lower kernel version it works as we were using it for almost 2 years without issues.

Version signature: Ubuntu 6.8.0-22.22-generic 6.8.1
USB bluetooth device: Bus 001 Device 003: ID 0bda:a729 Realtek Semiconductor Corp. Bluetooth Radio

```
$ uname -a
Linux bomi-edge 6.8.0-22-generic #22-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 22:30:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
```

```
$ lsusb | grep -i bluetooth
Bus 001 Device 003: ID 0bda:a729 Realtek Semiconductor Corp. Bluetooth Radio
```

Journalctl logs after the OS is starting
```
journalctl -b | egrep -i bluetooth
Apr 18 07:16:29 bomi-edge kernel: usb 1-9: Product: Bluetooth Radio
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: Core ver 2.22
Apr 18 07:16:30 bomi-edge kernel: NET: Registered PF_BLUETOOTH protocol family
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: HCI device and connection manager initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: HCI socket layer initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: L2CAP socket layer initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: SCO socket layer initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: rom_version status=0 version=1
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210
Apr 18 07:16:30 bomi-edge systemd[1]: Reached target bluetooth.target - Bluetooth Support.
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: fw version 0xdfc6d922
root@bomi-edge:/home/edge# journalctl -b | egrep -i bluetooth
Apr 18 07:16:29 bomi-edge kernel: usb 1-9: Product: Bluetooth Radio
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: Core ver 2.22
Apr 18 07:16:30 bomi-edge kernel: NET: Registered PF_BLUETOOTH protocol family
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: HCI device and connection manager initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: HCI socket layer initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: L2CAP socket layer initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: SCO socket layer initialized
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: rom_version status=0 version=1
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210
Apr 18 07:16:30 bomi-edge systemd[1]: Reached target bluetooth.target - Bluetooth Support.
Apr 18 07:16:30 bomi-edge kernel: Bluetooth: hci0: RTL: fw version 0xdfc6d922
```

I have installed BlueZ package https://www.bluez.org/ and trying to discover the device which worked but i am always getting errors when trying to connect to the device via BT (after pairing)

```
Apr 18 09:22:36 bomi-edge bluetoothd[2413]: src/adapter.c:property_set_mode() sending Set Discoverable command for index 0
Apr 18 09:22:36 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:send_request() [0x0000] command 0x0007
Apr 18 09:22:36 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0007 complete: 0x00
Apr 18 09:22:36 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:send_request() [0x0000] command 0x0006
Apr 18 09:22:37 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0006 complete: 0x00
Apr 18 09:22:37 bomi-edge bluetoothd[2413]: src/adapter.c:property_set_mode_complete() Success (0x00)
Apr 18 09:22:37 bomi-edge bluetoothd[2413]: src/adapter.c:new_settings_callback() Settings: 0x00000adb
Apr 18 09:22:37 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Changed settings: 0x00000008
Apr 18 09:22:37 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Pending settings: 0x00000002
Apr 18 09:23:07 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] event 0x000b
Apr 18 09:23:07 bomi-edge bluetoothd[2413]: src/adapter.c:connected_callback() hci0 device 74:9E:F5:28:3C:4C connected eir_len 15
Apr 18 09:23:07 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] event 0x000f
Apr 18 09:23:07 bomi-edge bluetoothd[2413]: src/adapter.c:user_confirm_request_callback() hci0 74:9E:F5:28:3C:4C confirm_hint 0
Apr 18 09:23:07 bomi-edge bluetoothd[2413]: src/device.c:new_auth() Requesting agent authentication for 74:9E:F5:28:3C:4C
Apr 18 09:23:07 bomi-edge bluetoothd[2413]: src/agent.c:agent_ref() 0x5e96f8c12780: ref=2
Apr 18 09:23:07 bomi-edge bluetoothd[2413]: src/agent.c:agent_request_confirmation() Calling Agent.RequestConfirmation: name=:1.49, path=/org/bluez/agent, passkey=639324
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/agent.c:agent_ref() 0x5e96f8c12780: ref=3
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/adapter.c:btd_adapter_confirm_reply() hci0 addr 74:9E:F5:28:3C:4C success 1
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/agent.c:agent_unref() 0x5e96f8c12780: ref=2
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/agent.c:agent_unref() 0x5e96f8c12780: ref=1
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:send_request() [0x0000] command 0x001c
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x001c complete: 0x00
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] event 0x0009
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/adapter.c:new_link_key_callback() hci0 new key for 74:9E:F5:28:3C:4C type 5 pin_len 0 store_hint 1
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/device.c:device_bonding_complete() bonding (nil) status 0x00
Apr 18 09:23:14 bomi-edge bluetoothd[2413]: src/adapter.c:resume_discovery()
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] event 0x000c
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: src/adapter.c:dev_disconnected() Device 74:9E:F5:28:3C:4C disconnected, reason 3
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: src/adapter.c:adapter_remove_connection()
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: plugins/policy.c:disconnect_cb() reason 3
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 74:9E:F5:28:3C:4C type 0 status 0xe
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: src/device.c:device_bonding_failed() status 14
Apr 18 09:23:19 bomi-edge bluetoothd[2413]: src/adapter.c:resume_discovery()
Apr 18 09:25:37 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] event 0x0006
Apr 18 09:25:37 bomi-edge bluetoothd[2413]: src/adapter.c:new_settings_callback() Settings: 0x00000ad3
Apr 18 09:25:37 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Changed settings: 0x00000008
Apr 18 09:25:37 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Pending settings: 0x00000002
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/adapter.c:set_mode() sending set mode command for index 0
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/adapter.c:property_set_mode() sending Set Discoverable command for index 0
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:send_request() [0x0000] command 0x0007
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0007 complete: 0x00
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:send_request() [0x0000] command 0x0006
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0006 complete: 0x00
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/adapter.c:property_set_mode_complete() Success (0x00)
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/adapter.c:new_settings_callback() Settings: 0x00000adb
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Changed settings: 0x00000008
Apr 18 09:29:29 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Pending settings: 0x00000002
Apr 18 09:32:31 bomi-edge bluetoothd[2413]: src/shared/mgmt.c:can_read_data() [0x0000] event 0x0006
Apr 18 09:32:31 bomi-edge bluetoothd[2413]: src/adapter.c:new_settings_callback() Settings: 0x00000ad3
Apr 18 09:32:31 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Changed settings: 0x00000008
Apr 18 09:32:31 bomi-edge bluetoothd[2413]: src/adapter.c:settings_changed() Pending settings: 0x00000002
```

Changed in linux (Ubuntu):
assignee: nobody → Anthony Wong (anthonywong)
Revision history for this message
Rex Tsai (chihchun) wrote (last edit ):

Please describe how to reproduce the issue. The bug report was based on a self-built bluez, and did not explain what was the profile were tested, which the built in UI or via an application talk to bluetoothd

When you are able to reproduce the issue, please run the following command, and upload the lp2062280 to this bug.

ubuntu-bug --save=lp2062280 bluez

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Bogdan Mitrea (bogdan-mitrea) wrote :

Steps to reproduce the bug:
* install bluez
* make sure a USB Bluetooth dongle is attached to your computer
* Start bluetoothctl
* Run discoverable on
* Discover the device using the Android BT manager
* On the phone you are ask to confirm the pair key -> Pair
* In the bluetoothctl type yes
* Connection is establish and it fails immediately with a disconnect error message -> type BR/EDR disconnected with reason 2

Revision history for this message
Bogdan Mitrea (bogdan-mitrea) wrote :

i have used also ubuntu-bug to send logs

Revision history for this message
Rex Tsai (chihchun) wrote :

@bogdan

Unfortunately, we didn't see the log you reported with ubuntu-bug. Could you try reproducing the issue and then upload the log here? Please run the following command and upload the lp2062280 file to this bug:

ubuntu-bug --save=lp2062280 bluez

Revision history for this message
Bogdan Mitrea (bogdan-mitrea) wrote :

i have done again. It says that it might take minutes to send data but was done in seconds :)

can you please check again?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.