16

I'm using ubuntu 14.04 and a DSL connection for internet. However, whenever I suspend and resume my session, I'm no longer able to connect to the internet. Could someone help me fix this?

2
  • 1
    Same with me. After stand-by network connections won't work. Tried to reactivate the connection via "cable connections" - no effect. Tried to re-sign-in into desktop - no effect. Only complete restart helps to establish connectivity. Kernel 3.13.0.24-generic Thanks for hints!
    – user271998
    Apr 21, 2014 at 15:09
  • You might like to see if nmcli nm sleep false works better, as per: Wireless networking not working after resume in Ubuntu 14.04
    – mexisme
    Jun 8, 2014 at 5:44

5 Answers 5

20

Robbin's answer fixes it for me. To have this run every time the system wakes create a script with this content...

#!/bin/sh

case "${1}" in
    resume|thaw)
        service network-manager restart;;
esac

and put the script in /etc/pm/sleep.d and make it executable. (The script is a slight variation of the one on this page)

5
15

I have been successful in bringing up the network by restarting networkmanager 100% of the times.

in a terminal:

$ sudo restart network-manager

Have not have time to check in to the issue more closely.

2

I just turn off my wifi using the keyboard combination Fn + F2 and then turn it back on the same way (may be different for your computer). This restores my connection. Give it a try and see if that helps.

1
  • Yeah, this works for me too. Hardly an idea solution though, right? I find I can also right click on Network Manager to disable, then re-enable WIFI. Pretty tedious, but it does the job.
    – Scaine
    Mar 30, 2015 at 12:37
1

I was able to recover the wifi after suspend by disabling the requirement for a password after suspend. This can be accomplished by unchecking the box in "Settings/Brightness&Lock"

-6

On a desktop running kubuntu 14.04 without wireless but having one nic with two vlans, static configuration in /etc/network/interfaces, none of all your suggestions helped. This did the trick, no undesired sideeffects:

aptitude purge network-manager

and accepting the removal of plasma-nm; now it works like a charm; apt-get purge ... should do the same

3
  • And how do you want to control your network connections without NM? A reinstallation of network-manager may be helpful...
    – s3lph
    Sep 2, 2014 at 18:46
  • This is a well working solution for maybe a special situation, a desktop with a static net config; it may not be the best one for say a laptop with roaming, dhcp and wireless. What do you mean by "control your network connections"? I just want to control my servers and the office from this admin box.
    – maumau
    Sep 2, 2014 at 22:58
  • 2
    @maumau: NetworkManager is the default system service in Ubuntu that manages and controls network connections. If you remove it, you'll have to take care of that yourself, which is a bad idea expect for very experienced users with complicated setups. Nov 7, 2014 at 22:49

Not the answer you're looking for? Browse other questions tagged .