A userPresent event is fired on the NativeApplication when
the operating system detects mouse or keyboard after an idle
period. The period of time that is considered idle is configurable
with the idleThreshold property.
I'm not too sure if it will work in detecting wake from sleep
/ hibernation unless the idleThreshold property has been crossed.
Try it out and do let us know.