RTL8822BE/AX200 Bluetooth trouble

Message
Author
andre
Posts: 29
Joined: Thu Feb 13, 2025 4:49 am

RTL8822BE/AX200 Bluetooth trouble

#1 Post by andre »

Hi, everybody!
I have Lenovo Thinkpad E595 laptop, and I use MX Linux at live usb. Everything works fine except Bluetooth.
This laptop has RTL8822BE combined WiFi/Bluetooth module. I use Bluetooth with JBL520 earphones.

What is problem:
sometime I able to use Bluetooth for 5 ... 10 ... 30 minutes;
sometime it fails at startup or when I point cursor to BT icon at taskbar or when I try to search for bt devices.
But more often I can't use it.
When it fails BT icon disappears from taskbar, and only restart can help... (but usually need to boot to Windows,
power off, and then boot to MX..)

My system info:

Code: Select all

Snapshot created on: 20250210_1212
System:
  Kernel: 6.1.0-21-amd64 [6.1.90-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/antiX/vmlinuz quiet nosplash splasht lang=en_US kbd=us
    tz=Europe/Bucharest persist_root splasht
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.5_x64 Libretto May 19  2024 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: LENOVO product: 20NF001YRT v: ThinkPad E595 serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20NF001YRT serial: <superuser required> UEFI: LENOVO v: R11ET49W (1.29)
    date: 11/22/2023
Battery:
  ID-1: BAT0 charge: 31.1 Wh (74.6%) condition: 41.7/45.3 Wh (92.2%) volts: 12.4 min: 11.1
    model: SMP 01AV446 type: Li-poly serial: <filter> status: charging cycles: 986
CPU:
  Info: model: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen/Zen+
    note: check gen: 1 level: v3 note: check built: 2019 process: GF 12nm family: 0x17 (23)
    model-id: 0x18 (24) stepping: 1 microcode: 0x8108109
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache: L1: 384 KiB
    desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1368 high: 1400 min/max: 1400/2300 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 1390 2: 1360 3: 1237 4: 1391 5: 1391 6: 1387
    7: 1388 8: 1400 bogomips: 36729
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_rstack_overflow mitigation: safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; STIBP: disabled; RSB filling;
    PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    vendor: Lenovo ThinkPad E595 driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
    built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 05:00.0 chip-ID: 1002:15d8 class-ID: 0300 temp: 58.0 C
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 509x286mm (20.04x11.26") s-diag: 584mm (22.99")
  Monitor-1: eDP-1 mapped: eDP model: Lenovo 0x40ba built: 2018 res: 1920x1080 hz: 60 dpi: 142
    gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes: max: 1920x1080
    min: 640x480
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Vega 10 Graphics (raven LLVM 15.0.6 DRM
    3.49 6.1.0-21-amd64) direct-render: Yes
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Lenovo ThinkPad E595
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 05:00.1
    chip-ID: 1002:15de class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo ThinkPad E595
    driver: snd_pci_acp3x v: kernel alternate: snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo ThinkPad E595 driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.1.0-21-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo ThinkPad E595
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: eth0 state: down mac: <filter>
  IF-ID-1: amn0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IF-ID-2: pan1 state: unknown speed: -1 duplex: unknown mac: <filter>
  IF-ID-3: wlan0 state: up mac: <filter>
Drives:
  Local Storage: total: 1.43 TiB used: 1.16 TiB (81.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM512GDHTNG-8710B size: 476.94 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 80020C00 temp: 42.9 C scheme: MBR
  ID-2: /dev/sda maj-min: 8:0 vendor: A-Data model: SU650 size: 953.87 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 630B scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Cruzer Fit size: 29.25 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  Message: No partition data found.
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /live/boot-dev/swap-file
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A gpu: amdgpu temp: 58.0 C
  Fan Speeds (RPM): fan-1: 0 fan-2: 0
Repos:
  Packages: pm: dpkg pkgs: 2155 libs: 1067 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mirror.23m.com/mx-packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/tailscale.list
    1: deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/debian bookworm main
  Active apt repos in: /etc/apt/sources.list.d/virtualbox.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/oracle_vbox_2016.gpg] http://download.virtualbox.org/virtualbox/debian bookworm contrib
Info:
  Processes: 303 Uptime: 1h 50m wakeups: 13 Memory: 23.22 GiB used: 3.1 GiB (13.4%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
I tried to use 6.1.0-31 kernel, but that didn't helped.

dmesg | grep 8822 output:

Code: Select all

[  492.715797] rtw_8822be 0000:04:00.0: enabling device (0000 -> 0003)
[  492.817346] rtw_8822be 0000:04:00.0: firmware: direct-loading firmware rtw88/rtw8822b_fw.bin
[  492.817373] rtw_8822be 0000:04:00.0: Firmware version 27.2.0, H2C version 13
[  495.559391] Bluetooth: hci0: RTL: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
[  495.561369] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822b_fw.bin
[  495.569229] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8822b_fw.bin
[  495.569259] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822b_config.bin
[  495.576884] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8822b_config.bin
As I understand Bluetooth module internally connected to USB bus. I checked dmesg|grep usb ouptut:

Code: Select all

[    1.015078] usbcore: registered new interface driver usbfs
[    1.015088] usbcore: registered new interface driver hub
[    1.015114] usbcore: registered new device driver usb
[    1.330164] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.330167] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.330170] usb usb1: Product: xHCI Host Controller
[    1.330172] usb usb1: Manufacturer: Linux 6.1.0-21-amd64 xhci-hcd
[    1.330174] usb usb1: SerialNumber: 0000:05:00.3
[    1.330726] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.330756] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    1.330759] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.330761] usb usb2: Product: xHCI Host Controller
[    1.330763] usb usb2: Manufacturer: Linux 6.1.0-21-amd64 xhci-hcd
[    1.330765] usb usb2: SerialNumber: 0000:05:00.3
[    1.332154] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.332156] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.332159] usb usb3: Product: xHCI Host Controller
[    1.332161] usb usb3: Manufacturer: Linux 6.1.0-21-amd64 xhci-hcd
[    1.332163] usb usb3: SerialNumber: 0000:05:00.4
[    1.332678] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.332708] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    1.332711] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.332713] usb usb4: Product: xHCI Host Controller
[    1.332715] usb usb4: Manufacturer: Linux 6.1.0-21-amd64 xhci-hcd
[    1.332717] usb usb4: SerialNumber: 0000:05:00.4
[    1.592282] usb 3-1: new full-speed USB device number 2 using xhci_hcd
[    1.592292] usb 1-3: new high-speed USB device number 2 using xhci_hcd
[    1.743975] usb 1-3: New USB device found, idVendor=0781, idProduct=5571, bcdDevice= 1.00
[    1.743982] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.743985] usb 1-3: Product: Cruzer Fit
[    1.743987] usb 1-3: Manufacturer: SanDisk
[    1.743990] usb 1-3: SerialNumber: 4C530001261029110553
[    1.772710] usb 3-1: New USB device found, idVendor=0bda, idProduct=b023, bcdDevice= 2.10
[    1.772723] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.772730] usb 3-1: Product: Bluetooth Radio 
[    1.772737] usb 3-1: Manufacturer: Realtek 
[    1.772743] usb 3-1: SerialNumber: 00e04c000001
[    1.912293] usb 3-2: new high-speed USB device number 3 using xhci_hcd
[    2.040153] usb-storage 1-3:1.0: USB Mass Storage device detected
[    2.040354] scsi host1: usb-storage 1-3:1.0
[    2.040471] usbcore: registered new interface driver usb-storage
[    2.041784] usbcore: registered new interface driver uas
[    2.071644] usb 3-2: New USB device found, idVendor=5986, idProduct=2113, bcdDevice=54.22
[    2.071655] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.071661] usb 3-2: Product: Integrated Camera
[    2.071666] usb 3-2: Manufacturer: SunplusIT Inc
[   14.949503] usb 3-2: Found UVC 1.00 device Integrated Camera (5986:2113)
[   14.967454] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-2/3-2:1.0/input/input16
[   14.967543] usbcore: registered new interface driver uvcvideo
[   15.118683] usbcore: registered new interface driver btusb
when Bluetooth fail happens I observe next:

Code: Select all

[ 1655.085295] usb 3-1: USB disconnect, device number 2
[ 1655.086725] usb usb3-port1: couldn't allocate usb_device
[ 1655.086755] usb 3-2: USB disconnect, device number 3
also I catched this output when BT fails, but icon didn't disappear:

Code: Select all

[   63.028614] usb 3-2: Failed to query (GET_CUR) UVC control 2 on unit 2: -19 (exp. 2).
May be MX gure have some idea?

UPD: RTL8822BE module was replaced by INTEL AX200, but problem remain (
Last edited by andre on Fri Feb 21, 2025 12:59 pm, edited 1 time in total.

User avatar
j2mcgreg
Global Moderator
Posts: 6606
Joined: Tue Oct 23, 2007 12:04 pm

Re: RTL8822BE Bluetooth trouble

#2 Post by j2mcgreg »

For that machine, I would be using the AHS version of MX 23 and at least the Liquorix 6.9.12-2 kernel. There's ample evidence here in the forums that Ryzen based machines perform much better with a Liquorix kernel and that glitches found with the default Debian kernels are eliminated.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

andre
Posts: 29
Joined: Thu Feb 13, 2025 4:49 am

Re: RTL8822BE Bluetooth trouble

#3 Post by andre »

j2mcgreg wrote: Thu Feb 13, 2025 7:55 am For that machine, I would be using the AHS version of MX 23 and at least the Liquorix 6.9.12-2 kernel. There's ample evidence here in the forums that Ryzen based machines perform much better with a Liquorix kernel and that glitches found with the default Debian kernels are eliminated.
Thank you for advice! At least I have now direction!

andre
Posts: 29
Joined: Thu Feb 13, 2025 4:49 am

Re: RTL8822BE Bluetooth trouble

#4 Post by andre »

According to advice of 2mcgreg tried MX23.0_AHS and MX23.5_AHS with 6.12.8-1-liquorix kernel. Nothing changed :rolleyes:
I tried lsusb it shows my module:

Code: Select all

Bus 003 Device 002: ID 0bda:b023 Realtek Semiconductor Corp. RTL8822BE Bluetooth 4.2 Adapter
but then it disappears...

andre
Posts: 29
Joined: Thu Feb 13, 2025 4:49 am

Re: RTL8822BE Bluetooth trouble

#5 Post by andre »

Tried 6.12.12-2-liquorix-amd64 kernel. Same story :frown: ...
BT worked after connect, I started watch video, and again module disappeared:

Code: Select all

[  939.180366] Bluetooth: hci0: Resetting usb device.
[  939.343401] usb 3-1: reset full-speed USB device number 2 using xhci_hcd
[  939.343416] usb 3-1: hub failed to enable device, error -108
[  939.456352] usb 3-1: reset full-speed USB device number 2 using xhci_hcd
[  939.456369] usb 3-1: hub failed to enable device, error -108
[  939.569342] usb 3-1: reset full-speed USB device number 2 using xhci_hcd
[  939.979340] usb 3-1: device not accepting address 2, error -108
[  940.091339] usb 3-1: reset full-speed USB device number 2 using xhci_hcd
[  940.508325] usb 3-1: device not accepting address 2, error -108
[  940.508427] usb 3-1: USB disconnect, device number 2
[  940.510404] usb usb3-port1: couldn't allocate usb_device
:confused:

andre
Posts: 29
Joined: Thu Feb 13, 2025 4:49 am

Re: RTL8822BE Bluetooth trouble

#6 Post by andre »

Hello, community! So last information if somebody have interest). Assuming that this is a hardware problem, a new WiFi module was purchased - AX200. But after installing the new module, the old problem remained. That is, the problem is not in the module drivers... It looks like a problem with USB. Here is dmesg outptut, I catch it when bluetooth icon was ok and I just switch on my JBL520 earphones.
After that bluetooth icon disappeared..

Code: Select all

1828.140317] xhci_hcd 0000:05:00.4: xHCI host not responding to stop endpoint command
[ 1828.140349] xhci_hcd 0000:05:00.4: xHCI host controller not responding, assume dead
[ 1828.140366] xhci_hcd 0000:05:00.4: HC died; cleaning up
[ 1828.140484] usb 3-1: USB disconnect, device number 2
[ 1828.141723] usb usb3-port1: couldn't allocate usb_device
[ 1828.141748] usb 3-2: USB disconnect, device number 3
[ 1838.345049] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1838.345069] ata1.00: Entering active power mode
[ 1838.357408] ata1.00: configured for UDMA/133
[ 1838.370204] sd 0:0:0:0: [sda] Starting disk
I tried to restart the xHCI USB device:

Code: Select all

echo -n "0000:05:00.4" > /sys/bus/pci/drivers/xhci_hcd/unbind
echo -n "0000:05:00.4" > /sys/bus/pci/drivers/xhci_hcd/bind
but that didn't help.
Any idea, please :confused:

User avatar
CharlesV
Global Moderator
Posts: 7088
Joined: Sun Jul 07, 2019 5:11 pm

Re: RTL8822BE/AX200 Bluetooth trouble

#7 Post by CharlesV »

Going to suggest to try turning off suspend / timeout of the BT.

You can turn off 'timeouts' for BT devices as follows:
edit /etc/bluetooth/input.config setting the following under general :

Code: Select all

IdleTimeout=0

UserspaceHID=true

In mine these are remarked out, supposed to default to 0 .. but try setting it to 0 ( you could optionally set it to say 90 min and then see if it affects how the mouse works. Possibly set to say 5 min for testing and see what happens ? )

more info on the issue here:
viewtopic.php?p=810638#p810638
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

andre
Posts: 29
Joined: Thu Feb 13, 2025 4:49 am

Re: RTL8822BE/AX200 Bluetooth trouble

#8 Post by andre »

CharlesV wrote: Fri Feb 21, 2025 1:08 pm Going to suggest to try turning off suspend / timeout of the BT.

You can turn off 'timeouts' for BT devices as follows:
edit /etc/bluetooth/input.config setting the following under general :
...
Thank you! Will try.

andre
Posts: 29
Joined: Thu Feb 13, 2025 4:49 am

Re: RTL8822BE/AX200 Bluetooth trouble

#9 Post by andre »

Hello, community!
CharlesV wrote: Fri Feb 21, 2025 1:08 pm Going to suggest to try turning off suspend / timeout of the BT.
...
No changes... :rolleyes:
Main problem that I can't use Bluetooth at all. Only seldom, after reboot after windows use, I can use Bluetooth for some time, But when it fails even reboot doesn't helps(((
I tried also to use antiX live usb and there is same issue.
A can't find better alternative than MX linux.
Maybe there is a possibility to get paid support?
I'm in despair(((. Help please!

User avatar
Eadwine Rose
Administrator
Posts: 14460
Joined: Wed Jul 12, 2006 2:10 am

Re: RTL8822BE/AX200 Bluetooth trouble

#10 Post by Eadwine Rose »

We do not offer paid support.
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Post Reply

Return to “Hardware /Configuration”