Ethernet does not resume after suspend.
sudo service network-manager restart
does not work. Only restart solves problem.
18.04ethernetnetwork-managernetworking
Ethernet does not resume after suspend.
sudo service network-manager restart
does not work. Only restart solves problem.
Best Answer
The main Ubuntu bug tracking this issue, at least for network kernel module r8169, seems to be:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1752772
I'd encourage everyone that is affected by this issue to go there and mark that it affects you, so that the maintainers have a better sense of how serious it is.
I'm running a fresh install of Xubuntu 18.04, and my Ethernet interface uses kernel module r8169, which I discovered running:
There'll be 2 groups of info, one starting with
description: Ethernet interface
, and another withdescription: Wireless interface
. Underdescription: Ethernet interface
, look for a line starting withconfiguration:
, like this:The driver will be here:
driver=
.Systemd runs all executable scripts under
/lib/systemd/system-sleep
before and after suspend, passing 2 parameters,$1
is the state (pre
, before suspend, orpost
, after suspend), and$2
is the action (suspend
,hibernate
,hybrid-state
, orsuspend-then-hibernate
). This is documented in the man page forsystemd-suspend.service
.We need to reload the module for the Ethernet interface when resuming from suspend, after suspend. So I created script
/lib/systemd/system-sleep/r8169-refresh
:and made it executable:
The messages logged from the script will go to
/var/log/syslog
tagged with the name of the script and its PID. This way you can check whether the script reloaded the kernel module: