Hello,
Since we are in Lebanon and we get a lot of power outage, it is hard to just leave our Desktops on without fear of them getting powered off after our UPS is drained. So if you have such a scenario and you want a solution (other than buying an expensive UPS that can detect and act on a power failure by hibernating your PC for example) then I might have a way. This topic is out of curiosity to know how useful my application is to otherd, so I would appreciate some feedback in return.
What the application does:
It hibernates your windows when the power is out, this is detected by a lost network connection in turn caused by a switch/router turning off.
What you would need
1. .Net Framework 2.0
2. a switch or similar hardware ( it should be connected directly to the main power)
3. PowerFailureDetector.exe running
4. A UPS that can hold long enough for your system to hibernate
5. Hibernation must be enabled in windows (google it)
Issues that might arise:
1. If you have a wireless connection that could go off at some point, my application could detect that as a false power failure, not tested.
you can find it here:
http://www.mediafire.com/file/5dih5158dn2zith/PowerFailureDetector.rar