Problems with networking after suspend [closed]

I have some problems on my Asus notebook since I upgraded to Ubuntu 13.10:

  • Networking (wifi and lan) won't work after resume from suspend. I've seen many posts about this but they wouldn't work for me (adding iwlwifi to the list of loaded modules).

I couldn't find anything on that problem, and I don’t know where to look at to solve that. Is there any information I can add?


Solution 1:

Sounds like bug #1234469: Network does not come up after resuming from suspend.

The workaround is to run:

sudo nmcli nm sleep false

This workaround uses the nmcli to change the sleep state of the nm.

nmcli is the Network Manager command-line interface
nm is the Network Manager

Solution 2:

That workaround did not work for me. However this worked:

I have still no solution but I have found a workaround:

Create a new shellscript named hibernate.sh. Open it with gedit and paste the following code:

gnome-screensaver-command -l dbus-send --system --print-reply \
    --dest="org.freedesktop.UPower" \
    /org/freedesktop/UPower \
    org.freedesktop.UPower.Suspend

Save it and make it executable. If you want you can create a .desktop file for it. When you run this script it will send your pc into hibernate-mode including the lockscreen. When you wake your pc now networking works. When you use sleep-mode or hibernate-mode the normal way it doesn't.

Thanks to Christopher Paul over here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1212199

Note that you'll need to restart your system once after that (if your network was out due to a suspend when you did the script). Then it works fine.

Also note this script sends your pc to suspend, not to hibernate (the name could be confusing).