View Single Post
Posts: 38 | Thanked: 13 times | Joined on Oct 2009
#3364
I've created the following script to automatically manage my OC settings according to battery temperature (e.g. poor man's smartreflex)

When the temperature is above 45 degrees, I revert to the default nokia kernel, no high speed, no undervolatage (transistors need more voltage at high temperature).
If the temperature is between 35 and 45 degrees I run titan's ideal settings limited to 850 Mhz.
If the temperature is below 35 degrss, I allow it to run at 1000GHz with very low voltages (20 ......25.........48)

It probes the temperature every 30 sec.

The batch reads (you will have to point it to your configuration files instead of my ideal850 and lv-ideal1000)

#!/bin/sh
set old=""
while test 2 -gt 1;
do
modprobe bq27x00_battery
read tmpr </sys/class/power_supply/bq27200-0/temp
if test $tmpr -gt 45;
then new="/usr/share/kernel-power-settings/default";
else
if test $tmpr -gt 35;
then new="/usr/share/kernel-power-settings/ideal850";
else new="/usr/share/kernel-power-settings/xlv-ideal1000";
fi
fi
if test $old!=$new;
then /usr/sbin/kernel-load $new
fi
old=$new
sleep 30
done

Place it in some directory which allows you to execute it from (I use /home/opt/dynamicOC)

make it an executable (e.g. chmod +x filename)
Execute it (/home/opt/dynamicOC/dynamicOC.sh &)

Last edited by sdpkom; 2010-04-29 at 12:00.
 

The Following 2 Users Say Thank You to sdpkom For This Useful Post: