Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2013, 10:42 AM   #16
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by sergeyvl12 View Post
Code:
lipc-wait-event -m com.lab126.powerd goingToScreenSaver,outOfScreenSaver
doesn't work for me because I turn off the screen saver during my program execution:

Code:
# prevent screensaver activation
lipc-set-prop com.lab126.powerd preventScreenSaver 1
...
# restore screensaver
lipc-set-prop com.lab126.powerd preventScreenSaver 0
I touch the screensaver timeout event now instead on a 500? seconds loop. leaves these events available. does the same job as far as the end user is concerned.


also. baf has provided a c based interface to lipc now.
https://github.com/bfabiszewski/openlipc
if you fancy refactoring that bit out.
twobob is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 Power button not shutting off Atagahi Sony Reader 2 11-16-2012 05:48 PM
PRS-T1 How can I use back button as power button? younghere Sony Reader 1 03-12-2012 06:37 PM
Trouble With K4 Power Button? lindnet Amazon Kindle 5 01-03-2012 06:45 AM
Trouble with the Power Button Davimee Astak EZReader 16 05-04-2010 07:29 PM
power button stuck Utahcowboy Bookeen 10 03-13-2008 01:42 PM


All times are GMT -4. The time now is 02:51 AM.


MobileRead.com is a privately owned, operated and funded community.