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

Written 24 Aug 2026. This is a how-to, not a product card.

Don't let the old laptop sleep

Close the lid. The old laptop has to stay awake so SSH and Pi-hole keep working. A desktop can skip this note.

The old laptop goes dark, and the house stops seeing it. You close the lid to tuck it away. A minute later you cannot type on it from the couch. Pi-hole stops answering names. It is not off. It is asleep.

Why it sleeps

Sleep is a pause, not a shutdown. The machine is still on, but it has stopped doing work. The lid is the flap over the screen. Closing it is the usual signal to sleep. Sitting idle with no keyboard can do the same. SSH, a way to type commands on it from your normal computer, over the house network, dies while it sleeps. Pi-hole dies too. The house looks for names, and nobody is home.

Skip this if the computer is a desktop

An OptiPlex, EliteDesk, or mini PC already stays on. There is no lid to close. Skip this note. Come back only if it still sleeps on its own.

Keep the lid shut without sleeping

This is for Debian or Ubuntu, the OS from what OS to put on the computer, on an old laptop that is now the lab. A server install has no settings app. A few commands tell Linux to ignore the lid. Ignoring the lid means closing it does not sleep the machine.

Make a folder for a small extra config file:

sudo mkdir -p /etc/systemd/logind.conf.d

Then write a drop-in that ignores the lid, on power or docked:

sudo tee /etc/systemd/logind.conf.d/lid.conf <<'EOF' [Login] HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore EOF

Reload the service that watches the lid:

sudo systemctl restart systemd-logind

Stop idle sleep

A server install often has this off already. If you used a laptop image, idle sleep can still kick in after a stretch with no keyboard. Turn suspend off:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

That is one command. It is enough.

Leave it plugged in

Leave the charger in the wall. Closing the lid is fine once sleep is ignored. Don't bury the laptop under a sweater. Heat needs somewhere to go. Under a desk, on a shelf, with a little air, is enough. To confirm the old laptop is actually drawing wall power, see see if the old laptop is actually plugged in.

Check it worked

Close the lid. Wait a minute. SSH from the couch should still work, with the number from find the computer on the house network. If it times out, it slept. Run the lid commands again, and confirm it is still plugged in.

What next

If it does not have a useful job yet, put Pi-hole on it. That is the first useful thing on the computer. If ads already skip, a second copy of the house folder is a backup of the house folder. If the laptop is still on house Wi-Fi, plug a cable: a cable beats Wi-Fi for the computer. If the radio flaps while it stays awake, that is when house Wi-Fi on the old PC keeps dropping. If you tucked it under a sweater or into a closed cabinet, give it air: don't cook the computer. Confirm the old laptop is on wall power: see if the old laptop is actually plugged in. If you shut a desktop down on purpose and want it back from the couch, that is wake the computer from the house network. Don't buy a NAS for this.

Skip

Sources

Debian: logind.conf. Ubuntu: logind.conf. Official pages only. For the computer, see start with what you already have. For the OS, see what OS to put on the computer. For the install, see your first weekend.

Also on this topic

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. See if the old laptop is actually plugged inBefore you trust the old laptop overnight, confirm it is drawing wall power. A dying battery is not a reason to buy a UPS. When house Wi-Fi on the old PC keeps droppingSSH dies or ads come back because the computer's Wi-Fi keeps falling off. Check power save, signal, then prefer a cable. You don't need a mesh kit tonight. Start with what you already haveDon't buy anything yet. Old laptop first, or a retired OptiPlex from Marketplace. Your first weekend with the computerInstall the OS, name it, and reach it from the couch. SSH from the couchType commands on the computer from your laptop, on the house network. Password login first. Don't open this to the internet. Find the computer on the house networkThe computer has a number on your house network. You need that number to SSH from the couch. You don't need a new router.