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?

5 Answers5

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)

ge32
  • 319
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.

muru
  • 207,228
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.

user311982
  • 1,295
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"

Don
  • 11
-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

muru
  • 207,228
maumau
  • 1