Skip to content

Wake-on-LAN

If your computer supports Wake-on-LAN (WOL), you can send a “magic packet” to wake it from a powered-down state. This is primarily supported on Ethernet connections.


  1. Find the name of your Ethernet adapter. Look for names starting with e (e.g., eth0 or enp3s0).

    Terminal window
    ip link show
  2. Install the utility required to manage network hardware settings.

    Terminal window
    sudo apt update && sudo apt install ethtool -y
  3. Verify if your hardware supports the magic packet. Look for g in the “Supports Wake-on” line.

    Terminal window
    sudo ethtool $INTERFACE_NAME
  4. Enable WOL manually to test the configuration. This setting will reset after a reboot.

    Terminal window
    sudo ethtool -s $INTERFACE_NAME wol g
  5. Create a service to ensure WOL is re-enabled automatically on every boot.

    /etc/systemd/system/wol.service
    [Unit]
    Description=Enable Wake On Lan
    [Service]
    Type=oneshot
    ExecStart=/usr/sbin/ethtool -s $INTERFACE_NAME wol g
    [Install]
    WantedBy=basic.target
  6. Reload systemd and enable the new service.

    Terminal window
    sudo systemctl daemon-reload && sudo systemctl enable wol.service
  7. From another device on the network, trigger the boot sequence using the target’s MAC address.

    Terminal window
    wakeonlan $MAC_ADDRESS