[Milestone XT720 Android Development] Zachary57:
Hi,

Here is my 10overclock file part to edit is in first lines. You can change CPU policy to interactive or conservative if you wan. For me it work uninstall any overclock app and reboot after script edit. You can see frequency with android system information application on market :

#!/system/bin/sh

#echo "Spawning OC System" && /system/bin/oc

# cpu polices. 0: ondemand, 1: interactive, 2: conservative

scaling=1

# clock unit: MHz

max_clk=1000

max_vsel=62

clk4=720

vsel4=54

clk3=500

vsel3=42

clk2=300

vsel2=36

clk1=250

vsel1=30

# scaling range: 1-5. 5=max, 4-1=clk4-1

scaling_min=1

scaling_max=5

#############################################################

# Address

#############################################################

cpufreq_table=`grep omap2_clk_init_cpufreq_table /proc/kallsyms|busybox sed -e "s/\([0-9A-Fa-f]\{8\}\).*/\1/"`

stats_update=`grep cpufreq_stats_update /proc/kallsyms|busybox sed -e "s/\([0-9A-Fa-f]\{8\}\).*/\1/"`

nr_running=`grep nr_running /proc/kallsyms|busybox sed -e "s/\([0-9A-Fa-f]\{8\}\).*/\1/"`

# parameters for conservative governor

# sampling_rate unit: us, freq_step unit: %

con_sampling_rate=125000

con_freq_step=25

# parameters for interactive governor

int_min_sample_time=5000

#############################################################

# load modules

#############################################################

# load module

insmod "/system/lib/modules/overclock.ko" "omap2_clk_init_cpufreq_table_addr=0x$cpufreq_table"

# set cpufreq_stats_update_addr

echo 0x$stats_update > /proc/overclock/cpufreq_stats_update_addr

#############################################################

# Overclock

#############################################################

# set clock_table

echo $max_vsel > /proc/overclock/max_vsel

echo "${max_clk}000" > /proc/overclock/max_rate

echo "1 ${clk4}000" > /proc/overclock/freq_table

echo "4 ${clk4}000000 $vsel4" > /proc/overclock/mpu_opps

echo "2 ${clk3}000" > /proc/overclock/freq_table

echo "3 ${clk3}000000 $vsel3" > /proc/overclock/mpu_opps

echo "3 ${clk2}000" > /proc/overclock/freq_table

echo "2 ${clk2}000000 $vsel2" > /proc/overclock/mpu_opps

echo "4 ${clk1}000" > /proc/overclock/freq_table

echo "1 ${clk1}000000 $vsel1" > /proc/overclock/mpu_opps

#############################################################

# Scaling range

#############################################################

# set scaling_range

if [ $scaling_min = 1 ]; then

echo "${clk1}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

fi

if [ $scaling_min = 2 ]; then

echo "${clk2}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

fi

if [ $scaling_min = 3 ]; then

echo "${clk3}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

fi

if [ $scaling_min = 4 ]; then

echo "${clk4}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

fi

if [ $scaling_min = 5 ]; then

echo "${max_clk}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

fi

if [ $scaling_max = 1 ]; then

echo "${clk1}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

fi

if [ $scaling_max = 2 ]; then

echo "${clk2}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

fi

if [ $scaling_max = 3 ]; then

echo "${clk3}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

fi

if [ $scaling_max = 4 ]; then

echo "${clk4}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

fi

if [ $scaling_max = 5 ]; then

echo "${max_clk}000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

fi

###########################################

# Governor

###########################################

# activate interactive

insmod "/system/lib/modules/cpufreq_interactive.ko" "nr_running_addr=0x$nr_running"

echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo $int_min_sample_time > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time

# activate conservative

insmod "/system/lib/modules/cpufreq_conservative.ko"

echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo $con_sampling_rate > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

echo $con_freq_step > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

if [ $scaling = 0 ]; then

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

fi

if [ $scaling = 1 ]; then

echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

fi

if [ $scaling = 2 ]; then

echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

fi

###########################################

# Cronos Ginger X Tweak

###########################################

# Set Home Lock in Memory.

VALUE='ro.HOME_APP_ADJ=1'

if cat /data/local.prop | grep -v grep | grep $VALUE > /dev/null

then

echo "Lock in Home is already set."

else

echo "ro.HOME_APP_ADJ=1" >> /data/local.prop

fi

echo 2 > /sys/devices/omapdss/display0/update_mode

# Non killable Phone

PPID=$(pidof com.android.phone) && echo "-17" > /proc/$PPID/oom_adj

for i in \

`find /data -iname "*.db"`

do \

sqlite3 $i 'VACUUM;';

done

# Lets set some kernel stuff:

echo "24319" > /proc/sys/kernel/sched_features

sysctl -w net.ipv4.tcp_tw_recycle=1

sysctl -w net.ipv4.tcp_rmem='4096 87380 404480'

sysctl -w net.ipv4.tcp_wmem='4096 16384 404480'

echo "20" > /proc/sys/vm/dirty_background_ratio

echo "30" > /proc/sys/vm/dirty_ratio

echo "500" > /proc/sys/vm/dirty_expire_centisecs

echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

echo "1" > /proc/sys/vm/oom_kill_allocating_task

echo "10" > /proc/sys/vm/swappiness

echo "2048" > /proc/sys/vm/min_free_kbytes

echo "80" > /proc/sys/vm/vfs_cache_pressure

echo "8" > /proc/sys/vm/page-cluster;

echo "64000" > /proc/sys/kernel/msgmni;

echo "64000" > /proc/sys/kernel/msgmax;

echo "10" > /proc/sys/fs/lease-break-time;

echo "500,512000,64,2048" > /proc/sys/kernel/sem;