Skip to content

Instantly share code, notes, and snippets.

@xk
Last active January 31, 2017 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xk/3ea2ea4a9e6e22818061da66d76403f3 to your computer and use it in GitHub Desktop.
Save xk/3ea2ea4a9e6e22818061da66d76403f3 to your computer and use it in GitHub Desktop.
kindle loop #1
sleep 1
# Apagar/parar cosas:
/etc/init.d/framework stop
/etc/init.d/powerd stop
/etc/init.d/pmond stop
killall webreader
# killall browserd NO VA NO SE POR QUÉ
killall browserd
killall tmd
killall phd
killall cmd
killall lipc-daemon
# Apagar la wifi
#lipc-set-prop com.lab126.cmd wirelessEnable 0
#ifdown wlan0
/etc/init.d/wifi stop
/etc/init.d/wpa_supplicant stop
#Poner la cpu en modo ahorro:
#echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
eips -c
eips 2 14 "`date`"
while [ 1 ]; do
eips 2 15 "`gasgauge-info -l` "
eips 2 16 "`gasgauge-info -v` "
p=`gasgauge-info -c | tr '%' '/'`100
eips 2 17 "$p "
eips 2 18 "`date`"
sleep 30
eips -h 2 15 "`gasgauge-info -l`"
eips -h 2 16 "`gasgauge-info -v`"
p=`gasgauge-info -c | tr '%' '/'`100
eips -h 2 17 "$p"
eips -h 2 18 "`date`"
sleep 30
done
# (sh /mnt/us/clock.sh &) ; exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment