A couple of automated work-arounds follows, depending on which version
of the Ubuntu core you are using.
==========================================
BEFORE systemd (earlier than Ubuntu 15.04)
==========================================
Create the following executable Bourne shell script in /etc/pm/sleep.d:
MYNAME=`basename`
restart_ethernet() {
/usr/bin/logger $MYNAME 'restart_ethernet(r8169) BEGIN'
/sbin/modprobe -v -r r8169
/sbin/modprobe -v r8169
/usr/bin/logger $MYNAME 'restart_ethernet(r8169) END'
}
/usr/bin/logger $MYNAME 'case=[' ${1} ']'
case "${1}" in
hibernate|suspend) ;;
resume|thaw) restart_ethernet;;
esac
=====================================
WITH systemd (Ubuntu 15.04 and later)
=====================================
1. Create executable Bourne shell script, /usr/local/bin/resume_r8169.sh:
MYNAME=`basename`
/usr/bin/logger $MYNAME 'restart_ethernet(r8169) BEGIN'
modprobe -v -r r8169
modprobe -v r8169
/usr/bin/logger $MYNAME 'restart_ethernet(r8169) END'
2. In /etc/systemd/system, create resume_r8169.service that looks like this:
[Unit]
Description=Work-around r8169 inability to resume service after suspend
After=suspend.target
[Service]
User=root
Type=oneshot
ExecStart=/bin/sh -c /usr/local/bin/resume_r8169.sh
TimeoutSec=0
StandardOutput=syslog
[Install]
WantedBy=suspend.target
3. sudo systemctl enable /etc/systemd/system/resume_r8169.service
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/771857
Title:
Realtek 8168B (r8169) interface not working following suspend
To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/771857/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs