View Single Post
Old 12-11-2011, 10:46 AM   #6
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 218
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
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)
janvanmaar is offline   Reply With Quote