The Wi-Fi Driver I Didn't Need: Fixing RTL8822BU and Upgrading Fedora 42 to 45 banner

The Wi-Fi Driver I Didn't Need: Fixing RTL8822BU and Upgrading Fedora 42 to 45

Linux4 min read1 view

Fedora installs new kernels automatically. Every time I logged into a new one, I had no Wi-Fi. So on 2025-11-13 I locked the system out of new kernels: pinned at 6.15.10 with dnf versionlock and exclude=kernel* in /etc/dnf/dnf.conf.

I figured Fedora just didn't support this USB adapter, otherwise why would I need a downloaded driver at all? So I'd searched around and tried several. One of them worked on that version. My home folder filled up with driver folders, and after a while I had no idea which one was actually in use. Installing them on newer Fedora just failed.

Last week I finally untangled it (working through it with Claude Code). Turns out the kernel has its own driver for this chip, rtw88_8822bu, and it was already a good one by the time I locked my system. My old workaround was hiding it, and that's what broke every new kernel.

What I Actually Had#

  • Adapter: TP-Link Archer T4U v3, USB ID 2357:0115, Realtek RTL8822BU chip. My old notes said RTL8812AU. They were wrong.
  • Driver in use: 88x2bu v5.13.1 from morrownr/88x2bu-20210702, built with DKMS.
  • Also lying around: cilynx/rtl88x2bu (older, 5.8.7.1) and aircrack-ng/rtl8812au, which is for a different chip and could never have worked.

Linux has had an in-kernel driver for this chip, rtw88_8822bu, since kernel 6.2. The README of the very driver I was using says the in-kernel one is of good quality as of 6.12 and that its own driver is no longer needed.

Why Every New Kernel Broke Wi-Fi#

All of it was self-inflicted:

  1. /etc/modprobe.d/88x2bu.conf blacklisted rtw88_8822bu, the driver that would have just worked.
  2. /etc/dracut.conf.d/wifi.conf forced 88x2bu into every initramfs, so initramfs creation failed on 6.17, where 88x2bu was missing.
  3. /boot ran out of space ("No space left on device") while building the 6.17 initramfs images.

Switching to the In-Kernel Driver#

A blacklist only blocks auto-loading, not loading by name, so you can test without a reboot:

sudo modprobe -r 88x2bu
sudo modprobe rtw88_8822bu

Then no networks showed up. wpa_supplicant had fallen back to the old wext interface (SIOCSIWSCAN: Inappropriate ioctl for device). Restarting wpa_supplicant fixed it.

To make it permanent I moved the blacklist, the dracut rule, a leftover modules-load entry and the 88x2bu module into a backup folder, then ran depmod and dracut -f. After a reboot, Wi-Fi came up on rtw88_8822bu by itself.

One more thing tied me to 6.15.10: a hand-installed kmod-nvidia built only for that kernel. I switched to akmod-nvidia from RPM Fusion, which rebuilds for every new kernel.

Getting Off 6.15.10#

  • Corrupted download, not a bad package. The kernel update failed with "Signature verification failed ... Problem occurred when opening the package". A flaky mirror had served a broken file. Re-downloaded, it verified fine with the Fedora key. Fix: dnf clean packages, retry. Meanwhile akmod-nvidia had already pulled in kernel-core 6.19.14 without kernel-modules, so I didn't boot it until the update finished.
  • GitHub CLI key. The GitHub CLI package failed with "Import of the key didn't help, wrong key?". GitHub rotated its signing key in 2026, the old key expired on 2026-09-05, and my repo file still pulled the old one from the Ubuntu keyserver. Fix: point the repo at https://cli.github.com/packages/githubcli-archive-keyring.asc and import it.

After that, kernel 6.19.14 booted on Fedora 42 with Wi-Fi and NVIDIA working.

42 → 44 → 45#

dnf system-upgrade can skip at most one release, so it took two hops.

Before starting: my EFI partition is only 96 MB (shared with Windows and HP firmware) and had 8 MB free. I moved out an orphaned 6.17.7 kernel image that no package owned.

The Fedora 44 upgrade was 2,965 packages and a 3.8 GiB download, about 28 minutes. It came with kernel 7.3.4, and the NVIDIA driver jumped from the 580 series to 620. Along the way:

  • The download isn't the upgrade. I rebooted normally after the download and was still on Fedora 42. The upgrade only runs after dnf5 offline reboot.
  • Wi-Fi "unavailable" on Fedora 45. Not the driver this time: the Wi-Fi radio was switched off. nmcli radio wifi on fixed it.
  • /boot again. 974 MB with only 129 MB free and three kernels at about 190 MB each, so the next kernel update would have failed again. I removed the oldest kernel and set installonly_limit=2. 324 MB free after.

End state: Fedora 45, kernel 7.3.6, NVIDIA 620.73.04, Wi-Fi on the in-kernel rtw88_8822bu. All the old driver folders and backups are deleted.

Mostly it's relief. I'd built a cage around my own system just to dodge automatic updates, because updates meant broken Wi-Fi and forced rollbacks, every fucking time. Now I'm out of it.

Six Snags, Six Fixes#

SymptomCauseFix
No networks after switching driverwpa_supplicant fell back to wextsystemctl restart wpa_supplicant
"Signature verification failed" on the kernel updateCorrupted download from a flaky mirrordnf clean packages, retry
GitHub CLI: "wrong key?"GitHub rotated its signing key in 2026Repo key from cli.github.com
Still on Fedora 42 after rebootSkipped the offline reboot stepdnf5 offline reboot
Wi-Fi "unavailable" on 45Radio switched offnmcli radio wifi on
/boot down to 129 MB free3 kernels at ~190 MB eachKeep 2: installonly_limit=2

Lessons#

  • For RTL8822BU on kernel 6.12+, use the in-kernel rtw88_8822bu. No DKMS driver.
  • Never blacklist the in-kernel driver or force an out-of-tree module into dracut. It breaks every future kernel.
  • Check /boot and /boot/efi free space before kernel and release upgrades.

Before you lock your kernel over a driver, check whether the kernel already has one. Mine had a good one the whole year I was locked.

What's the oldest workaround still living in your /etc?

All posts

Delete this comment?

It will be removed for everyone. This can't be undone.

Community

Comments

Join the conversation.