The audiobook was intended for listening to audiobooks while reading, thus screensaver appearing after 10 minutes should not be a problem - however, if you want to prevent this, it can be done by replacing the following line in the control-audiobook.sh file:
$MPLAYER "$first" -ss $time -playlist ${PLAYLIST}_temp >$LOG 2>&1 &
by this line:
( lipc-set-prop com.lab126.powerd preventScreenSaver 1; $MPLAYER "$first" -ss $time -playlist ${PLAYLIST}_temp >$LOG 2>&1; lipc-set-prop com.lab126.powerd preventScreenSaver 0 ) &
Thanks to k3lover for pointing this out!
(I am not incorporating this change to the zip file as it is not required for the intended purpose and to be safer - it is unlikely that the script would be killed from some reason and the lipc command to turn the screensaver on again would not be executed but it is not impossible)
|