Quote:
Originally Posted by knc1
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
|
I've switched off kindle screensaver and power button do nothing for now. Absolutely no reaction on power button when my program is not suspended. My program works and don't freezes when I press it one or multiple times. But I want to implement my own screensaver. I don't beleave that it is impossible in kindle. In kobo I just have to read /dev/input/event0 to receive power button and other buttons events.
Now I implemented sleep by timeout in kindle and it works well. Power button resumes device and I close the screen saver. I just want to make suspend by pressing the power button and by sleep cower.