Ubuntu Wifi disconnected after sleep. This is how I fixed this problem.
I got a Thinkpad and I thought I switched off the Wifi. The right side of the laptop has a switch to turn the Wifi on and off.
That didn't work.
I went to the settings and I disabled/enabled the Wifi.
That didn't work.
I saw a great solution here.
Assemble the minions
Open the terminal and run this:
sudo systemctl restart network-manager.service
Let this witchcraft take effect.
If that didn't work. You can try one of these solutions:
Check if this file has the setting
managed to false
$ cat /etc/NetworkManager/NetworkManager.conf
The output could be:
[main] plugins=ifupdown,keyfile,ofono dns=dnsmasq [ifupdown] managed=false
$ sudo vim /etc/NetworkManager/NetworkManager.conf
sudo service network-manager restart
Follow this thread for another solution.
This thread describes the problem when trying to connect to wifi, it would ask for the password over and over again.
It also describes the problem when trying to connect to wifi via an ad-hoc network.
The thread goes into several infinite rabbit holes. If you have a definite solution please add a comment below.
Ubuntu official documentation
This is the official documentation about Ubuntu - wireless network disconnecting.
It shows 4 basic "solutions". Although I would call them more: riddles for you to figure it out:
- Weak wireless signal
- Network connection not being established properly
- Unreliable wireless drivers
- Busy wireless networks
Not great solutions but I would say: information to think about why your Ubuntu wireless network keeps disconnecting.
There is also the Ubuntu wireless network troubleshooter.
And the official documentation to connect to a wireless network in Ubuntu.