You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code A Software edited this page Jan 22, 2024
·
2 revisions
Wake On Lan (WOL)
WOL is a standard invented by AMD in 1995 to start computers over network via LAN.
Today almost every computer supports it, mostly it is required to enable it in the BIOS/UEFI and
preparing the operation system for it.
Usage in Home
If you have prepared your device(s) for WOL, you can easily start them via home (right click on a device in Home.WPF and click Wake up device)
It can also be used for scheduling uptime for devices.
WOL works only if the device is properly configured and if the mac address for the device is known!
Device Scheduling
To mange device scheduling click Manage rules in the menu:
In this dialog you can manage (add/edit/remove) all your defined rules.
You can define more than one rule per device.
It is possible to define a custom mac address (e.g. if the system has detected the wrong mac)
Each rule has a boot and shutdown-action:
You can set a time for each time (24h format)
If you want to deactive a rule temporary you can disable the IsActive-flag
You can specify the actions for each rule:
Boot:
Wake On Lan
External API Call (e.g. your API)
None (e.g. if you only want to restart a device)
Shutdown:
Shutdown/Restart
External API Call (e.g. your API)
Exeuce a command for this device (shell/batch)
None
How to setup WOL
Its important that the netowrk adapter still has power if the device is off, otherwise it cannot recieve the magic package!
BIOS/UEFI Settings
Ensure that Power On Device via PCI(e) is enabled
Ensure that S4/S5 Wake On LAN Setting is enabled (only on some computers)
Example screenshots:
Windows Network Adapter Settings
Make sure that Only allow a magic packet to wake the computer is enabled:
Ubuntu Configuration
sudo apt-get install ethtool
With the following command you can enable WOL to recieve the magic package:
sudo ethtool -s eth0 wol g (eth0 is your network adapter)
To enable it on every start you have to create a systemd-service (/etc/systemd/system/wol.service):
[Unit]
Description=Configure Wake-up on LAN
After=network-online.target
[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s eth0 wol g
[Install]
WantedBy=basic.target
(Also here replace eth0 with your network adapter)