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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1498692

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to