Network connection error after suspend Ubuntu 14.04 [duplicate]

Solution 1:

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)

Solution 2:

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.

Solution 3:

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.

Solution 4:

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"