You are not logged in.

#1 2023-01-11 17:46:57

jimmyg
Member
Registered: 2022-06-14
Posts: 41

Query about bluetooth codec error

Hi

I have installed arch onto a new pc and enabled bluetooth using the instructions on the wiki. I have not installed a DM yet and when I boot up and reaches the login prompt an error message related to a bluetooth codec appears:

[    8.950529] Bluetooth: hci0: Failed to read codec capabilities (-22)

sudo dmesg |grep Bluetooth:

[    7.564634] usb 1-10: Product: Bluetooth Radio
[    7.625768] Bluetooth: Core ver 2.22
[    7.625781] Bluetooth: HCI device and connection manager initialized
[    7.625782] Bluetooth: HCI socket layer initialized
[    7.625783] Bluetooth: L2CAP socket layer initialized
[    7.625785] Bluetooth: SCO socket layer initialized
[    7.638532] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000a lmp_ver=0b lmp_subver=8852
[    7.641525] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    7.641526] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852au_fw.bin
[    7.644737] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852au_config.bin
[    7.645274] Bluetooth: hci0: RTL: cfg_sz 6, total sz 47155
[    7.672515] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.672517] Bluetooth: BNEP filters: protocol multicast
[    7.672518] Bluetooth: BNEP socket layer initialized
[    8.792524] Bluetooth: hci0: RTL: fw version 0xd9b88207
[    8.950529] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    8.970548] Bluetooth: hci0: AOSP extensions version v1.00
[    8.970550] Bluetooth: hci0: AOSP quality report is supported
[    8.970698] Bluetooth: MGMT ver 1.22
[    9.004689] Bluetooth: ISO socket layer initialized
[ 1791.345851] Bluetooth: RFCOMM TTY layer initialized
[ 1791.345856] Bluetooth: RFCOMM socket layer initialized
[ 1791.345857] Bluetooth: RFCOMM ver 1.11

lspci |grep Realtek

04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

journalctl -p 3 -xb

kernel: rtw89_8852ae 0000:04:00.0: failed to early request firmware: -2
kernel: Bluetooth: hci0: Failed to read codec capabilities (-22)

lsmod |grep bluetooth

bluetooth             983040  46 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic           16384  2 bluetooth
rfkill                 36864  6 bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4

rfkill list

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

I have the linux-firmware package installed as you can see and it appears to be loading it as shown in dmesg.

I have Blueman installed and it appears to be working. It is discovering bt devices; I just cant pair something to it yet to check its working as I lent my bt headset to a family member for a bit.

I am wondering if there is a way resolve this or if it might be something I should open a bug ticket for?
I've seen a number of posts where people have reported this message on forums but it related to an older kernel and was apparently resolved with a patch that was added into subsequent kernel versions.

for completeness, there are sometimes other lines in journalctl -p 3 -xb:

Jan 11 17:26:10 legion-arch kernel: ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP8.PEGP._DSM.USRG], AE_ALREADY_EXISTS (20220331/dsfield-184)
Jan 11 17:26:10 legion-arch kernel: ACPI Error: AE_ALREADY_EXISTS, CreateBufferField failure (20220331/dswload2-477)
Jan 11 17:26:10 legion-arch kernel: ACPI Error: Aborting method \_SB.PCI0.GPP8.PEGP._DSM due to previous error (AE_ALREADY_EXISTS) (20220331/psparse-529)

These lines are repeated several times but are exactly the same and dont always show. From searching online about that it seems they are unrelated and just warnings that can be ignored?

Thanks in advance for any info.

Offline

#2 2023-01-11 18:16:37

jimmyg
Member
Registered: 2022-06-14
Posts: 41

Re: Query about bluetooth codec error

Just some additional info which may or may not be relevant:

journalctl --grep rtw89_8852ae

-- Boot d124068e8de74f8d91bc6426bba502bc --
Jan 11 16:56:26 legion-arch kernel: rtw89_8852ae 0000:04:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -2
Jan 11 16:56:26 legion-arch kernel: rtw89_8852ae 0000:04:00.0: failed to early request firmware: -2
Jan 11 16:56:26 legion-arch kernel: rtw89_8852ae 0000:04:00.0: enabling device (0000 -> 0003)
Jan 11 16:56:26 legion-arch kernel: rtw89_8852ae 0000:04:00.0: Firmware version 0.13.36.0, cmd version 0, type 1
Jan 11 16:56:26 legion-arch kernel: rtw89_8852ae 0000:04:00.0: Firmware version 0.13.36.0, cmd version 0, type 3
Jan 11 16:56:26 legion-arch kernel: rtw89_8852ae 0000:04:00.0: chip rfe_type is 1
Jan 11 16:56:26 legion-arch kernel: rtw89_8852ae 0000:04:00.0 wlo1: renamed from wlan0

It seems there might be an issue with the firmware at boot. I searched this error and found this github issue: here

The driver is not exactly the same but still the rtw89 series.

Although my wifi and bt is working - wifi certainly is cos I'm using at the moment so is there something I can do with this driver to resolve the error msg?

Last edited by jimmyg (2023-01-11 18:24:12)

Offline

#3 2023-01-11 18:40:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,259

Re: Query about bluetooth codec error

I strongly suggest you don't think too much about either "issue" and use the things as is if they are working.

Your second snippet is completely normal due to the kernel trying to load multiple firmwares, some of which might not be released yet. The initial BT error is likely due to bluez querying a function not implemented in the driver yet.

Offline

#4 2023-01-11 19:46:38

jimmyg
Member
Registered: 2022-06-14
Posts: 41

Re: Query about bluetooth codec error

lol yes thats probably a good call big_smile I was really just trying to find out more about it and if there was something I can do just cos it interests me.

did come across this tho https://aur.archlinux.org/packages/rtw89-dkms-git but maybe its not needed.

thanks anyway

Offline

Board footer

Powered by FluxBB