[Galaxy S II Android Development] dorimanx:
nice to have second opinion,

but if you missed that, then you need to check more closely next time.

from cortexbrain-tune.sh

CPU_GOV_TWEAKS()
{
SYSTEM_GOVERNOR=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`;

# extra battery-settings ... but only if not charging
CHARGING=`cat /sys/class/power_supply/battery/charging_source`;
if [ $cortexbrain_extra_battery == on ] && [ $CHARGING == 0 ]; then

if [ $SYSTEM_GOVERNOR == HYPER ]; then
echo "100000" > /sys/devices/system/cpu/cpufreq/HYPER/sampling_rate;
echo "90" > /sys/devices/system/cpu/cpufreq/HYPER/up_threshold;
echo "90" > /sys/devices/system/cpu/cpufreq/HYPER/up_threshold_min_freq;
echo "1" > /sys/devices/system/cpu/cpufreq/HYPER/sampling_down_factor;
echo "5" > /sys/devices/system/cpu/cpufreq/HYPER/down_differential;
echo "20" > /sys/devices/system/cpu/cpufreq/HYPER/freq_step;
echo "100000" > /sys/devices/system/cpu/cpufreq/HYPER/freq_responsiveness;
fi;

if [ $SYSTEM_GOVERNOR == ondemand ]; then
echo "100000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
echo "90" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
echo "5" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;
echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor;
echo "20" > /sys/devices/system/cpu/cpufreq/ondemand/freq_step;
fi;

if [ $SYSTEM_GOVERNOR == conservative ]; then
echo "100000" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate;
echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step;
echo "1" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor;
echo "60" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold;
echo "90" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold;
fi;

if [ $SYSTEM_GOVERNOR == abyssplug ]; then
echo "1" > /sys/devices/system/cpu/cpufreq/abyssplug/down_differential;
echo "60" > /sys/devices/system/cpu/cpufreq/abyssplug/down_threshold;
echo "90" > /sys/devices/system/cpu/cpufreq/abyssplug/up_threshold;
fi;

if [ $SYSTEM_GOVERNOR == pegasusq ]; then
echo "80000" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate;
echo "85" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold;
echo "2" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor;
echo "5" > /sys/devices/system/cpu/cpufreq/pegasusq/down_differential;
echo "20" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_step;
echo "10" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_rate;
echo "10" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate;
echo "300000" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1;
echo "200000" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0;
echo "250" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_1_1;
echo "240" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_0;
echo "85" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold_at_min_freq;
echo "200000" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness;
echo "0" > /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock;
echo "0" > /sys/devices/system/cpu/cpufreq/pegasusq/dvfs debug;
echo "0" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock;
fi;

else