View Single Post
Old 12-23-2017, 02:47 PM   #1
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,793
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Prototype power off script

I've been looking at the script /usr/sbin/shipping_mode which is invoked by the ;shpm search bar command and the files that it sources and calls. I think that it is possible to put together a script powers a Kindle off without wiping documents, settings, etc.

Does anyone think it will work, or see any problems with it?

Has anyone tried something similar?

This is a prototype script and will likely display the critical battery screen, but something more suitable could be developed.

Proposed power_off.sh

Code:
#!/bin/sh

source /etc/upstart/functions
source /etc/upstart/shutdown_modes

# flash the screen multiple times to fully clear to white
eips -c -w gc16 -f
usleep 1250000
eips -c -w gc16 -f
usleep 1250000

start shutdown SHUTDOWN_MODE=$SHUTDOWN_MODE_CRITBATT
j.p.s is online now   Reply With Quote