Ubuntu – Network connection error after suspend Ubuntu 14.04


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?

Best Answer

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


case "${1}" in
        service network-manager restart;;

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)