9

I upgraded the other day from Ubuntu 13.04 to 13.10 on my ZaReason laptop, and the WiFi doesn't reconnect after suspend.

In 13.04, pressing Fn+F2 turned network connections back on after suspend. The 'soft' wireless hardware switch.

But in 13.10, that doesn't work, and trying to enable networking in the networking menu doesn't work either. So I have to restart every time.

Any suggestions to make it work?

Matthew
  • 91

3 Answers3

8

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

mrm
  • 452
  • 3
  • 13
5

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
malisokan
  • 1,007
  • 1
  • 13
  • 23
2

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

Wild Man
  • 8,187
  • 4
  • 34
  • 44
  • It works, but I still have to press Fn+F2 after I enable networking for the WiFi to come on. That's fine though, I've had to do that with 13.04 as well. – Matthew Oct 31 '13 at 04:36