Comment 110 for bug 160413

Revision history for this message
In , bonbons (bonbons-linux-kernel-bugs) wrote :

Lucas:
- patch from comment #54 makes no visible change for me
- distro is Gentoo, just before powering down eth0 is DOWN
  (checked with ip link list && sleep just before powering down)

With patch (not done as in-depth checks without the patch):
- ethtool -s eth0 wol d && ethtool -s eth0 wol g
  Required to get WoL working without pulling the plug
- acpitool
  Required in all cases
- enabled > /sys/.../power/wakeup
  Required to get WoL working without pulling the plug

So for S3 I need all of them, for S5 (power-down) I also need all of them unless I pull the plug before attempting WoL.

The most annoying part is the ethtool hack: I need to disable and re-enable WoL for it to work!
The wakeup part should be done by driver automatically if WoL is enabled
The acpi part is possibly more tricky... don't know how easy/difficult it's to automatically find out what exactly has to be selected there...