LockerGnomeTech news and nostalgia for today's technology professionals
Subscribe

Search

Hardware

His Frozen Homelab Reboots From Miles Away With a Smart Plug and One BIOS Setting

Ismar Hrnjicevic wants Jellyfin to survive their trips, though yanking power during a disk write can corrupt data.

Chris kneels in a dim hallway and presses the button on an oversized smart plug as a small computer beside it lights up.
Illustration: LockerGnome

Hrnjicevic runs streaming, photo backups, work files and more on one mini PC. Tailscale gets him to those self-hosted services from outside the house, and SSH lets him restart a misbehaving Docker container from a laptop. He can even do it from a phone with Termux, hundreds of miles away.

That works right up until the server stops listening. “If Ubuntu Server or the network stack freezes, I can lose SSH access altogether, which means I’m left with no way to reboot my server,” he writes. Your carefully built remote access is then a very secure tunnel to a brick (bring your own finger).

He learned this on an old laptop drafted into server duty. It had a 2-core CPU and 4GB of RAM, more services than it could reliably handle, an SSD that was always full and a constant overheating habit. “When the machine stopped responding, the only way to recover it was to hold the power button.” Power buttons have a famously poor range.

The mini PC is far more capable, so lockups are much less of an issue. He still can’t rule them out. A buggy Linux kernel component or driver can hard-lock a system, and heavy automated jobs, such as machine learning in Immich, can leave it unresponsive indefinitely. Nobody wants to lose Jellyfin for a whole trip because the photo library got ambitious.

The second half of the power button

A smart plug handles “off” with no trouble. Tap the app and the electricity stops. The catch is that plenty of homelab hardware stays off when the power returns, which turns your remote reboot into a remote shutdown. Congratulations, you’ve automated the problem.

The fix lives in the BIOS, where plain English goes to die. The feature is often called Restore on AC Power Loss, though the name and availability vary by model. On Hrnjicevic’s Acemagic K5 mini PC, it’s called State After G3, with G3 meaning mechanical off.

“I changed it from S5 State (stay off) to S0 State (boot automatically), and just like that, my mini PC turns on when power is restored,” he writes. Docker then restarts whichever containers are configured to start automatically, and the services come back with it.

The same pairing covers dumber emergencies. If an update leaves the PC shut down, or somebody at home presses the power button by accident, cycling the plug wakes it again. The old overheating laptop didn’t support the setting at all, so check your hardware before buying anything for this job.

The cheapest person on call

Expect this question to come up before any trip: who’s going to press the button? For a homelab, a plug such as the Kasa Smart Plug Mini, a 2.4GHz Wi-Fi model, can take that shift. It’s the gadget people buy because they can’t remember whether they left the iron on, now promoted to junior sysadmin.

A sensible forecast is that the plug will be the easy part and the firmware menu will be the snag. Settings with three names and uneven support are easy to skip during setup and painful to discover from an airport. Flip the setting while you’re home, cut the power once on a quiet system, and watch what comes back. A recovery plan you’ve never tried is mostly a wish with Wi-Fi.

The router deserves extra thought. Turn off the thing carrying your command to turn it back on and you’ve sawed off your own branch, which is why the countdown has to live inside the plug.

Hrnjicevic keeps the trick on a short leash: “I only use the smart plug when everything else fails.” His server finally has someone to pull its plug lovingly.

Orange links with a double underline go to Amazon. As an Amazon Associate, LockerGnome earns from qualifying purchases.

More Hardware

Every Hardware story →