Ubuntu 13.10 - Wifi not re-connecting after suspend [duplicate]

Solution 1:

The answer above solves the problem in a one off fashion, but these steps solved the longterm issue for me:

sudo touch /etc/pm/sleep.d/wakenet.sh

sudo chmod +x /etc/pm/sleep.d/wakenet.sh

sudo gedit /etc/pm/sleep.d/wakenet.sh

Insert the following lines:

#!/bin/bash
case "$1" in
thaw|resume)
nmcli nm sleep false
;;
*)
;;
esac
exit $?

And then save.

Solution found here

Solution 2:

Workaround:

Try restarting the network manager to start wifi again:

sudo service network-manager restart

Update:

https://askubuntu.com/a/362148/175489

Much better workaround:

sudo nmcli nm sleep false

Solution 3:

Please do:

sudo gedit /etc/pm/config.d/config

A new empty file will open. Add one line:

SUSPEND_MODULES="rtl8192ce" 

Of course, substitute your actual driver in place of rtl8192ce. Proofread, save and close gedit. Reboot

If you do not know the name of your wireless driver run this command:

lspci -nnk | grep -iA2 net

it will tell you the device name for wireless and ethernet along with the driver being used for each.

Edit: This second method will most likely work if the first one does not:

sudo touch /etc/pm/sleep.d/wakenet.sh

sudo chmod +x /etc/pm/sleep.d/wakenet.sh

sudo gedit /etc/pm/sleep.d/wakenet.sh

Insert the following lines:

#!/bin/bash
case "$1" in
thaw|resume)
nmcli nm sleep false
;;
*)
;;
esac
exit $?
Save

This answer was found on the forum