Last active
January 31, 2017 16:11
-
-
Save xk/3ea2ea4a9e6e22818061da66d76403f3 to your computer and use it in GitHub Desktop.
kindle loop #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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