Changing low-battery.sh to turn off the kindle and then ensure dash.sh/start.sh runs on boot
floftus-at-csm opened this issue · 0 comments
floftus-at-csm commented
Currently if my Kindle loses power while running the script it will go to the standard "Kindle Out Of Power - Please Recharge Now" screen. Then when I recharge the Kindle, it does not turn on and automatically run this script. Instead it goes back to standard 'book mode' (hopefully this makes sense!)
The functionality I would like in low-battery.sh is:
- a message appears when the battery is low (this seems ok following this advice #13)
- if battery is very low, the kindle powers down, leaving the image currently on the screen in place (can I just use
sudo shutdown -h now
in low-battery.sh inside a conditional with a threshold of, say 5?) - dash.sh/start.sh runs at startup (can I use standard linux commands such as crontab? if so I would just run /mnt/us/dashboard/start.sh at reboot - based on this thread it seems that crontab works on the Kindle 3 so hopefully 4 as well https://www.mobileread.com/forums/showthread.php?t=156472)
As I've written this I feel I've answered some of my own questions but I'll leave this here as I'm interested to know if this sounds like the best approach and what the right way of turning off the kindle is
Thanks!