Wireless Adapter Driver with DKMS always fails on new kernel
Hello,
I've been running my workstation with a wireless adapter RTL871X that needs an external driver (currently using this one). Once the driver is built/installed with dkms everything works well.
The problem occurs when I upgrade the kernel via normal dnf upgrade
. I observe DKMS attempting to rebuild the module, but when my computer reboots it shows that the version magic is incorrect:
[ 5.562719] 8814au: version magic '5.0.6-200.fc29.x86_64 SMP mod_unload ' should be '5.0.7-200.fc29.x86_64 SMP mod_unload '
The only way to get wifi working again is to uninstall/reinstall the module using dkms. I've put this in a script on my home directory called fixwifi.sh
, but obviously this is not the correct solution.
For completeness, here's my script:
#!/usr/bin/env bash
sudo dkms uninstall -m rtl8814au -v 4.3.21
sudo dkms install -m rtl8814au -v 4.3.21
This has been happening for months now, and doesn't seem to be tied to a specific Fedora version. From what I can ascertain the new module is being built with the old kernel sources. How do I fix this so my wifi works after a new kernel upgrade without this hacky workaround?
Well, it was an accepted problem, but it is said to have been fixed and closed. Maybe it is a regression.
dkms modules not built automatically for Fedora update or upgrade
That issue seems like it's related to the RPM package. I think the symptoms are similar but it sounds like a different issue.
This may be the same issue: https://askubuntu.com/questions/799108 I'll try this and report back with a self-answered question if this fixes the issue.