← Back to team overview

desktop-packages team mailing list archive

[Bug 1498692] Re: Network Manager wired Ethernet stuck in "getting IP config" after resume from suspend

 

Note that /etc/pm/sleep.d is no longer in use as of 15.04.  We are now
managing services with systemd.

                                   Then, why is /etc/pm/* still
populated?  (=:

I did finally create an automated work-around the issue by creating a
local systemd service which restarts Ethernet based on the r8169 kernel
module.  I included some debug logging in syslog.

ls -l /opt/pm-helper
total 8
-rwxrwxr-x 1 elkins elkins 311 Sep 23 11:32 pm-helper.sh
-rw-r--r-- 1 elkins elkins 172 Sep 23 11:34 resume.service

~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pm-helper/resume.service
~~~~~~~~~~~~~~~~~~~~~~~~~

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=simple
ExecStart=-/opt/pm-helper/pm-helper.sh resume

[Install]
WantedBy=suspend.target

~~~~~~~~~~~~~~~~~~~~~~~
/opt/pm-helper/pm_helper.sh
~~~~~~~~~~~~~~~~~~~~~~~

#!/bin/sh

restart_ethernet() {
	/usr/bin/logger --id=$$ -t texadactyl 'pm-helper restarting Ethernet'
	/sbin/modprobe -v -r r8169
	/sbin/modprobe -v    r8169
}

/usr/bin/logger --id=$$ -t texadactyl 'pm-helper case=[' ${1} ']'
case "${1}" in
	hibernate|suspend) ;;
	resume|thaw)       restart_ethernet;;
esac

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1498692

Title:
  Network Manager wired Ethernet stuck in "getting IP config" after
  resume from suspend

Status in network-manager package in Ubuntu:
  New

Bug description:
  Stopping and starting the Network Manager did not work-around this
  issue.  Only a reboot or power off+on gets wired Ethernet back into
  service.

  Note: I did not try hibernate nor using wireless.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: network-manager 1.0.4-0ubuntu3
  ProcVersionSignature: Ubuntu 4.2.0-10.12-generic 4.2.0
  Uname: Linux 4.2.0-10-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.18.1-0ubuntu1
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Tue Sep 22 18:01:37 2015
  IfupdownConfig:
   # interfaces(5) file used by ifup(8) and ifdown(8)
   auto lo
   iface lo inet loopback
  InstallationDate: Installed on 2015-09-18 (4 days ago)
  InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150825)
  IpRoute:
   default via 192.168.1.1 dev enp9s0  proto static  metric 100 
   169.254.0.0/16 dev enp9s0  scope link  metric 1000 
   192.168.1.0/24 dev enp9s0  proto kernel  scope link  src 192.168.1.208  metric 100
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
   WimaxEnabled=true
  SourcePackage: network-manager
  UpgradeStatus: No upgrade log present (probably fresh install)
  nmcli-con:
   NAME       UUID                                  TYPE            TIMESTAMP   TIMESTAMP-REAL                   AUTOCONNECT  AUTOCONNECT-PRIORITY  READONLY  DBUS-PATH                                   ACTIVE  DEVICE  STATE      ACTIVE-PATH                                        
   Ethernet1  f55e2077-9eef-4e83-916f-a0f3a5a52d05  802-3-ethernet  1442962748  Tue 22 Sep 2015 05:59:08 PM CDT  yes          0                     no        /org/freedesktop/NetworkManager/Settings/0  yes     enp9s0  activated  /org/freedesktop/NetworkManager/ActiveConnection/0
  nmcli-dev:
   DEVICE  TYPE      STATE        DBUS-PATH                                  CONNECTION  CON-UUID                              CON-PATH                                           
   enp9s0  ethernet  connected    /org/freedesktop/NetworkManager/Devices/0  Ethernet1   f55e2077-9eef-4e83-916f-a0f3a5a52d05  /org/freedesktop/NetworkManager/ActiveConnection/0 
   wlp8s0  wifi      unavailable  /org/freedesktop/NetworkManager/Devices/2  --          --                                    --                                                 
   lo      loopback  unmanaged    /org/freedesktop/NetworkManager/Devices/1  --          --                                    --
  nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1498692/+subscriptions


References