Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tell if PC comes out of standby using Qt

Tags:

c++

python

qt

Is there a cross platform way, using Qt, to tell if a computer has come out of standby or hibernation.

I need to be able to detect when the computer has come out of standby in order to reset/continue a process. In this case it is a connection to a GPS via serial port.

like image 201
Nathan W Avatar asked Apr 29 '12 07:04

Nathan W


1 Answers

Based on the discussion at http://comments.gmane.org/gmane.comp.lib.qt.general/39649 it seems that there is no reliable cross-platform way of doing this. The linked discussion provides some instructions on how to do this on windows and mac by listening to platform signaling.

like image 145
jhonkola Avatar answered Nov 08 '22 19:11

jhonkola