
The $name placeholder will be replaced by the value of the NAME variable for the matched device.Ī command can be run each time the computer is (re)booted using in a crontab. etc/udev/rules.d/ les ACTION="add", SUBSYSTEM="net", NAME="enp*", RUN+="/usr/bin/ethtool -s $name wol g" Otherwise, NAME would be undefined and the rule would not run. The file name is important and must start with a number between 81 and 99 so that it runs after les, which renames interfaces with predictable names. The following rule will turn on WOL on all network interfaces whose name matches enp*.

Udev is capable of running any command as soon as a device is visible. This is an equivalent of previous systemd.link option, but uses a standalone systemd Īlternatively install the wol-systemd AUR package, then activate this new service by starting rvice.


Look for terminology such as "PCI Power up", "Allow PCI wake up event" or "Boot from PCI/PCI-E". Different motherboard manufacturers use slightly different language for this feature. The Wake-on-LAN feature also has to be enabled in the computer's BIOS. Some wireless cards have support for Wake on Wireless (WoWLAN or WoW). The target computer has to be physically connected (with a cable) to a router or to the source computer for WoL to work properly. The target computer's motherboard and Network Interface Controller have to support Wake-on-LAN. 5.1.1 Network adapter is still powered off on shutdown.4.1 Check reception of the magic packets.
