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