Bluetooth USB Realtek 8761b not work

Hello! Why do the latest builds indicate support for the Realtek 8761b chip, but this module actually has no support and of course does not work?

modinfo btrtl:

filename:       /lib/modules/5.4.210/kernel/drivers/bluetooth/btrtl.ko
firmware:       rtl_bt/rtl8822b_config.bin
firmware:       rtl_bt/rtl8822b_fw.bin
firmware:       rtl_bt/rtl8821a_config.bin
firmware:       rtl_bt/rtl8821a_fw.bin
firmware:       rtl_bt/rtl8761a_config.bin
firmware:       rtl_bt/rtl8761a_fw.bin
firmware:       rtl_bt/rtl8723ds_config.bin
firmware:       rtl_bt/rtl8723ds_fw.bin
firmware:       rtl_bt/rtl8723bs_config.bin
firmware:       rtl_bt/rtl8723bs_fw.bin
firmware:       rtl_bt/rtl8723b_config.bin
firmware:       rtl_bt/rtl8723b_fw.bin
firmware:       rtl_bt/rtl8723a_fw.bin
license:        GPL
version:        0.1
description:    Bluetooth support for Realtek devices ver 0.1
author:         Daniel Drake <drake@endlessm.com>
srcversion:     8899CB53694F4652655AFEE
depends:        bluetooth
intree:         Y
name:           btrtl
vermagic:       5.4.210 SMP preempt mod_unload modversions aarch64

Thank you

Please provide more info. Where is advertised? And what is the error?

Thank you for answer! The system identifies USB dongle 8761b as 8761a, since the driver does not contain information about the 8761b chip and tries to load the other chip’s firmware:


Bluetooth: btrtl_initialize: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Bluetooth: rtl_read_rom_version: hci0: RTL: rom_version status=0 version=1
Bluetooth: rtl_load_file: hci0: RTL: loading rtl_bt/rtl8761a_fw.bin
Bluetooth: rtl_load_file: hci0: RTL: loading rtl_bt/rtl8761a_config.bin
Bluetooth: hci_cmd_timeout: hci0: command 0x1001 tx timeout

Naturally an error occurs.

On ubuntu 22.04 LTSC is detected normally and works:

Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Bluetooth: hci0: RTL: rom_version status=0 version=1
Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210
Bluetooth: hci0: RTL: fw version 0xdfc6d922

There is no indication for this device to actually work: the firmware was added by LE and CE driver doesn’t support it. I can try adding it if you would provide more info about what image you are actually using and willing to test the test image with a change.

We are talking about an external USB dongle, the support of which is declared in CE:
Omega to 21.6.6-Omega (flubshi)
0edde0dac8: Fri May 3 16:19:43 2024 +0000 – amlogic: include RTL8761BU firmware (Christian Hewitt)

Of course I’m ready to try out the new firmware, I’ll do my best, thank you!

Here is the dmesg log of my device:
https://paste.coreelec.org/UsherClemens

P.S.
I tried it on CE firmware CoreELEC-Amlogic-ne.aarch64-21.0-Omega-Generic.img.gz and nightly builds.

Try this one?

1 Like

Wow!!! It works! You are a wizard!!! I suffered for 3 days, renamed files, patched, all to no avail! Thanks very mutch!

Please make these changes in the next releases, I think this will be useful for many.

Bluetooth: btrtl_initialize: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Bluetooth: rtl_read_rom_version: hci0: RTL: rom_version status=0 version=1
Bluetooth: rtl_load_file: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Bluetooth: rtl_load_file: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
Bluetooth: btrtl_setup_rtl8723b: hci0: RTL: cfg_sz 6, total sz 30210
Bluetooth: rtl_download_firmware: hci0: RTL: fw version 0xdfc6d922

Dmesg:
https://paste.coreelec.org/ParadingLadybird

I also noticed that on all distributions it is necessary to run the command rfkill unblock bluetooth at startup, otherwise bluetooth will be blocked

Cool. Yes, will be included in one of the next nightly builds.

1 Like

The change is in current nightly build. Please test and report if still working.

Thank you, my usb bluetooth dongle rtl8761bu works well, but unfortunately night builds do not work well on my boxing tanix w2 on s905w2, a very low Wi-Fi speed, everything is in order on a stable 21.0. Could you compile the btrtl.ko file for the stable version 21.0, i would I replace it in the firmware?

P.S. Omega 21.0 firmware has the same problems with Wi-Fi. A sharp loss of speed, system freezes and the ksoftirqd/2 process loads the system up to 40-50 percent. The hi_irq amlwifi process also hangs constantly.