Wake-up / shutdown (linux)

How to configure power buton, wake-on-lan and autoshutdown.

# Power Buton

Within SystemD in /etc/systemd/logind.conf

HandlePowerKey=poweroff

sudo service systemd-logind restart

# Wake-On-Lan

pi 5 now has bin/wake_up tronaut script

# CLI

wakeonlan MAC Address

Get MAC Address with

  • ip link show
  • or cat /sys/class/net/ens1f0/address or

# Scheduling

# Scheduled Shutdown

see Execute Task periodically

# Run script after wakeup?

Written on April 27, 2019, Last update on March 1, 2026
linux-system power watchdog network systemd automation