I’ve been having a problem with my WiFi not working on my laptop after it wakes up from sleep. Here’s how I fixed it:
To view the state of the WiFi connection, type
nmcli nm in a terminal:
$ nmcli nm
RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running asleep enabled enabled enabled enabled
Notice that the
asleep. To fix that, set sleep to false:
sudo nmcli nm sleep false
Since it happens occasionally, I made an alias in my .bashrc file that looks like this:
alias fixwifi='sudo nmcli nm sleep false'
You can then use the
fixwifi command to wake up the WiFi if it shuts off on you later. I still don’t know why it happens, but this is what works for me on Ubuntu 14.04.