Tag Archives: WOL

Wake-on-LAN (WOL)


First query the driver to see if it’s defaulted to ‘on’ by using ethtool:
ethtool eth0 | grep Wake-on

To enable the wol feature in the driver, simply run the following:
ethtool -s eth0 wol g

This command does not last beyond the next reboot.

Keep WOL persistent over restarts adding command to following startup script:

ethtool -s eth0 wol g

Test WOL from another computer:
etherwake -i eth0 6c:f0:49:7a:52:10

Sleep computer from CLI:

In some cases ethtool eth0 shows “Wake-on: g“, but after second suspending of the machine, if magic packet is received, suspend is disabled “Wake-on: d” and doesn’t work anymore.

In my case, I have accidentaly installed laptop-mode-tools on my desktop, so running apt-get purge laptop-mode-tools solved my WOL disabling problem.