View Single Post
Old 10-17-2013, 04:13 PM   #11
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by knc1 View Post
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.

Last edited by sergeyvl12; 10-17-2013 at 04:20 PM.
sergeyvl12 is offline   Reply With Quote