Comment 102 for bug 1286552

Revision history for this message
Joe Aztec (aztecjoe) wrote :

The issue started recently (early November 2014). I had been running 14.04 since July without this issue. So an automatic update has infected my setup since early November.

The work around was to create the file 04_bug_network_manager_restart in directory /etc/pm/sleep.d. See terminal listing and script contents below. Its a pain but at least it hides the issue. Hopefully someone at Canonical will resolve the issue sometime soon.

$ ls -la /etc/pm/sleep.d/04_bug_network_manager_restart
-rwxr-xr-x 1 root root 334 Dec 12 22:12 /etc/pm/sleep.d/04_bug_network_manager_restart

$ cat /etc/pm/sleep.d/04_bug_network_manager_restart
#! /bin/sh
#
# after suspend restart network-manager
# http://askubuntu.com/questions/450688/network-connection-error-after-suspend-ubuntu-14-04
#

case "$1" in
 suspend)
 echo "do nothing"
  ;;

 hibernate)
 echo "do nothing"
  ;;

 resume)
 echo "network-manager restart"
 service network-manager restart
 ;;

 *) exit $NA
 ;;
esac