Help - Realtek RTL8852AE WiFi

Folks, I'm really desperate now... got a new laptop Lenovo L15 AMD Ryzen 7 :) really super in every way **except the WiFi** no matter what I try Leap 15.3 or Tumbleweed just can't get the WiFi going. I got the machine as it is Ubuntu certified so thought should be ok. Googling seems to suggest it works under Ubuntu, but no matter what I try just cant get this WiFi going under openSUSE seems the driver from Realtek is up to version 4.x but can't find any trace of it on openSUSE. FYI lspci and hwinfo below. lspci grep 8852 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8852 hwinfo --netcard 07: PCI 300.0: 0280 Network controller [Created at pci.386] Unique ID: svHJ.lTCK_+KOKi9 Parent ID: aYFK.1qAv6Us7QUA SysFS ID: /devices/pci0000:00/0000:00:02.3/0000:03:00.0 SysFS BusID: 0000:03:00.0 Hardware Class: network Model: "Realtek Network controller" Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd." Device: pci 0x8852 SubVendor: pci 0x17aa "Lenovo" SubDevice: pci 0x4852 I/O Ports: 0x2000-0x2fff (rw,disabled) Memory Range: 0xfd500000-0xfd5fffff (rw,non-prefetchable,disabled) IRQ: 255 (no events) Module Alias: "pci:v000010ECd00008852sv000017AAsd00004852bc02sc80i00" Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #14 (PCI bridge) I have got the driver from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/... but can't get modprobe to load it!!! Anyone got any idea how to get this working? -- Cheers and may thanks in advance, Ariez ajv@opensuse.org

Am Donnerstag, 1. Juli 2021, 17:44:14 CEST schrieb Ariez Vachha - openSUSE:
I have got the driver from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ tree/rtw89/rtw8852a_fw.bin but can't get modprobe to load it!!! This is firmware, not the driver. You will find driver sources at https://github.com/lwfinger/rtw89. But you will have to compile it yourself. With two caveats: The 15.3 kernel might have modified kernel APIs and 15.3 uses signed kernel modules.

On Thu, 01 Jul 2021 18:44:24 +0200 Markus Koßmann <mkossmann_ml1@gmx.de> wrote:
Am Donnerstag, 1. Juli 2021, 17:44:14 CEST schrieb Ariez Vachha - openSUSE:
I have got the driver from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ tree/rtw89/rtw8852a_fw.bin but can't get modprobe to load it!!! This is firmware, not the driver. You will find driver sources at https://github.com/lwfinger/rtw89. But you will have to compile it yourself. With two caveats: The 15.3 kernel might have modified kernel APIs and 15.3 uses signed kernel modules.
I'm interested because I will probably need to compile a module when I move to 15.3. What's the procedure? Is there some documentation on how to compile a kernel module for 15.3?

You can use this Repo: https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUS... or this one for the updated Kernel: https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUS... And install rtw89-kmp-default or rtw89-kmp-preempt depending on your running kernel. Stephan Am Donnerstag, 1. Juli 2021, 21:07:27 CEST schrieb Dave Howorth:
On Thu, 01 Jul 2021 18:44:24 +0200 Markus Koßmann <mkossmann_ml1@gmx.de> wrote:
Am Donnerstag, 1. Juli 2021, 17:44:14 CEST schrieb Ariez Vachha - openSUSE:
I have got the driver from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ tree/rtw89/rtw8852a_fw.bin but can't get modprobe to load it!!! This is firmware, not the driver. You will find driver sources at https://github.com/lwfinger/rtw89. But you will have to compile it yourself. With two caveats: The 15.3 kernel might have modified kernel APIs and 15.3 uses signed kernel modules.
I'm interested because I will probably need to compile a module when I move to 15.3. What's the procedure? Is there some documentation on how to compile a kernel module for 15.3?

I have tried every which way see the traffic on support@lists.opensuse.org. Short summary: Even with rtw89-kmp-default from the repos below modprobe loads correctly but no wifi card detected both in Leap 15.3 and TW. The only thing that is working is pull the source from Git and make/install - works 100% in TW. Can't even make in Leap 15.3. Ariez On 02/07/2021 18:25, Stephan Hemeier wrote:
You can use this Repo: https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUS... or this one for the updated Kernel: https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUS...
And install rtw89-kmp-default or rtw89-kmp-preempt depending on your running kernel.
Stephan
Am Donnerstag, 1. Juli 2021, 21:07:27 CEST schrieb Dave Howorth:
On Thu, 01 Jul 2021 18:44:24 +0200 Markus Koßmann <mkossmann_ml1@gmx.de> wrote:
Am Donnerstag, 1. Juli 2021, 17:44:14 CEST schrieb Ariez Vachha - openSUSE:
I have got the driver from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ tree/rtw89/rtw8852a_fw.bin but can't get modprobe to load it!!! This is firmware, not the driver. You will find driver sources at https://github.com/lwfinger/rtw89. But you will have to compile it yourself. With two caveats: The 15.3 kernel might have modified kernel APIs and 15.3 uses signed kernel modules. I'm interested because I will probably need to compile a module when I move to 15.3. What's the procedure? Is there some documentation on how to compile a kernel module for 15.3?

Am Montag, 5. Juli 2021, 07:09:09 CEST schrieb Ariez Vachha - openSUSE:
I have tried every which way see the traffic on support@lists.opensuse.org.
Short summary: Even with rtw89-kmp-default from the repos below modprobe loads correctly but no wifi card detected both in Leap 15.3 and TW. The only thing that is working is pull the source from Git and make/install - works 100% in TW. Can't even make in Leap 15.3.
Ariez
The driver from my Repo should work, no errors in building, also I can do a modinfo: /usr/sbin/modinfo rtw89pci filename: /lib/modules/5.13.0-lp153.8.gaa40472-default/updates/rtw89/rtw89pci.ko license: Dual BSD/GPL description: Realtek 802.11ax wireless PCI driver author: Realtek Corporation suserelease: openSUSE Tumbleweed srcversion: C50A4EF4254912F5B33653B alias: pci:v000010ECd00008852sv*sd*bc*sc*i* depends: rtw89core,mac80211 retpoline: Y name: rtw89pci vermagic: 5.13.0-lp153.8.gaa40472-default SMP mod_unload modversions sig_id: PKCS#7 signer: home:Sauerland OBS Project . . . So I do not know, what you have installed, maybe the wrong driver. No errors posted here. For running on Leap 15.3 you have to patch the driver. Stephan

On 05/07/2021 15:36, Stephan Hemeier wrote:
Am Montag, 5. Juli 2021, 07:09:09 CEST schrieb Ariez Vachha - openSUSE:
I have tried every which way see the traffic on support@lists.opensuse.org.
Short summary: Even with rtw89-kmp-default from the repos below modprobe loads correctly but no wifi card detected both in Leap 15.3 and TW. The only thing that is working is pull the source from Git and make/install - works 100% in TW. Can't even make in Leap 15.3.
Ariez The driver from my Repo should work, no errors in building, also I can do a modinfo:
/usr/sbin/modinfo rtw89pci filename: /lib/modules/5.13.0-lp153.8.gaa40472-default/updates/rtw89/rtw89pci.ko license: Dual BSD/GPL description: Realtek 802.11ax wireless PCI driver author: Realtek Corporation suserelease: openSUSE Tumbleweed srcversion: C50A4EF4254912F5B33653B alias: pci:v000010ECd00008852sv*sd*bc*sc*i* depends: rtw89core,mac80211 retpoline: Y name: rtw89pci vermagic: 5.13.0-lp153.8.gaa40472-default SMP mod_unload modversions sig_id: PKCS#7 signer: home:Sauerland OBS Project . . .
So I do not know, what you have installed, maybe the wrong driver. No errors posted here.
For running on Leap 15.3 you have to patch the driver.
Stephan
Thanks Stephan, Here's what I have got working. /usr/sbin/modinfo rtw89pci filename: /lib/modules/5.12.13-1-default/kernel/drivers/net/wireless/realtek/rtw89/rtw89pci.ko license: Dual BSD/GPL description: Realtek 802.11ax wireless PCI driver author: Realtek Corporation suserelease: openSUSE Tumbleweed srcversion: C50A4EF4254912F5B33653B alias: pci:v000010ECd00008852sv*sd*bc*sc*i* depends: rtw89core,mac80211 retpoline: Y name: rtw89pci vermagic: 5.12.13-1-default SMP mod_unload modversions . . This was by building it myself. If I used the repo I can load rtw89pci BUT thereafter still no interface appears... lspci -v 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8852 Subsystem: Lenovo Device 4852 Flags: bus master, fast devsel, latency 0, IRQ 83, IOMMU group 11 I/O ports at 2000 [size=256] Memory at fd500000 (64-bit, non-prefetchable) [size=1M] 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 *********************** Capabilities: [158] Latency Tolerance Reporting Capabilities: [160] L1 PM Substates Kernel driver in use: rtw89_pci Kernel modules: rtw89pci hwinfo --netcard 07: PCI 300.0: 0282 WLAN controller [Created at pci.386] Unique ID: hAO_.nu4lVZLVkx7 Parent ID: aYFK.1qAv6Us7QUA SysFS ID: /devices/pci0000:00/0000:00:02.3/0000:03:00.0 SysFS BusID: 0000:03:00.0 Hardware Class: network Model: "Realtek WLAN controller" Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd." Device: pci 0x8852 SubVendor: pci 0x17aa "Lenovo" SubDevice: pci 0x4852 Driver: "rtw89_pci" Driver Modules: "rtw89pci" Device File: wlp3s0 Features: WLAN I/O Ports: 0x2000-0x2fff (rw) Memory Range: 0xfd500000-0xfd5fffff (rw,non-prefetchable) IRQ: 83 (55093 events) HW Address: ******************* Permanent HW Address: ***************** Link detected: yes WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 2.484 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.5 5.52 5.54 5.56 5.58 5.6 5.62 5.64 5.66 5.68 WLAN encryption modes: WEP40 WEP104 TKIP CCMP WLAN authentication modes: open sharedkey wpa-psk wpa-eap Module Alias: "pci:v000010ECd00008852sv000017AAsd00004852bc02sc80i00" Driver Info #0: Driver Status: rtw89pci is active Driver Activation Cmd: "modprobe rtw89pci" Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #14 (PCI bridge) If it makes any difference my CPU is an AMD Ryzen 7 Pro. Hope that helps. This is now my daily use machine so I can't afford to play around with it too much... but do let me know if there is anything that you spot or you would like me to try. Cheers, Ariez

Hope that helps. This is now my daily use machine so I can't afford to play around with it too much... but do let me know if there is anything that you spot or you would like me to try.
Cheers, Ariez
No it does not help...... I see your ko is build by make, its build inside the realtek directory in the kernel tree /lib/modules/5.12.13-1-default/kernel/drivers/net/wireless/realtek/rtw89/rtw89pci.ko I build my kmps in the updates directory: /lib/modules/5.13.0-lp153.8.gaa40472-default/updates/rtw89/rtw89pci.ko But that is not a problem. Do you have secure boot disbled in UEFI/BIos? Must be for my kmp. I need the output of your commands when only my kmp is installed, also: zypper se -si rtw kernel Is it possible? Because I do not own that Hardware. When you want to install it in Leap 15.3, you have to patch it: https://build.opensuse.org/package/view_file/home:Sauerland/rtw89/leap153.pa... Stephan

On 05/07/2021 20:17, Stephan Hemeier wrote:
Hope that helps. This is now my daily use machine so I can't afford to play around with it too much... but do let me know if there is anything that you spot or you would like me to try.
Cheers, Ariez
No it does not help......
I see your ko is build by make, its build inside the realtek directory in the kernel tree /lib/modules/5.12.13-1-default/kernel/drivers/net/wireless/realtek/rtw89/rtw89pci.ko
I build my kmps in the updates directory: /lib/modules/5.13.0-lp153.8.gaa40472-default/updates/rtw89/rtw89pci.ko
But that is not a problem.
Do you have secure boot disbled in UEFI/BIos? Must be for my kmp.
I need the output of your commands when only my kmp is installed, also: zypper se -si rtw kernel Is it possible?
Because I do not own that Hardware.
When you want to install it in Leap 15.3, you have to patch it: https://build.opensuse.org/package/view_file/home:Sauerland/rtw89/leap153.pa...
Stephan
Stephan 1. Switched off secure boot in BIOS added your repo installed your kmp - same result - Fail. 2. Did a full zypper dup --allow-vendor-change - works! 3. Switched on secure boot - still works! Here are the details for you: /usr/sbin/modinfo rtw89pci filename: /lib/modules/5.12.13-1-default/updates/rtw89/rtw89pci.ko license: Dual BSD/GPL description: Realtek 802.11ax wireless PCI driver author: Realtek Corporation suserelease: openSUSE Tumbleweed srcversion: C50A4EF4254912F5B33653B alias: pci:v000010ECd00008852sv*sd*bc*sc*i* depends: rtw89core,mac80211 retpoline: Y name: rtw89pci vermagic: 5.12.13-1-default SMP mod_unload modversions sig_id: PKCS#7 signer: home:Sauerland OBS Project sig_key: B9:10:D4:5A:5A:16:A5:8D sig_hashalgo: sha256 signature: 89:B8:AF:0E:41:7A:66:DC:FD:3E:F4:AC:B9:CA:9F:9B:85:C0:F3:97: .... parm: disable_clkreq:Set Y to disable PCI clkreq support (bool) parm: disable_aspm_l1:Set Y to disable PCI ASPM L1 support (bool) parm: disable_aspm_l1ss:Set Y to disable PCI L1SS support (bool) lspci -v 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8852 Subsystem: Lenovo Device 4852 Flags: bus master, fast devsel, latency 0, IRQ 77, IOMMU group 11 I/O ports at 2000 [size=256] Memory at fd500000 (64-bit, non-prefetchable) [size=1M] 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 ******************* Capabilities: [158] Latency Tolerance Reporting Capabilities: [160] L1 PM Substates Kernel driver in use: rtw89_pci Kernel modules: rtw89pci zypper se -si rtw kernel S | Name | Type | Version | Arch | Repository ---+-----------------------------+---------+----------------------------+--------+------------------------------- i+ | kernel-default | package | 5.12.13-1.1 | x86_64 | Main Repository (OSS) i | kernel-default-devel | package | 5.12.13-1.1 | x86_64 | Main Repository (OSS) i+ | kernel-devel | package | 5.12.13-1.1 | noarch | Main Repository (OSS) i | kernel-firmware-all | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-amdgpu | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-ath10k | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-ath11k | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-atheros | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-bluetooth | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-bnx2 | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-brcm | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-chelsio | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-dpaa2 | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-i915 | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-intel | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-iwlwifi | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-liquidio | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-marvell | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-media | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-mediatek | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-mellanox | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-mwifiex | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-network | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-nfp | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-nvidia | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-platform | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-prestera | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-qcom | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-qlogic | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-radeon | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-realtek | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-serial | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-sound | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-ti | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-ueagle | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-firmware-usb-network | package | 20210629-36.1 | noarch | Hardware (openSUSE_Tumbleweed) i | kernel-macros | package | 5.12.13-1.1 | noarch | Main Repository (OSS) i | libKPimImportWizard5 | package | 21.04.2-1.1 | x86_64 | Main Repository (OSS) i | nfs-kernel-server | package | 2.5.3-24.1 | x86_64 | Main Repository (OSS) i | purge-kernels-service | package | 0-8.1 | noarch | Main Repository (OSS) i+ | rtw89-kmp-default | package | git20210703_k5.12.13_1-2.2 | x86_64 | Hardware (openSUSE_Tumbleweed) Must have been some bug with something pre update. Thanks for your work. - Let me know if you need any other tests. Ariez

Am Mittwoch, 7. Juli 2021, 10:09:27 CEST schrieb Ariez Vachha - openSUSE:
Must have been some bug with something pre update.
Thanks for your work. - Let me know if you need any other tests.
Ariez
Hi Ariez I think it was the kernel-firmware package, which was too "old", mine was a little bit newer. But now I know, it is working. Thank you for the test. Stephan
participants (4)
-
Ariez Vachha - openSUSE
-
Dave Howorth
-
Markus Koßmann
-
Stephan Hemeier