[SOLVED] Wifi adapter suddenly stopped working after 1 year
//Solution:
I installed this driver (https://github.com/morrownr/8821au-20210708).
The driver however, did not work until I ran a script called remove-driver.sh
from the driver that I used to use (https://github.com/morrownr/8821cu-20210916). Then the wifi adapter started working again :)
Thanks a lot for the help - I am still not really sure what the problem actually was, but I'm very thankful for having my internet connection back :)
//Original post below:
Hey :)
I've been using a wifi adapter for my computer for about a year. A few days ago, it suddenly stopped working. It no longer shows up when I run 'nmcli device' in the terminal. When running 'lsusb' it still shows up as 'Realtek Semiconductor Corp. 802.11ac NIC'.
To my knowledge I hadn't updated anything before it stopped working. After it had stopped working, I used usb-tethering from my phone to do a system update, hoping it would fix the problem. I think one of the updates was a linux firmware update. Anyways, it didn't fix anything.
The adapter didn't work out of the box. It arrived with a driver called 'RTL88x2BU' and a document stating that it was compatible with the following chip drivers for linux: RTL8811AU RTL8811CU RTL8812BU RTL8814AU
I couldn't get the driver it arrived with to work, so instead I downloaded this driver and have been using it until it stopped working. https://github.com/morrownr/8821cu-20210916
this driver only states that it supports some linux kernel version. I'm using '6.8.0-40-generic', which it does not claim to suppport. I download this driver, which should support my kernel, but it didn̈́'t work either. https://github.com/morrownr/8821au-20210708
I've tried running lsmod on my system, and it seems to be, that no wifi driver even starts. The only thing I can remember doing just prior to my internet not working, was running 'systemctl disable jellyfin.service'. I doubt that has anything to do with this, but I'm not sure what else it could be. My only other theory is, maybe the usb wifi adapter hardware just gave up.
Any help is appreciated ^^
A few things to start. We need to know more about how things are currently.
lspci -vv
That will give us what modules are being used by what devices along with a bunch of other information.
lsusb -v
That will give us some info about your USB layout, drivers, and so on.
We also need to know what distro you are using, kernel version, and for the distro what exact version, so if Ubuntu is it LTS, current, 23.04, etc.
That should be a good start, after that we can see where we are at and what next steps are.
I'm running Ubuntu 22.04.4 LTS, thanks for helping me :)
lspci -vv gives information about the following results, I don't think the wifi adapter is among them
lsusb -v gives
Do you even
dmesg
bro?dmesg gives me 942 lines - is there anything specific I should be looking for or share here ?
If it's an usb device, you can remove it and plug it in again and look at the 'new' lines at the end of the
dmesg
output.Thanks :))
I get, all in green text
So,
dmesg
doesn't show any errors. Thus the device seems not to be physically damaged. But I also don't see that any driver is loaded.I know the issue has be fixed but this is something you (or others) might want to consider.
If you have a desktop computer you can get a "wireless access point" which you can connect to your desktop using an ethernet cable then connect the AP to your WiFi network.
This negates the need to find an adapter that supports Linux and having to install drivers to make an adapter work.
With an AP the computer only sees an ethernet connection and as the AP is separate to your computer you can position it where it gets the best reception (there are even access points from the likes of TP-Link and others that can use POE (power over ethernet) so you can run just one cable).
that's a good idea - it certainly would have saved me from a lot of work :)
Wireless access points are really versatile and can be used is a number of ways.
I recently upgraded from an all in one WiFi router to a wired only router (I have fibre) which is then connected to my desktop using ethernet and I have a UFO style access point on the ceiling connected using ethernet and powered by POE.
If I need to upgrade the WiFi at a later date I don't have to redo my entire network setup.
Are the networking service and network manager up and running?
systemctl status networking
systemctl status network-manager
What does
rfkill list wifi
show?'systemctl status networking' gives
'systemctl status network-manager' gives
'rfkill list wifi' gives nothing
//edit:
'systemctl status NetworkManager' gives
I can't find any alternative names for 'networking'.
ip link show
should list all available interfaces. If the wifi card isn't there, then it's not initialised after all.it does not show up from
ip link show
.what does it mean, that it is not initialised ?
//EDIT:
I ran a script called
remove-driver.sh
from the driver that I used to use (https://github.com/morrownr/8821cu-20210916) and now the wifi adapter is up and running again :)Thanks a lot for the help - I'm not really sure, what was wrong, but I'm very thankful for the help :)
Was the problem, that I had a bad driver installed ?
Great!
Initialisation procedure of a new device how I've understood it yet (I'm no expert, if someone knows better, you're welcome to correct or enhance):
Once the device is attached, the system notices that there is device type xxxx:yyyy on usbx-y and loads the respective kernel module/driver which then creates a file (Unix philosophy: everything is a file) somewhere in
/dev
e.g.wlan0
(usually you can see this in thedmesg
output. In your output there was 'nothing', i.e. this didn't happen) which is used for I/O of data and tells the networking service that there is a new interface. Then, the networking service makes the interface usable for internet connection.Probably some important script was accidentally deleted. As far as I remember, you driver is managed by DKMS which takes care of compiling the module after each kernel update, so maybe some information got lost there.
thanks for the answer :)
I just tried to remove and insert the wifi adapter, and now the dmesg has a message about loading a driver :)
for some reason, it loads the old driver still. rtw_8821cu instead of rtw_8821au. I'm a tad confused, but I'm happy it's working :)
thanks a lot for the help :)
I don't know what kernel version you use, but from 6.2 the Linux kernel has this driver built-in. So maybe it doesn't use the 'newer' 3rd party 8821au-driver, as the native driver has higher priority. https://linux-hardware.org/?id=usb:0bda-c811