Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing low-battery.sh to turn off the kindle and then ensure dash.sh/start.sh runs on boot #21

Open
floftus-at-csm opened this issue Sep 1, 2022 · 0 comments

Comments

@floftus-at-csm
Copy link

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:

  1. a message appears when the battery is low (this seems ok following this advice Print last updated time and battery percentage onto the dashboard locally #13)
  2. 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?)
  3. 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant