Comments (3)
I'm not the author of this program, but I think you can do it by hitting the power button to bring the kindle out of sleep mode, at which point you have 10 seconds to connect via SSH to it and run the command /mnt/us/dashboard/stop.sh
. Then you can run /etc/init.d/framework start
to start the main kindle software again. The kindle is mostly back to normal then, but... sleep mode still doesn't work normally, so it's probably just easiest to reboot the kindle at that point. You can probably also just reboot it from ssh
instead of starting the framework
.
from kindle-dash.
Indeed @coder543 that's exactly right :-) I realize it's not super convenient, but due to the continuous fetch-then-sleep loop you don't have many choices. I briefly looked into detecting the device was woken by the power button vs woken by the RTC (automatic wakeup), but didn't find a way to do this. If anyone knows how to achieve this, let me know!
On a related note; stop.sh
currently only kills the dashboard, it doesn't restore the functionality that is disabled in start.sh
. For me personally I wouldn't want to restart the built-in Kindle UI if I stop the dashboard, but this might depend a bit on your usecase. Perhaps we could add a flag like --restore
to stop.sh
, or add a separate disable.sh
that does this.
In any case, for now if you wan't to revert back you can either restart the device or run the following commands:
/mnt/us/dashboard/stop.sh
lipc-set-prop com.lab126.powerd preventScreenSaver 0
echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
initctl start webreader
/etc/init.d/framework start
from kindle-dash.
I briefly looked into detecting the device was woken by the power button vs woken by the RTC (automatic wakeup), but didn't find a way to do this. If anyone knows how to achieve this, let me know!
@pascalw You can simple store time before sleep, than compare to time after wakeup, and if it is "+- epsilon" same as planned time it is wakeup by RTC, if the difference is big enough it is wakeup by user. Maybe it can call some "local" script (e.g. local/wakep_by_user.sh
) to do whatever user wants to to (eg. restoring original kindle, or do nothing, or something else)
from kindle-dash.
Related Issues (13)
- Print last updated time and battery percentage onto the dashboard locally HOT 2
- Image aspect ratio morphed/incorrect HOT 5
- Add support for non Kindle devices HOT 2
- Render to png HOT 3
- Move next_wakeup_secs to local HOT 2
- When kindle is in RTC sleep it cannot be charged HOT 5
- Question: Battery life? HOT 5
- Failed to download image HOT 26
- Changing low-battery.sh to turn off the kindle and then ensure dash.sh/start.sh runs on boot
- fetch_dashboard.sh to check ETag? HOT 7
- Cron format has an unusual number of columns HOT 5
- wait-for-wifi.sh not working reliably when called from dash.sh HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kindle-dash.