Broken wifi-drivers for rtw89-git

I have a Lenovo Yoga 6 and have Fedora 38 with KDE installed on it. However, the wireless drivers were not installed.
So I installed the wifi-drive with this commands:

sudo dnf install git dkms kernel-devel openssl
sudo git clone https://github.com/lwfinger/rtw89.git \
/usr/src/rtw89-git
sudo sed -e "/^MAKE/d;/^CLEAN/d
/^DEST_MODULE_LOCATION/s|/updates/|/extra/"\
/usr/src/rtw89-git/debian/rtw89-dkms.dkms \
| sudo tee /usr/src/rtw89-git/dkms.conf > /dev/null
sudo dkms add rtw89/git
sudo systemctl restart dkms.conf > /dev/null
sudo tee /etc/modules-load.d/rtw89.conf << EOF > /dev/null
rtw_8852be
EOF
sudo systemctl restart systemd-modules-load.service

After some time I have installed an update and after that my driver was broken. I recieved this error-message:

A kernel problem has occurred, but your kernel is broken (flags:GOE). Explanation:
O - Out-of-tree module has been loaded.
E - Unsigned module has been loaded.
Kernel maintainers cannot parse reports of corrupted kernels. Affected modules:
rtw_8852be,rtw_8852b,rtw89pci,rtw89core.

I tried to reinstall the driver but it didn’t changed anything.
However, I don’t know too much about drivers. So can I solve it somehow?
(Thank your for every help)

No wifi with new kernel in fedora 37 - #6 by vgaetera

It did not work. I restarted and tried again but it seems something is damaged?

sudo git -C /usr/src/rtw89-git pull
Already up to date.
sudo dkms remove rtw89/git --force --all
sudo dkms add rtw89/git
sudo dkms install rtw89/git
dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
dkms.conf: Warning! Zero modules specified.
Error! Bad conf file.
File: /var/lib/dkms/rtw89/git/source/dkms.conf does not represent a valid dkms.conf file.
Error! DKMS tree already contains: rtw89-git
You cannot add the same module/version combo more than once.
dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
dkms.conf: Warning! Zero modules specified.
Error! Bad conf file.
File: /var/lib/dkms/rtw89/git/source/dkms.conf does not represent a valid dkms.conf file.

This error is caused by a typo in the instruction you posted above.

The original instruction works fine for me:
How to install the driver for wifi chip rtl8852BE? - #4 by vgaetera

Also be sure to fully upgrade and reboot before building the module:

sudo dnf upgrade --refresh
1 Like

I am very sorry for the typo and very grateful for your help.
However, nothing worked for me.
I tried it at least 6 times, but the problem was not that it didn’t work. The drivers were successfully removed and added back.
And I rebooted each time to make sure it really wasn’t working and checked the wifi drivers each time to see if any were found (they were not).
Also there was no error at all since I reinstalled the driver.
Is it perhaps possible that it is due to the kernel? (My kernel is currently at version 6.3.4-201.fc38.x86_64)

Check the output:

sudo modprobe rtw_8852be
lspci -n -n -k; lsusb -v -v -t

Perhaps there’s some other driver you need to blacklist.

1 Like

nothing was printed out when I typed this command: “sudo modprobe rtw_8852be”
But this is what was displayed with lspci:

03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
        DeviceName: Realtek RTL8111E Ethernet LOM
        Subsystem: Lenovo Device [17aa:4853]
        Kernel modules: rtw89_8852be, rtw_8852be

(this was the only network controller I found)

I also tried this:

sudo modprobe rtw89_8852be
modprobe: ERROR: could not insert 'rtw89_8852be': Device or resource busy

(Maybe just the new update is the cause and will be resolved eventually, because I really don’t know what it could even be. The driver was apparently found, only that it does not work, as far as I understand. Thank you again for your help :-))

1 Like

Perhaps this is a firmware related problem, you can open an issue here:

Sorry, I do not own this device, so I can help only this far.

2 Likes