by jauntywundrkind · 1y ago · 0 comments
I really want my home gaming machine to be an on-demand remote streaming system.
I don't expect to use this for that, I think Sunshine & Moonlight are probably going to give better results. But, I do need a way to turn my system on and off.
Alas, try as I might (I just tried again last night for a couple hours), my Gigabyte board refuses to suspend. It just wakes up immediately. There's a whole ass section of the AechWiki for Gigabyte boards being trouble, alas... Never ever again! https://wiki.archlinux.org/title/Power_management/Wakeup_tri...
So I kind of need a remote kvm, but one that can also trigger power on on my computer.
If you are running Windows try holding shift when you click the shutdown menu item, it’ll force it to do a full power down rather than suspending.
Wake on LAN is my ideal yes & would be perfect for this application. If only suspend werent broken. It's fantastically easy to setup in systems-networkd, a one line WakeOnLan=magic in your .link file. Easy as that for my laptop! https://wiki.archlinux.org/title/Wake-on-LAN#systemd.link
Check your bios settings.
Also, you can probably just strap a wifi-capable relay to power pins on your motherboard.
That's a lot more work than just buying a different KVM that already exposes its spare GPIO pins for exactly that purpose. There are plenty of options that come bundled with the necessary cables and adapters to connect the KVM to the motherboard headers while leaving the existing power/reset buttons usable.
Wake on LAN is nice, when it works. For everything else, there's ~ $10 modules you can by from Ali Express. They are essentially a small WiFi radio and a digital switch. You wire it in-line with the power/reset switch on your PC case.
They're very simple devices so either Tasmota or ESPHome or DIY from scratch isn't that difficult.
I have a few PCs in my rack and I can monitor the power LED status and press the power/reset buttons remotely. I used Home Assistant to integrate them with my KVM so just switching to a different bank of ports on the KVM will wake up the matching PC.
Sinilink PCle Computer Remote (XY-WPCE)
Sinilink USB Computer Remote (XY-WPCL)
If you have the space and a spare PCI Express slot, I suggest going that route just for the slightly tighter integration; if memory serves, there is a always active 3.3 volt supply as well as a way to infer if the PC is awake or not. You still need jumper wires off to the front panel header though for power and reset purposes.
https://aliexpress.com/item/1005005287125116.html
There are different kinds of options in the related products section.
If you just need power control and your motherboard supports it, I've seen that some people use smart plugs and enable a setting in their BIOS that turns on the computer whenever it detects power.
I have it connected to an Eve Energy so I can track power usage, and that turned into a good remote way to turn it on.
Then with a Tailscale, I remote into it easily.
The downside is that I can't shut it down remotely without knowing when exactly to also turn off the plug. I could create some automation, but it takes about 2 seconds being off before turning on again.
Huh, I would have expected the BIOS to not do that if it detected a graceful shutdown (or at least have a longer grace period).