Comment 107 for bug 160413

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

For me WOL seems to work pretty well with 2.6.27-rc6.

Now WOL works in the following scenarios:
- S3 - suspend to ram
- S5 - shutdown
- S5 - shutdown with power disconnected

What I'm doing on system startup:

ethtool -s eth0 wol d > /dev/null && \
  ethtool -s eth0 wol g > /dev/null

acpitool -w | grep 'P2PB.*enabled' > /dev/null || \
  acpitool -W 7 > /dev/null

echo enabled > "/sys/bus/pci/devices/0000:02:08.0/power/wakeup"

PS: see comments 30 and 32 for my hardware

Tomorrow or this week-end I will check which of those I may omit to keep WOL working on the above scenarios.
The last step (echo enabled > /sys/...) is new since 2.6.27 and might be alone it's sufficient. If that's the case, it would be nice if the driver could do this by itself when WOL is active