An old ThinkPad X220 as a quiet home server
My old X220 had gotten too slow to enjoy as a laptop, but it felt wrong to throw out a machine that still boots, has a keyboard I love, and comes with its own battery backup. So it moved into a cupboard and became the little box that’s always on.
The lid-close trick
By default, closing the lid suspends it — not what you want for a server. On Debian I edited /etc/systemd/logind.conf:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
Then systemctl restart systemd-logind. Now it runs happily with the lid shut, which also keeps dust out of the keyboard.
The battery is a free UPS
This is the part I actually like. A laptop is basically a tiny server with a built-in UPS. When the power in my flat flickered last winter, the X220 didn’t even notice — it just ran off the battery until the mains came back. I set a small script to warn me if it ever drops below 40% on battery, but so far it hasn’t come up.
What it actually runs
- A few static sites, served with a lightweight web server.
- Syncthing, to keep a couple of folders in sync between my machines without a cloud account.
- A nightly job that rsyncs the important folders to an external drive and emails me if it fails.
- A tiny status page so I can glance at load and disk from my phone.
Keeping it cool and quiet
The cupboard gets warm, so I raised the laptop on two strips of wood to let air under it and told the fan to be a little more eager via thinkfan. Idle temps sit in the low 40s °C, which is fine. It’s genuinely silent unless something is compiling.
Best part: total spend was zero. The hardware was already sitting in a drawer feeling guilty.
If you’ve got an old laptop that’s “too slow” but still works, it’s a surprisingly capable always-on box. Mine has been up for weeks at a time without a thought.
← Back to notes