PitchHut logo
WakeMyPotato
Revive your aging laptop with intelligent power management.
Pitch

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.

Description

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:

CommandDescription
sudo wmp helpLists all available commands
sudo wmp versionDisplays the software version
sudo wmp statusChecks the current service status
sudo wmp logViews recent warning logs
sudo wmp set <seconds>Adjusts configuration settings
sudo wmp run <seconds>Executes a manual check
sudo wmp stopStops the service
sudo wmp startInitiates the service
sudo wmp uninstallRemoves 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.

0 comments

No comments yet.

Sign in to be the first to comment.