Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

realtek-firmware - blutooth troubleshooting

Need help with peripherals or devices?
Post Reply
Message
Author
pastic
Posts: 6
Joined: 2019-08-13 08:38

realtek-firmware - blutooth troubleshooting

#1 Post by pastic »

So I bought a new laptop with Realtek wifi and blutooth: RTL8852AE

I installed Bullseye / Cinnamon with contrib and non-free and verified that firmware-realtek was installed. I could not get wifi working at all. The firmware-realtek package lists RTL8852A at the bottom of supported cards but not RTL8852AE. So I found lwfinger's github with driver?/firmware? for my card. I cloned the repo and did the make and my wifi was up and running immediately. :D But now I discovered that even though Blutooth was enabled the Bluman could not find any device. Dmesg says 'inknown IC'.

Code: Select all

peter@lenovo-debian:~$ sudo dmesg | grep luetooth
[    1.965218] usb 3-3: Product: Bluetooth Radio
[    3.164017] Bluetooth: Core ver 2.22
[    3.164036] Bluetooth: HCI device and connection manager initialized
[    3.164039] Bluetooth: HCI socket layer initialized
[    3.164041] Bluetooth: L2CAP socket layer initialized
[    3.164043] Bluetooth: SCO socket layer initialized
[    3.171193] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000a lmp_ver=0b lmp_subver=8852
[    3.171195] Bluetooth: hci0: RTL: unknown IC info, lmp subver 8852, hci rev 000a, hci ver 000b
[    3.171196] Bluetooth: hci0: RTL: assuming no firmware upload needed
[    3.267580] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.267582] Bluetooth: BNEP filters: protocol multicast
[    3.267585] Bluetooth: BNEP socket layer initialized
[   13.306889] Bluetooth: RFCOMM TTY layer initialized
[   13.306895] Bluetooth: RFCOMM socket layer initialized
[   13.306900] Bluetooth: RFCOMM ver 1.11
The firmware-realtek package seems to have put some relevant files in usr/lib/ but then again the rtw89 driver did not help getting the wifi working so maybe these blutooth files are also too old? Or is it the A/AE suffix versus the AE of my card that is the problem? All these abbreviations confuse me.

Code: Select all

peter@lenovo-debian:~$ sudo find / -name '*8852*'
/usr/lib/firmware/rtw89/rtw8852a_fw.bin
/usr/lib/firmware/rtl_bt/rtl8852au_fw.bin
/usr/lib/firmware/rtl_bt/rtl8852au_config.bin
I am a bit lost regarding what to do in this situation. Any pointers would be very appreciated.
Debian 11 Cinnamon

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: realtek-firmware - bluetooth troubleshooting

#2 Post by Aki »

Hello,

The message shown in the log is generated by a component of the bluetooth kernel stack [1], as you surely have already noted.

The error is shown because the identification data of bluetooth hardware [2] in not listed in the table of integrated circuits (IC) recognized by the bluetooth kernel stack [3] supplied with Debian Stable.

On the contrary, the file btrtl.c (under drivers/bluetooth/) in "vanilla" (upstream) version of Linux kernel (5.14.1) shows that the table of IC has been subsequently [4.1] updated for your bluetooth hardware [4.2]:

Code: Select all

[..]
	/* 8852A */
	{ IC_INFO(RTL_ROM_LMP_8852A, 0xa, 0xb, HCI_USB),
	  .config_needed = false,
	  .has_rom_version = true,
	  .fw_name  = "rtl_bt/rtl8852au_fw.bin",
	  .cfg_name = "rtl_bt/rtl8852au_config" },
	};
[..]
As you can see, the parameters in the previous code snippet seem to be the ones of the error message and the required firmware names are shown; for comparison, the message from your log:

Code: Select all

[..]
Bluetooth: hci0: RTL: unknown IC info, lmp subver 8852, hci rev 000a, hci ver 000b
[..]
Therefore, it seems that the current Debian Stable kernel does not recognize your bluetooth IC [3].

You could install a more recent kernel (you have to compile it by yourself, because the deb package is currently only available in Debian experimental repository [5], IIRC) or you can try to "backport" the required changes (modify the current Debian kernel source code) from upstream kernel stable version (5.14.1) to the current Debian Kernel (5.10.0-8-amd64). In both cases, you have to compile the kernel by yourself: here some instructions from "The Debian Administrator's Handbook" in [6].

Hope that help. Let me know if you need more assistance.

[1] https://sources.debian.org/src/linux/5. ... l=593#L593
[2] https://sources.debian.org/src/linux/5. ... l=593#L589
[3] https://sources.debian.org/src/linux/5. ... hl=593#L60
[4.1] https://git.kernel.org/pub/scm/linux/ke ... fa01fad61a
[4.2] https://git.kernel.org/pub/scm/linux/ke ... .14.1#n169
[5] https://packages.debian.org/search?keyw ... ection=all
[6] https://debian-handbook.info/browse/sta ... ation.html
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply