31

Since I upgraded to Saucy Salamander 13.10, with every third suspend or so, the network is disabled and I'm unable to re-enable it. I've had to reboot to make it run again.

The network menu will have the option Enable network but clicking it will only produce a tick in the menu item, nothing else changes.

  1. How can I make it enable automatically after suspend?
  2. In the meantime, is there a workaround to at least manually re-enable it?

The PC is a Lenovo IdeaPad S205 using drivers r8169 and rt2800pci.

Braiam
  • 69,112
Arild
  • 455

2 Answers2

25

Use:

sudo touch /etc/pm/sleep.d/network-manager-resume
sudo chmod +x /etc/pm/sleep.d/network-manager-resume
sudo nano /etc/pm/sleep.d/network-manager-resume

Paste the following and save the file. This brings NetworkManager out of suspend mode:

#!/bin/sh

# This script gets NetworkManager out of suspend.
case $1 in
     suspend|suspend_hybrid|hibernate)
    # No need to do anything here.
        ;;
     resume|thaw)
    nmcli nm sleep false
        ;;
esac

Source: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1184262/comments/23

asdfadsf
  • 251
19

I have the same issue. Looks like it's related to power management that does not wake network-manager. After resuming, you can open a terminal and type:

sudo service network-manager restart

It should bring up the network.

fbab
  • 191