2023-10-03 17:47:31

by 4javier

[permalink] [raw]
Subject: Realtek 8852BE: bluetooth interference with wifi power_save enabled on Linux

Good morning

I'm experiencing issues with this Realtek WiFi/BT comb chip on an HP 470 G9.
My bluetooth device gets choppy audio when wifi_powersave is on.
It works flawlessly on Windows.

Distro: ArchLinux
Kernel: 6.5.5-arch1-1
Usb device: Bus 001 Device 006: ID 0bda:b85c Realtek Semiconductor
Corp. Bluetooth Radio


T: Bus=01 Lev=01 Prnt=01 Port=09 Cnt=05 Dev#= 6 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=b85c Rev= 0.00
S: Manufacturer=Realtek
S: Product=Bluetooth Radio
S: SerialNumber=00e04c000001
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms


Interesting dmesg lines :

[ 3.599388] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000b
lmp_ver=0b lmp_subver=8852
[ 3.600374] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852bu_fw.bin
[ 3.602098] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852bu_config.bin
......
[ 3.678123] rtw89_8852be 0000:03:00.0: loaded firmware
rtw89/rtw8852b_fw-1.bin
[ 3.678231] rtw89_8852be 0000:03:00.0: enabling device (0000 -> 0003)
[ 3.681480] rtw89_8852be 0000:03:00.0: Firmware version 0.29.29.1,
cmd version 0, type 5
[ 3.681485] rtw89_8852be 0000:03:00.0: Firmware version 0.29.29.1,
cmd version 0, type 3
[ 3.998990] rtw89_8852be 0000:03:00.0: chip rfe_type is 1

Device involved works perfectly on a different laptop with a different
BT chip, and works without any issue when I disable power_save for
wifi on this Realtek chip.
With power_save on, many times audio playing skips and I got issues
with mic too.

I attach the log of a session where I collected
/sys/kernel/debug/ieee80211/phy0/rtw89/btc_info
polling every two seconds, first five times with power_save ON, and
then five times with it turned OFF.
In this particular session audio skipped a couple times at the beginning.

Hope you can help me.
Regards.


Attachments:
power_save.txt (47.33 kB)

2023-11-01 00:52:35

by Ping-Ke Shih

[permalink] [raw]
Subject: RE: Realtek 8852BE: bluetooth interference with wifi power_save enabled on Linux



> -----Original Message-----
> From: 4javier <[email protected]>
> Sent: Wednesday, October 4, 2023 1:47 AM
> To: [email protected]
> Subject: Realtek 8852BE: bluetooth interference with wifi power_save enabled on Linux
>
>
> Good morning
>
> I'm experiencing issues with this Realtek WiFi/BT comb chip on an HP 470 G9.
> My bluetooth device gets choppy audio when wifi_powersave is on.

I have uploaded new firmware [1] that I suppose it can fix this problem. Please
download and copy it to /lib/firmware/rtw89/rtw8852b_fw-1.bin

[1] https://lore.kernel.org/linux-wireless/[email protected]/T/#u

Ping-Ke

2023-11-01 13:25:59

by 4javier

[permalink] [raw]
Subject: Re: Realtek 8852BE: bluetooth interference with wifi power_save enabled on Linux

Thanks a lot.

I just tried that new firmware and had no playback issue for at least
an hour of playing.
I didn't have the chance to test mic yet, but I'm confident the
problem is solved for that too.
If I'm wrong, I'll reply here again.

Cheers.

Il giorno mer 1 nov 2023 alle ore 01:52 Ping-Ke Shih
<[email protected]> ha scritto:
>
>
>
> > -----Original Message-----
> > From: 4javier <[email protected]>
> > Sent: Wednesday, October 4, 2023 1:47 AM
> > To: [email protected]
> > Subject: Realtek 8852BE: bluetooth interference with wifi power_save enabled on Linux
> >
> >
> > Good morning
> >
> > I'm experiencing issues with this Realtek WiFi/BT comb chip on an HP 470 G9.
> > My bluetooth device gets choppy audio when wifi_powersave is on.
>
> I have uploaded new firmware [1] that I suppose it can fix this problem. Please
> download and copy it to /lib/firmware/rtw89/rtw8852b_fw-1.bin
>
> [1] https://lore.kernel.org/linux-wireless/[email protected]/T/#u
>
> Ping-Ke
>