
| The Following User Says Thank You to egoshin For This Useful Post: | ||
stop on starting shutdown
service
console none
script
test -f /etc/lastboot && TDIFF=$(expr $(date +%s) - $(stat -t /etc/lastboot |awk '{print $14}'))
if test -z "$TDIFF" || test "$TDIFF" -gt 300; then
touch /etc/lastboot
modprobe bq27x00_battery
test -f /etc/default/kernel || exit 0
source /etc/default/kernel
test -n "$UP_THRESHOLD" && echo $UP_THRESHOLD > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
test -n "$SAMPLING_RATE" && echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
test -n "$MIN_FREQ" && echo $MIN_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
test -n "$MAX_FREQ" && echo $MAX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
test -n "$VDD1_OPPS_VSEL" && echo $VDD1_OPPS_VSEL > /sys/power/vdd1_opps_vsel
test -n "$DSP_OPPS_RATE" && echo $DSP_OPPS_RATE > /sys/power/dsp_opps_rate
test -n "$SMARTREFLEX_VDD1" && echo $SMARTREFLEX_VDD1 > /sys/power/sr_vdd1_autocomp
test -n "$SMARTREFLEX_VDD2" && echo $SMARTREFLEX_VDD2 > /sys/power/sr_vdd2_autocomp
exit 0
else
exit 1
fi
end script
UP_THRESHOLD=75 SAMPLING_RATE=150000 VDD1_OPPS_VSEL="30 30 30 30 33 38 45 45 48 48 54 54 60 72 72" DSP_OPPS_RATE="90000000 90000000 180000000 360000000 400000000 430000000 430000000 430000000 430000000 500000000 500000000 500000000 500000000 520000000 520000000" MIN_FREQ=500000 MAX_FREQ=850000 SMARTREFLEX_VDD1=0 SMARTREFLEX_VDD2=0
VDD1_OPPS_VSEL="30 20 25 30 33 38 45 45 48 48 54 54 60 67 72"
cat /sys/power/vdd1_opps_vsel
echo "30 20 25 30 33 38 45 45 48 48 54 54 60 67 72" > /sys/power/vdd1_opps_vsel

If I extrapolate the 14h=4% then in theory I would get 339h=14days of idle power. nice!
sudo /usr/sbin/update-kernel show
sudo /usr/sbin/update-kernel
sudo /usr/sbin/update-kernel set -l 500
stop on starting shutdown
service
console none
script
test -f /etc/lastboot && TDIFF=$(expr $(date +%s) - $(stat -t /etc/lastboot |awk '{print $14}'))
if test -z "$TDIFF" || test "$TDIFF" -gt 300; then
touch /etc/lastboot
modprobe bq27x00_battery
test -f /etc/default/kernel || exit 0
source /etc/default/kernel
test -n "$UP_THRESHOLD" && echo $UP_THRESHOLD > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
test -n "$SAMPLING_RATE" && echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
test -n "$MIN_FREQ" && echo $MIN_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
test -n "$MAX_FREQ" && echo $MAX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
test -n "$VDD1_OPPS_VSEL" && echo $VDD1_OPPS_VSEL > /sys/power/vdd1_opps_vsel
test -n "$DSP_OPPS_RATE" && echo $DSP_OPPS_RATE > /sys/power/dsp_opps_rate
test -n "$SMARTREFLEX_VDD1" && echo $SMARTREFLEX_VDD1 > /sys/power/sr_vdd1_autocomp
test -n "$SMARTREFLEX_VDD2" && echo $SMARTREFLEX_VDD2 > /sys/power/sr_vdd2_autocomp
exit 0
else
exit 1
fi
end script
UP_THRESHOLD=75 SAMPLING_RATE=150000 VDD1_OPPS_VSEL="30 30 30 30 33 38 45 45 48 48 54 54 60 72 72" DSP_OPPS_RATE="90000000 90000000 180000000 360000000 400000000 430000000 430000000 430000000 430000000 500000000 500000000 500000000 500000000 520000000 520000000" MIN_FREQ=500000 MAX_FREQ=850000 SMARTREFLEX_VDD1=0 SMARTREFLEX_VDD2=0