Quote:
Originally Posted by sergeyvl12
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