Sorry to bother you again. But there's one more thing I noticed:
Assuming in config.sh I have
then WiFi is switched off regardless whether the Kindle is in Screen Saver mode or not. In my eyes that makes no sense. I think it only should switch WiFi off, when in Screen Saver mode.
Maybe this could be realized as follows (update.sh):
Code:
# disable wireless if necessary
if test 1 -eq $DISABLE_WIFI; then
lipc-get-prop com.lab126.powerd status | grep "Screen Saver" && (
logger "Disabling WiFi"
lipc-set-prop com.lab126.cmd wirelessEnable 0
)
fi
Hades.