You are not logged in.

#1 2019-07-13 15:43:03

bbaserdem
Member
Registered: 2017-07-27
Posts: 43

No wifi scanning on 5.2 (RTL8822be)

After updating to kernel 5.2, my wifi started not being able to see any networks. I tried the following;

* Using different wifi providers. I use iwd, and tried with iw. Both of them did not report any network, but I haven't seen any errors when I force a scan of wifi.
* Downgrade linux-firmware, which did not work. (I think rtl8822bu is in kernel anyway, so didn't think it would work)
* Downgrade the linux and linux-headers package to 5.1.19 (fixed the issue)

However, I would rather run the recent kernel, and not an outdated one. Does anyone know how to fix the issue? (Or how can I properly diagnose and report the issue to upstream?)

Last edited by bbaserdem (2019-09-20 18:49:34)

Offline

#2 2019-07-13 16:00:12

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: No wifi scanning on 5.2 (RTL8822be)

Kernel 5.2 includes the new rtw88 driver that is not yet functional for your device I think. Try to blacklist it (might not be necessary, though) and update the rtl8822-dkms-git package. The AUR page mentions some fixes for 5.2

https://www.phoronix.com/scan.php?page= … nux-Driver

https://aur.archlinux.org/packages/rtl8822bu-dkms-git/

Last edited by progandy (2019-07-13 16:13:13)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2019-07-15 04:59:28

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: No wifi scanning on 5.2 (RTL8822be)

I have the same issue but with a RTL8822be device. Unfortunately there is no AUR package of the module to fall back on. I can see what I presume to be the last firmware for this device at /lib/firmware/rtlwifi/rtl8822befw.bin.Is there anyway to use this firmware instead of the rtw88 module?

Offline

#4 2019-07-16 16:09:17

loqs
Member
Registered: 2014-03-06
Posts: 17,193

Re: No wifi scanning on 5.2 (RTL8822be)

Online

#5 2019-07-16 16:42:37

bbaserdem
Member
Registered: 2017-07-27
Posts: 43

Re: No wifi scanning on 5.2 (RTL8822be)

@woodape To fix the issue, I downgraded the kernel and things work. I mistyped actually, the current module in use for me is r8822be. I have the same device;

07:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter

@progandy Thank you very much. I was an idiot and misidentified my card. The dkms package did not work for me.

@loqs I will check out the package; but I have issues. Mostly; there is a file conflict and I don't wanna touch my /usr/lib/firmware without knowing what I am doing.

Last edited by bbaserdem (2019-07-16 16:48:21)

Offline

#6 2019-07-17 11:52:55

loqs
Member
Registered: 2014-03-06
Posts: 17,193

Re: No wifi scanning on 5.2 (RTL8822be)

@bbaserdem what is the output of

pacman -Qo /usr/lib/firmware/rtlwifi/rtl8812aefw.bin /usr/lib/firmware/rtlwifi/rtl8812aefw_wowlan.bin

Could you also post the output from the pacman install of rtlwifi_new-extended-dkms showing the conflicting files.

Online

#7 2019-07-17 15:57:04

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: No wifi scanning on 5.2 (RTL8822be)

Thanks @loqs and @bbaserdem for the feedback

@loqs, I've tried the AUR package you suggested and also had no luck. I however didn't have any issues with conflicting files.

The package made a new module available for my devices, which I could see by doing lspci -kv, but when I removed the rtl_pci module (which is provided by rtlw88 I guess?) and modprobed the new module, I still couldn't connect to wifi, and rfkill list no loner showed my wireless device as available.

If I was supposed to do something else to get it to work please let me know and I'll give it a shot.

@bbaserdem I've also resorted to downgrading to 5.1.16 for now. I'm considering getting a new wireless card altogether that has better linux support. Intel has a pretty long list if you're thinking the same.

If you have a thinkpad, like myself, make sure you do some investigation to make sure any card you're interested in is white listed in the thinkpad BIOS.

Offline

#8 2019-07-17 18:59:53

loqs
Member
Registered: 2014-03-06
Posts: 17,193

Re: No wifi scanning on 5.2 (RTL8822be)

@Woodape thank you for testing that.
If you blacklist using the commandline the rtw88 and rtwpci modules.

module_blacklist=rtw88,rtwpci

In case having the modules loaded interferes with the rtl8822be.  Then try modprobing the rtl8822be if no device appears in the output of `ip l` please post the output of `dmesg` for that boot.

Online

#9 2019-07-18 06:55:35

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: No wifi scanning on 5.2 (RTL8822be)

@loqs thanks for the additional help.

I reinstalled the 5.2.1 kernel and headers and blacklisted both the rtw88 and rtwpci modules using the kernel boot parameters as you suggested, then rebooted, reinstalled the AUR package you suggested, ran sudo modprobe rtl8822be and voila! I have wireless!

I've since added a file /etc/modules-load.d/wifi.conf with the one line rtl8822be, and rebooted and the wifi works from boot. All great news, thanks a bunch @loqs! I'll test if the rtw88 and rtwpci modules work in future kernel releases, hopefully they will.

@bbaserdem, if you can sort out the file conflict perhaps this will work for you as well.

Offline

#10 2019-07-19 14:06:08

bbaserdem
Member
Registered: 2017-07-27
Posts: 43

Re: No wifi scanning on 5.2 (RTL8822be)

@loqs

sorry for the late reply. Pacman query tells me no package owns those files, could they be left over from an old version of a package (probably linux-firmware?) I am not sure. (It could be that I deleted those files due to trying to install the package)

The error i was getting was conflicting files, those two already exist in my system. (Can't copy paste since I done some stuff and cannot reproduce) In any case, I removed the files to be able to install the rtlwifi_new-extended-dkms.

@woodape my laptop is asus gl702 something. I chose it due to running ryzen cpu and amd graphics card. Unfortunately i did not check the network card before, but I am also not able to replace things easily on this laptop.

I will follow in woodape's steps and report back in a bit.

EDIT: It works for me, here are the steps that I took;

* I installed the package, and the files that I mentioned are being owned by the dkms package

$ pacman -Qo /usr/lib/firmware/rtlwifi/rtl8812aefw.bin /usr/lib/firmware/rtlwifi/rtl8812aefw_wowlan.bin
/usr/lib/firmware/rtlwifi/rtl8812aefw.bin is owned by rtlwifi_new-extended-dkms r280.e4dad30-1
/usr/lib/firmware/rtlwifi/rtl8812aefw_wowlan.bin is owned by rtlwifi_new-extended-dkms r280.e4dad30-1

* I ran pacman -Syu to update my kernel version (from manually installed 5.1.19 to 5.2.1-arch1-1-ARCH)
* Added the following to my /boot/refind_linux.conf (Grub users would edit /etc/default/grub I believe) to blacklist the modules

"Boot with defaults" "initrd=/EFI/Arch/amd-ucode.img initrd=/EFI/Arch/initramfs-linux.img rw cryptdevice=UUID=da9c7226-d355-4dcd-a40a-32418f052f9b:cryptlvm root=/dev/Linux/Root resume=/dev/Linux/Swap rootflags=subvol=@arch verbose mem_encrypt=off i8042.reset module_blacklist=rtw88,rtwpci"
"Boot with defaults" "initrd=/EFI/Arch/amd-ucode.img initrd=/EFI/Arch/initramfs-linux.img rw cryptdevice=UUID=da9c7226-d355-4dcd-a40a-32418f052f9b:cryptlvm root=/dev/Linux/Root resume=/dev/Linux/Swap rootflags=subvol=@arch verbose mem_encrypt=off i8042.reset module_blacklist=rtw88,rtwpci"

* Rebooted. I am connected to wireless and have an IP address. Here is a pastebin of my dmesg

Could it just be the 5.2.1 since I opened this issue? I will periodically try to see if the new rtw88 works by trying undoing these steps on kernel updates.

Last edited by bbaserdem (2019-07-19 14:19:25)

Offline

#11 2019-07-20 06:26:06

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: No wifi scanning on 5.2 (RTL8822be)

Glad it worked for you as well @bbaserdem! Make sure to mark the thread solved by editing your first post and prepending "[SOLVED]" to the title. Maybe update the title to say you're using the rtl8822be card as well?

I also have AMD chips, and also didn't do enough research on the wifi before I bought my laptop. It's pretty unlikely that the wifi card is soldered into the motherboard of your laptop, and so it should be *pretty easy* to replace, and it looks like there's an official guide for upgrading your machine. From the pictures in the guide it looks like the wifi card is immediately accessible after you take the back off the machine.

Just a suggestion though smile I've also been having issues with bluetooth with this card, so maybe I'm just more fed up with it.

5.2.1 doesn't fix the issue on it's own. I tried upgrading before installing the AUR package and it was the same problem. Keep an eye out on kernel.org for changes in rtw88. It looks like 5.2.1 was mostly just mitigating the spectre bug and didn't add new lines toward rtw88 over 5.2.

Offline

#12 2019-07-20 12:25:49

bbaserdem
Member
Registered: 2017-07-27
Posts: 43

Re: No wifi scanning on 5.2 (RTL8822be)

Thank you for the link. When i got the laptop, i found nothing of the sort and had to go in blindly to upgrade the ssd and ram. But it doesn't look like the amd version; mine has a much bigger cooling loop that obscures a lot of the components; that I haven't been able to remove.

In the meantime, i will be ok with this driver fix. I waited before for 4.19 for my wifi card to be recognized; i can do it again.

Offline

#13 2019-09-20 09:58:02

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: No wifi scanning on 5.2 (RTL8822be)

Looks like this might have been fixed in the 5.3 kernel. I've uninstalled the AUR packaged mentioned in this thread and removed the blacklisting from the boot options, and I can connect to wifi. lspci reports that the "rtwpci" module is in use:

04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
	Subsystem: Lenovo RTL8822BE 802.11a/b/g/n/ac WiFi adapter
	Flags: bus master, fast devsel, latency 0, IRQ 78
	I/O ports at 2000 [size=256]
	Memory at c0700000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Device Serial Number XX-XX-XX-XX-XX-XX-XX-XX
	Capabilities: [158] Latency Tolerance Reporting
	Capabilities: [160] L1 PM Substates
	Kernel driver in use: rtw_pci
	Kernel modules: rtwpci

Offline

#14 2019-09-20 18:13:21

bbaserdem
Member
Registered: 2017-07-27
Posts: 43

Re: No wifi scanning on 5.2 (RTL8822be)

I took the good news, made changes and i still don't have wifi scanning sad the enly difference between my lspci and yours is the subsystem; im on an AzureWave while you are on Lenovo.

What do you use for wifi management? Im on iwd

Offline

#15 2019-09-22 06:09:57

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: No wifi scanning on 5.2 (RTL8822be)

I use Network Manager. It's been the most robust of the options I've tried.

Offline

Board footer

Powered by FluxBB