Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So, fun story. I've got an "AI" server which has three P40s and a M40 in it. I'm doing my own version of "off while idle".

I discovered that if the server gets hard shutdown by killing the power it will automatically start back up when the power turns on.

As a result I just set up home assistant with a power toggle and when I want the server off or on I can start it up by restoring the power.

Way more brute force than this guy's solution, but hey, it works.



> I discovered that if the server gets hard shutdown by killing the power it will automatically start back up when the power turns on.

That's usually a configuration option in the BIOS setup screen, what to do on power loss: "Last state" or "Off", and your server probably has it configured as "Last state".


https://www.home-assistant.io/integrations/wake_on_lan/ and https://www.home-assistant.io/integrations/shell_command/ with `ssh server poweroff` if you want something a bit less risky

measure the power draw from your smart plug when the machine is on & off, then use that to set up https://www.home-assistant.io/integrations/switch.template/ which combines all of this


Oh man, that shell command is awesome. I could set it up to run some of the services I have to manually do from my phone right now.

Thanks for that information.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: