Labthrift Labthrift What to buy. What to skip. Why.

Written 6 Sep 2026. This is a how-to, not a product card.

Turn the old PC back on after a power blip

Lights come back, but the OptiPlex stays off until you press the button. Flip Restore AC / Power On After Power Loss in Setup. Skip a UPS for this.

House already came back messy and you need the recovery checklist? That is after the power comes back. Soft-off on purpose and you want a magic packet from the couch? That is wake the computer from the house network. This note is only the BIOS switch so a wall-power blink boots the old PC by itself. No button walk to the closet.

Skip until it stays on for house jobs

If the computer is still a weekend experiment you shut down every night, leave this alone. Flip the switch when Pi-hole or the share should survive a blink without you. Don't buy a UPS tonight just so the box powers itself. A UPS is later: you don't need a UPS yet.

What this is

Office PCs remember how they lost power. After a blink, many stay soft-off (standby LED, fans quiet) until someone presses the front button. Setup usually has a line named Restore AC Power Loss, AC Recovery, Power On After Power Loss, or After Power Loss. Set it to Power On (sometimes Last State if it was on when the blink hit). That is a board setting, not a Linux package. Wake-on-LAN is a different trick for soft-off you chose on purpose.

Step 1: plug a screen and keyboard

You need a monitor and a keyboard on the old PC for Setup. HDMI or DisplayPort into a spare TV is fine. Headless closet with no picture later? An HDMI dummy plug is optional gear, not required for this one Setup pass. Leave the wall cord plugged in. PSU rocker On if the case has one.

Step 2: open Setup

Power on with the front button. Tap the brand key early: Dell often F2; HP Esc then F10; Lenovo F1 or Enter then F1. You want the blue or grey Setup menus, not the one-time boot list (that list is for USB installs: boot the old PC from the USB stick).

Step 3: find Restore AC / After Power Loss

Look under Power Management, Power, ACPI, or a similar Power tab. Common labels:

Label you might seeSet it to
Restore AC Power Loss / AC RecoveryPower On
After Power Loss / Power On After Power LossPower On
AC Power RecoveryPower On (not Stay Off / Power Off)
Restore on AC / State After Power LossPower On, or Last State if the PC was on before the blink

Skip Deep Sleep / ErP / Extreme Power Saving if those force the board fully off so it cannot come back without a button. Leave Wake on LAN alone unless you already use it — different job: wake the computer from the house network.

Step 4: save and exit

Save changes (often F10, then Yes). The computer reboots into Ubuntu or Debian as usual. You should land at a login or a quiet server with no desktop. That is fine. SSH from the couch still works the same: SSH from the couch.

Step 5: prove it once (safe test)

Don't yank the cord from a running disk if you can help it. Prefer a short outlet test: shut down cleanly first:

sudo shutdown -h now

Wait until fans stop. That polite stop is shut down without yanking the plug. Unplug the wall cord (or flip the strip Off) for ten seconds. Plug back in. With Power On set, the old PC should POST and boot without a front-button press. Give an old disk a full minute.

Then from the laptop on house Wi-Fi:

ping -c 3 192.168.1.50

Swap in the real number. Find it again if needed: find it on the house network. When ping answers, SSH in and confirm house jobs: after a reboot, check the computer still does its jobs.

Step 6: if it still stays off

Open Setup again. Confirm the line still says Power On (some firmwares reset after a CMOS clear — and a dead coin cell clears Setup every unplug: replace the CMOS battery on the old PC). Turn Deep Sleep / ErP Off. Try Last State if Power On is missing. Front button still required every blink? Write that down and leave the computer on all week — fine for a first house box. A UPS is optional later for cleaner shutdowns, not required to flip this switch: a cheap UPS for a closet that stays on overnight.

What this is not

This is not the house-wide recovery walk after ads and SSH break (after the power comes back). It is not Wake-on-LAN from a phone. It is not a reason to buy a smart plug, a KVM, or a UPS tonight. It is not opening the computer to the internet so something else can press power for you.

What next

Setup keeps forgetting Power On after every cord pull? Replace the CMOS battery on the old PC. Next blink got messy anyway? Walk after the power comes back. Want soft-off on purpose plus a packet from the couch? Wake the computer from the house network. Keep the address stable so SSH and Pi-hole survive: keep the computer on the same address on common routers. Still skipping a battery box? You don't need a UPS yet.

Optional: jot that Restore AC is On for this PC in Lab plan — username + passkey, no email. Skip if you just want to keep reading.

Skip

Sources

Dell support manuals (search your OptiPlex model for AC Recovery / After Power Loss). HP support (Power On After Power Loss on EliteDesk / ProDesk). Maker Setup labels vary; use the Power tab on your board. Official pages only. For the blink recovery checklist, see after the power comes back. For soft-off wake from the LAN, see wake the computer from the house network. For skipping a battery box, see you don't need a UPS yet.

Also on this topic

Replace the CMOS battery on the old PCEvery unplug resets the clock, or Restore AC won't stick. Swap the coin CMOS battery on the board. Skip a new PSU tonight. After the power comes backLights blinked. Ads may be back, SSH may miss the old address, and the share may be gone. Check the computer, find its number, point DNS again if needed, then the share. You don't need a new UPS tonight. You don't need a UPS yetThe computer can sit on a house outlet. A blink of the lights is a reboot. Skip a battery box this weekend. Wake the computer from the house networkSoft-off is fine overnight. Wake the old PC from a laptop or phone on the house network so SSH and Pi-hole come back. You don't need a smart plug for this. When Wake-on-LAN won't wake the computerYou sent the magic packet. Fans stay quiet. Check power, cable, MAC, BIOS, and Wake-on: g before you buy a smart plug. Is the computer still on?You left the computer on. This morning ads are back, or SSH hangs. Check if it is awake before you buy anything. After a reboot, check the computer still does its jobsThe computer came back up. Confirm SSH, house ad block, and the file share still work before you buy anything. Keep the computer on the same address on common routersWhere to reserve DHCP on TP-Link, ASUS, eero, Netgear, Nest, and ISP gateways so SSH and Pi-hole keep the same number after a reboot. You don't need a new router. A cheap UPS for a closet that stays on overnightLater. A small battery box so a blink does not hard-cut the old PC. Skip it for the first weekend.