View Single Post
Old 10-17-2013, 03:55 PM   #10
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by sergeyvl12 View Post
I need to put Kindle into suspend mode in my Qt programs. Kindle standard screensaver doesn't work because I completely freeze the kindle framework when starting it. I want to have my own suspend/resume + screensaver like it is already implemented for kobo in the KoboLauncher.

There is no need to monitor power event when cpu is halted because this event resumes cpu.

twobob, thanks. I think it's not a good idea to launch process every time I want to find out power status...

Do you know how to monitor the PWRON1 event?
See the event handler thread posted by dos1

No need to monitor the power status -
if its off, there isn't anything user accessible still running.
Conversely, if any thing at all runs, then the power is on.

check the /sys sub-tree for what you can monitor and what you can change

Last edited by knc1; 10-17-2013 at 03:59 PM.
knc1 is offline   Reply With Quote