1

My wifi randomly disconnects & doesn't reconnect, I tried turning it off and then on again but that makes it worse and the network names are even no longer visible.

I've tried all the solutions on every similar question I could find

Wifi networks are not showing in Ubuntu
WiFi randomly? disconnects until reboot on Ubuntu
WiFi randomly disconnected on Ubuntu

sudo systemctl restart systemd-networkd
sudo service NetworkManager restart

but absolutely nothing seems to work & I'm beyond frustrated,
is there any way to hard rest the wifi without having to restart my computer?

I had a similar problem with my bluetooth so I used this solution by AndreGraveler in the comments
So is there any similar solution for wifi?

1 Answers1

0

This is my first answer in this forum. Please bear with me if I'm not doing anything correctly.

I had a similar problem and was able to do a bit of debugging and figure out that the problem was with the driver. I will outline the steps to reset the driver below. And hope it works for you.

  1. Install hwinfo if you don't already have it sudo apt-get install hwinfo
  2. Find the driver name sudo hwinfo --network | grep Driver
  3. In case if you get multiple results pick the one which looks like the wifi driver. (Ex: iwlwifi)
  4. Look for any other deps on this driver sudo lsmod | grep iwlwifi. You should see something like the following. Which would mean iwlmvm uses the driver.
iwlwifi               446464  1 iwlmvm
cfg80211              970752  3 iwlmvm,iwlwifi,mac80211
  1. Use the following commands to remove and and add the modules (order is probably important as well)
sudo modprobe -r iwlmvm
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi
sudo modprobe iwlmvm

After this you should start seeing the networks again.

  1. For long term use. Create a shell script with all the commands used in the step 5. And every time you run into this issue you can just run the script