|
Cancelling Hibernate
I had been thinking about doing this too, Windows power management on an Asus EEE isn't up to much.
The new version doesn't appear to cancel hibernation if power is restored before the delay has expired.
Looking at the source for the old one it looks like the issue is thatthe delay is implimented in the interrupt routine for power state change, so the state change of power being re-applied doesn't get registered.
To make the cancel work the powerloss routine would need to start a timer and the powerrestored routine would cancel the timer.
Unfortunately I don't know enough C# to code that, might have to resort to VB.
|