WakeMyPotato is a systemd service that enables old laptops without Wake-On-Lan to power on automatically after outages. It schedules rtcwake calls, safely powers down drives, and ensures reliable booting when power returns, making it a practical solution for repurposing aging hardware.
WakeMyPotato (WMP) is a straightforward yet effective systemd service designed specifically for aging Linux laptops that may face challenges during power outages. This utility aims to provide a solution for machines that lack Wake-On-Lan (WOL) support or automatic BIOS boot timers, offering users a way to keep their old devices operational even in times of power failure.
In essence, WakeMyPotato configures automatic rtcwake
commands to manage system power efficiently. When AC power is lost, the service ensures safe shutdown procedures, including power-off measures for RAID HDDs if present, preventing mechanical wear. Upon restoration of power, WMP attempts to boot the system automatically after a predetermined waiting period, which can be configured by the user. While the default wait time is set to 600 seconds (10 minutes), this can be adjusted according to specific needs.
Key Features:
- Automatically prepares the system for power disruptions with safe shutdown protocols.
- Attempts to revive the system post power restoration without the need for manual intervention.
- Last-resort option for devices lacking WOL or automatic BIOS waking capabilities.
Usage Commands:
The service provides a user-friendly command interface, allowing for a range of functionalities. Below are some of the key commands available:
Command | Description |
---|---|
sudo wmp help | Lists all available commands |
sudo wmp version | Displays the software version |
sudo wmp status | Checks the current service status |
sudo wmp log | Views recent warning logs |
sudo wmp set <seconds> | Adjusts configuration settings |
sudo wmp run <seconds> | Executes a manual check |
sudo wmp stop | Stops the service |
sudo wmp start | Initiates the service |
sudo wmp uninstall | Removes the service |
In summary, WakeMyPotato serves as a valuable tool for repurposing older laptop hardware into functional home servers, ensuring they remain operational and ready for use after power interruptions.
No comments yet.
Sign in to be the first to comment.