wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post please read how to get help
Post Reply
t3chap
Level 1
Level 1
Posts: 6
Joined: Fri Sep 16, 2022 12:25 pm

wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by t3chap »

Just bought a micro computer wtih the RTL8852BE chipset from realtek. Wifi and bluetooth work on the windows 11 which came with the device so I know it isn't a hardware problem.
I install linux mint 21 and followed these instructions with no luck:

Code: Select all

sudo apt update
sudo apt install git bc
git clone https://github.com/HRex39/rtl8852be.git
cd rtl8852be
make
sudo make install
sudo modprobe 8852be
I used the following instructions:

Code: Select all

inxi -Fxpmrz && lsusb && lspci && rfkill list all && mokutil --sb-state
which resulted in the following output:

Code: Select all

System:
  Kernel: 5.15.0-47-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: MATE 1.26.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop Mobo: N/A model: SmbiosType2_BoardProductName
    serial: <superuser required> UEFI: American Megatrends LLC.
    v: JB01_XX_004_9W001 date: 04/27/2022
Memory:
  RAM: total: 7.54 GiB used: 1.68 GiB (22.2%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: quad core model: Intel Celeron N5105 bits: 64 type: MCP arch: Tremont
    rev: 0 cache: L1: 256 KiB L2: 1.5 MiB L3: 4 MiB
  Speed (MHz): avg: 773 high: 800 min/max: 800/2900 cores: 1: 763 2: 744
    3: 800 4: 785 bogomips: 15974
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel JasperLake [UHD Graphics] driver: i915 v: kernel
    bus-ID: 00:02.0
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics (JSL) v: 4.6 Mesa 22.0.5
    direct render: Yes
Audio:
  Device-1: Intel driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
  Device-2: Zoran Personal Media Division (Nogatech) USB Audio and HID
    type: USB driver: snd-usb-audio bus-ID: 1-6:5
  Sound Server-1: ALSA v: k5.15.0-47-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek driver: rtl8852be v: N/A port: 3000 bus-ID: 01:00.0
  IF: wlp1s0 state: down mac: <filter>
  Device-2: Intel Ethernet I225-V driver: igc v: kernel port: N/A
    bus-ID: 02:00.0
  IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-3:3
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.2
Drives:
  Local Storage: total: 238.47 GiB used: 11.28 GiB (4.7%)
  ID-1: /dev/sda model: VICK SSD 256GB NGFF 2242 size: 238.47 GiB
Partition:
  ID-1: / size: 233.18 GiB used: 11.23 GiB (4.8%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 96 MiB used: 51.1 MiB (53.3%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) file: /swapfile
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2120
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vanessa main upstream import backport
    2: deb http://www.gtlib.gatech.edu/pub/ubuntu jammy main restricted universe multiverse
    3: deb http://www.gtlib.gatech.edu/pub/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://www.gtlib.gatech.edu/pub/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 232 Uptime: 5m Init: systemd runlevel: 5 Compilers: gcc: 11.2.0
  Shell: Bash v: 5.1.16 inxi: 3.3.13
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0573:1573 Zoran Co. Personal Media Division (Nogatech) USB Audio and HID
Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 003: ID 0bda:b85b Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 002: ID 04f2:0939 Chicony Electronics Co., Ltd Amazon Basics mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
00:00.0 Host bridge: Intel Corporation Device 4e24
00:02.0 VGA compatible controller: Intel Corporation JasperLake [UHD Graphics] (rev 01)
00:04.0 Signal processing controller: Intel Corporation Dynamic Tuning service
00:14.0 USB controller: Intel Corporation Device 4ded (rev 01)
00:14.2 RAM memory: Intel Corporation Device 4def (rev 01)
00:14.5 SD Host controller: Intel Corporation Device 4df8 (rev 01)
00:15.0 Serial bus controller: Intel Corporation Serial IO I2C Host Controller (rev 01)
00:15.1 Serial bus controller: Intel Corporation Serial IO I2C Host Controller (rev 01)
00:15.2 Serial bus controller: Intel Corporation Device 4dea (rev 01)
00:16.0 Communication controller: Intel Corporation Management Engine Interface (rev 01)
00:17.0 SATA controller: Intel Corporation Device 4dd3 (rev 01)
00:19.0 Serial bus controller: Intel Corporation Device 4dc5 (rev 01)
00:19.1 Serial bus controller: Intel Corporation Device 4dc6 (rev 01)
00:1a.0 SD Host controller: Intel Corporation Device 4dc4 (rev 01)
00:1c.0 PCI bridge: Intel Corporation Device 4db9 (rev 01)
00:1c.6 PCI bridge: Intel Corporation Device 4dbe (rev 01)
00:1e.0 Communication controller: Intel Corporation Device 4da8 (rev 01)
00:1e.3 Serial bus controller: Intel Corporation Device 4dab (rev 01)
00:1f.0 ISA bridge: Intel Corporation Device 4d87 (rev 01)
00:1f.3 Audio device: Intel Corporation Device 4dc8 (rev 01)
00:1f.4 SMBus: Intel Corporation JaserLake SMBus (rev 01)
00:1f.5 Serial bus controller: Intel Corporation JaserLake SPI (flash) Controller (rev 01)
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
SecureBoot disabled
Platform is in Setup Mode
I appreciate any help you can give me.
Thanks.
sleeper12
Level 20
Level 20
Posts: 11166
Joined: Thu May 25, 2017 3:22 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by sleeper12 »

Maybe you need to disable Fast Startup in Windows:
https://windowsreport.com/disable-fast- ... indows-11/
t3chap
Level 1
Level 1
Posts: 6
Joined: Fri Sep 16, 2022 12:25 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by t3chap »

I installed linux over windows completely so there isn't a way for me to change this at this point. It doesn't appear to be a setting that I can change in the bios.
User avatar
Joe2Shoe
Level 5
Level 5
Posts: 773
Joined: Wed Oct 18, 2017 8:12 pm
Location: Ozone

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by Joe2Shoe »

Post the results of this command in Terminal:
iwconfig
"Tolerance is the refuge of men without conviction."
"Common sense is not so common" - Voltaire
sleeper12
Level 20
Level 20
Posts: 11166
Joined: Thu May 25, 2017 3:22 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by sleeper12 »

Not sure if it still works, but you can try:

Step 1:

Code: Select all

sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git

Step 2: If your kernel version is below 5.18:
#Turn off your Security Boot in BIOS

Code: Select all

git clone https://github.com/HRex39/rtl8852be.git
cd rtl8852be
make -j8
sudo make install
sudo modprobe 8852be
JeremyB
Level 21
Level 21
Posts: 12561
Joined: Fri Feb 21, 2014 8:17 am

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by JeremyB »

Post results for

Code: Select all

dmesg | grep 8852
t3chap
Level 1
Level 1
Posts: 6
Joined: Fri Sep 16, 2022 12:25 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by t3chap »

ifconfig results:

Code: Select all

lo        no wireless extensions.

enp2s0    no wireless extensions.

result for dmesg | grep 8852:

Code: Select all

[    4.892798] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000b lmp_ver=0b lmp_subver=8852
[    4.892808] Bluetooth: hci0: RTL: unknown IC info, lmp subver 8852, hci rev 000b, hci ver 000b
t3chap
Level 1
Level 1
Posts: 6
Joined: Fri Sep 16, 2022 12:25 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by t3chap »

I do get the following error when executing the following code as suggested above:

make
sudo make install
sudo modprobe 8852be



Code: Select all

#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-48-generic/build M=/home/tim/rtl8852be  modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-48-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-48-generic'
#cp Module.symvers .symvers.8852be
install -p -m 644 8852be.ko  /lib/modules/5.15.0-48-generic/kernel/drivers/net/wireless/
/sbin/depmod -a 5.15.0-48-generic
modprobe: ERROR: could not insert '8852be': Invalid argument
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by hglee »

t3chap wrote:
Fri Sep 16, 2022 12:33 pm

Code: Select all

Network:
  Device-1: Realtek driver: rtl8852be v: N/A port: 3000 bus-ID: 01:00.0
  IF: wlp1s0 state: down mac: <filter>
  Device-2: Intel Ethernet I225-V driver: igc v: kernel port: N/A
    bus-ID: 02:00.0
  IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-3:3
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.2

lsusb:
Bus 001 Device 003: ID 0bda:b85b Realtek Semiconductor Corp. Bluetooth Radio

lspci:
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)

There's wireless on your USB.

Install the RealTek RTL88x2B USB driver, using the DKMS instructions:

Open a Terminal (ctrl-alt-T), then copy-and-paste the following 5 lines into the Terminal window, one by one, tapping Enter after each...

Code: Select all

sudo apt install build-essential dkms git
sudo git clone "https://github.com/RinCat/RTL88x2BU-Linux-Driver.git" /usr/src/rtl88x2bu-git
sudo sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
sudo dkms add -m rtl88x2bu -v git
sudo dkms autoinstall
Reboot.


After reboot, what's the output of the following Terminal command-line?:

Code: Select all

(lsmod;dmesg)|egrep -i "w8|t8|l8|b8|r8|8852";cat /proc/cmdline;dkms status

Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
t3chap
Level 1
Level 1
Posts: 6
Joined: Fri Sep 16, 2022 12:25 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by t3chap »

Code: Select all

tim@sycamore:~$ (lsmod;dmesg)|egrep -i "w8|t8|l8|b8|r8|8852";cat /proc/cmdline;dkms status
[    0.026750] percpu: Embedded 60 pages/cpu s208896 r8192 d28672 u524288
[    0.026758] pcpu-alloc: s208896 r8192 d28672 u524288 alloc=1*2097152
[    0.092629] DMAR: RMRR base: 0x0000007b800000 end: 0x0000007fbfffff
[    0.218294] ACPI: SSDT 0xFFFF9D74801F4600 0001B8 (v02 PmRef  Cpu0Psd  00003000 INTL 20191018)
[    0.302222] pci 0000:01:00.0: [10ec:b852] type 00 class 0x028000
[    1.815350] usb 1-3: New USB device found, idVendor=0bda, idProduct=b85b, bcdDevice= 0.00
[    2.401277] input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:04F2:0939.0003/input/input8
[    4.398979] 8852be: loading out-of-tree module taints kernel.
[    4.414783] 8852be: module verification failed: signature and/or required key missing - tainting kernel
[    4.414937] 8852be: disagrees about version of symbol napi_disable
[    4.414940] 8852be: Unknown symbol napi_disable (err -22)
[    4.414996] 8852be: disagrees about version of symbol register_netdev
[    4.414997] 8852be: Unknown symbol register_netdev (err -22)
[    4.415020] 8852be: disagrees about version of symbol napi_schedule_prep
[    4.415021] 8852be: Unknown symbol napi_schedule_prep (err -22)
[    4.415029] 8852be: disagrees about version of symbol dev_get_by_name
[    4.415030] 8852be: Unknown symbol dev_get_by_name (err -22)
[    4.415088] 8852be: disagrees about version of symbol napi_complete_done
[    4.415090] 8852be: Unknown symbol napi_complete_done (err -22)
[    4.415096] 8852be: disagrees about version of symbol netdev_set_default_ethtool_ops
[    4.415097] 8852be: Unknown symbol netdev_set_default_ethtool_ops (err -22)
[    4.415141] 8852be: disagrees about version of symbol free_netdev
[    4.415142] 8852be: Unknown symbol free_netdev (err -22)
[    4.415165] 8852be: disagrees about version of symbol register_netdevice
[    4.415166] 8852be: Unknown symbol register_netdevice (err -22)
[    4.415184] 8852be: disagrees about version of symbol netif_napi_add
[    4.415185] 8852be: Unknown symbol netif_napi_add (err -22)
[    4.415217] 8852be: disagrees about version of symbol __netif_napi_del
[    4.415218] 8852be: Unknown symbol __netif_napi_del (err -22)
[    4.415240] 8852be: disagrees about version of symbol napi_gro_receive
[    4.415241] 8852be: Unknown symbol napi_gro_receive (err -22)
[    4.415253] 8852be: disagrees about version of symbol netif_rx
[    4.415254] 8852be: Unknown symbol netif_rx (err -22)
[    4.415255] 8852be: disagrees about version of symbol netif_tx_stop_all_queues
[    4.415256] 8852be: Unknown symbol netif_tx_stop_all_queues (err -22)
[    4.415261] 8852be: disagrees about version of symbol netif_receive_skb
[    4.415262] 8852be: Unknown symbol netif_receive_skb (err -22)
[    4.415271] 8852be: disagrees about version of symbol eth_type_trans
[    4.415272] 8852be: Unknown symbol eth_type_trans (err -22)
[    4.415348] 8852be: disagrees about version of symbol unregister_netdevice_queue
[    4.415350] 8852be: Unknown symbol unregister_netdevice_queue (err -22)
[    4.415358] 8852be: disagrees about version of symbol netif_tx_wake_queue
[    4.415359] 8852be: Unknown symbol netif_tx_wake_queue (err -22)
[    4.415367] 8852be: disagrees about version of symbol __dev_kfree_skb_any
[    4.415367] 8852be: Unknown symbol __dev_kfree_skb_any (err -22)
[    4.415370] 8852be: disagrees about version of symbol __napi_schedule
[    4.415371] 8852be: Unknown symbol __napi_schedule (err -22)
[    4.415379] 8852be: disagrees about version of symbol ethtool_op_get_link
[    4.415380] 8852be: Unknown symbol ethtool_op_get_link (err -22)
[    4.415389] 8852be: disagrees about version of symbol napi_enable
[    4.415390] 8852be: Unknown symbol napi_enable (err -22)
[    4.415404] 8852be: disagrees about version of symbol alloc_etherdev_mqs
[    4.415405] 8852be: Unknown symbol alloc_etherdev_mqs (err -22)
[    4.415472] 8852be: disagrees about version of symbol unregister_netdev
[    4.415473] 8852be: Unknown symbol unregister_netdev (err -22)
[    4.415489] 8852be: disagrees about version of symbol dev_alloc_name
[    4.415491] 8852be: Unknown symbol dev_alloc_name (err -22)
[    4.416462] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000b lmp_ver=0b lmp_subver=8852
[    4.416467] Bluetooth: hci0: RTL: unknown IC info, lmp subver 8852, hci rev 000b, hci ver 000b
BOOT_IMAGE=/boot/vmlinuz-5.15.0-48-generic root=UUID=a844c6bb-499b-4d89-bc1c-2cb9dc398547 ro quiet splash
rtl88x2bu/git, 5.15.0-48-generic, x86_64: installed
tim@sycamore:~$ 
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by hglee »

t3chap wrote:
Mon Sep 26, 2022 3:09 pm

Code: Select all

[    0.302222] pci 0000:01:00.0: [10ec:b852] type 00 class 0x028000
[    1.815350] usb 1-3: New USB device found, idVendor=0bda, idProduct=b85b, bcdDevice= 0.00

Hmm. This is something different.


As noted by lwfinger, with the Realtek RTL8852BE, "The Bluetooth and Wifi devices are separate interfaces on the same chip".


Let's remove that 885xbu module, and unload any earlier 8852be :
Open a Terminal (ctrl-alt-T), then copy-and-paste the following line into the Terminal window, then tap Enter...

Code: Select all

sudo dkms remove rtl88x2bu/git --all; sudo modprobe -rv 8852be

Disable Secure Boot in your BIOS, because it's known to interfere with device drivers & firmware. If you run Windows on the same PC as Linux, it's essential to disable Windows Fast Startup, otherwise it can leave your hardware in a zombie state at any time. Whenever you exit Windows, to boot into Linux, do a full Shutdown, not just a Restart.


Install these software packages, which are needed to build the kernel modules below :

Code: Select all

sudo apt install debhelper dh-modaliases dkms git build-essential

Build and load the WiFi kernel module, by creating this .deb package for it -- lwfinger also shows the make install process, for non-Debian distros -- here :
Open a Terminal (ctrl-alt-T), then copy-and-paste the following 3 lines into the Terminal window, one by one, tapping Enter after each...

Code: Select all

cd ~/Downloads; git clone https://github.com/lwfinger/rtw8852be.git
cd rtw8852be ; git clean -xfd; dpkg-buildpackage -us -uc
cd ..; sudo dpkg -i rtw8852be-dkms_1.0.0_all.deb; sudo modprobe -v 8852be

lwfinger notes, "This driver will build for kernels 5.15+". So, you're okay to install the Bluetooth module, from two .deb packages created here :
Open a Terminal (ctrl-alt-T), then copy-and-paste the following 3 lines into the Terminal window, one by one, tapping Enter after each...

Code: Select all

cd ~/Downloads; git clone https://github.com/lwfinger/rtw89-BT.git
cd rtw89-BT; git clean -xfd; dpkg-buildpackage -us -uc
cd ..; sudo dpkg -i {rtw89bt-dkms_1.0.0_all.deb,rtw89bt-firmware_1.0.0_all.deb}
Reboot.


Anything different?


If wifi seems unstable, disable intermittent power-down sleeps, and check the network & wireless enablement (NetworkManager will be restarted) :

Code: Select all

N=NetworkManager;S=systemctl;sudo sed -i 's/3/2/' /etc/$N/conf.d/default-wifi-powersave-on.conf;$S stop $N;sudo sed -i 's/false/true/' /var/lib/$N/$N.state;$S start $N
Last edited by SMG on Fri Oct 28, 2022 9:41 pm, edited 2 times in total.
Reason: Removed color from text which caused the text to blend in with the background.
Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
t3chap
Level 1
Level 1
Posts: 6
Joined: Fri Sep 16, 2022 12:25 pm

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by t3chap »

After these steps the wifi now works. The bluetooth might work; supposedly it is bluetooth 5.0 but I can't get 2 wireless keyboards that are supposedly bluetooth 3.0 to pair. I have gotten several speakers, etc to pair so there is some bluetooth function.

I'm not sure if there is any way to troubleshoot why some bluetooth devices work and others do not.

I'd like to get the bluetooth keyboard working as the plan was to use this computer with hotel tvs when on the road with a small tablet sized bluetooth keyboard.

Thanks for your help.
tommiedepommie
Level 1
Level 1
Posts: 12
Joined: Mon Dec 17, 2018 7:07 am

Re: wifi and bluetooth not working linux mint 21 RTL8852BE chipset

Post by tommiedepommie »

Thank you very much @hglee

I needed this driver on a HP laptop pavilion 15-eh2001nf to get wifi working.

Thanks you

Greetings Tom
Post Reply

Return to “Networking”