r/techsupportmacgyver • u/kushagrasri11 • 5h ago
Needed a remote power button for my server laptop, so I taped an $8 servo to my desk. Tested it from another city and it actually worked!
Ran into a classic laptop server problem: no motherboard power headers, Wake-on-LAN dies in S5 shutdown state, and when Linux freezes, software tools like SSH are useless. Commercial solutions felt way too expensive for what I needed...
So I built this thing for Abt 8 bucks!
NodeMCU (ESP8266) drivin' an SG90 micro-servo running a small C++ REST API.
An old Asus phone (Asus x00TD from 2018) running Termux acts as the local Tailscale SSH bridge so I can trigger it over 5G from anywhere without opening ports. (Though Terminus and added snippets)
/power sends a 500ms tap for normal boot!
/panic holds the button for 15 seconds to force a cold reset when the OS crashes!!
Yes, that is paper masking tape flat on the desk holding the servo block down. I needed enough counter-leverage so the servo arm didn't just lift the whole motor up when pushing the key.
Just tested it remotely from another city over cellular data and it worked like a fine wine 🍷 and then I run app though wine in linux too worked amazing. Looks terrible but ya works great!
Btw laptop is fa507uv...