[Desire Android Development] suiller:
anyway for "advanced users" you can find in my signature a simple start-up script (must be copied under /etc/init.d) to tweak under/overclock steps plus other small things

simply on display off the cpu is fixed to 245 mhz, while when display on cpu can flow between 768 & 1113 mhz

so the device is a bit more responsiveness when actively in use (display on)

here below source code:

#!/system/bin/sh
## ICS VERSION
#
## ATTESA CARICAMENTO COMPLETO SISTEMA
sleep 90;
## ABILITA AVS NEL KERNEL e ABBASSA IL VOLTAGGIO MINIMO da 900 a 850
if [ -e '/sys/module/avs/parameters/enabled' ]; then
echo 1 >/sys/module/avs/parameters/enabled;
echo 850 >/sys/module/avs/parameters/vdd_min;
fi;
## DISABILITA ILLUMINAZIONE TASTI FISICI: HOME, MENU, TRACKBALL, BACK e SEARCH
chmod 666 /sys/devices/i2c-0/0-0066/leds/button-backlight/brightness;
echo 0 >/sys/devices/i2c-0/0-0066/leds/button-backlight/brightness;
chmod 555 /sys/devices/i2c-0/0-0066/leds/button-backlight/brightness;
## AMMORBIDISCE LA SCANSIONE AUTOMATICA WIFI CONTINUA
setprop wifi.supplicant_scan_interval 180;
## VIRTUAL MEMORY
echo 0 >/proc/sys/vm/swappiness;
echo 0 >/proc/sys/vm/laptop_mode;
echo 1000 > /proc/sys/vm/dirty_writeback_centisecs;
echo 400 > /proc/sys/vm/dirty_expire_centisecs;
## NEL DUBBIO ROOT e SYSTEM RIMONTATE IN RW
mount -o remount,rw,noatime /;
mount -o remount,rw,noatime /system;
## RIMONTIAMO LE PARTIZIONI SENZA ATIME, NORELATIME E' UTILIZZATO DA ALCUNE APP
for MountPoint in `mount|cut -d " " -f3`
do
mount -o remount,noatime,noauto_da_alloc,nodiratime $MountPoint;
done
## QUESTI NON SONO DISCHI RIGIDI, MEGLIO SPECIFICARE
for Block in /sys/block/mtd*
do
echo 0 > $Block/queue/rotational;
echo 1 > $Block/queue/iosched/low_latency;
echo 1 > $Block/queue/iosched/back_seek_penalty;
echo 1000000000 > $Block/queue/iosched/back_seek_max;
echo 3 > $Block/queue/iosched/slice_idle;
done
## ELIMINA I CRASH DUMP DELLE APP DALLA NAND, OCCUPANO SPAZIO INUTILMENTE
rm /data/tombstones/tombstone_* >/dev/null;
## ELIMINA IL DEVICE LOG e ALTRO
rm -f /dev/log/main;
chmod 400 /data/system/usagestats/;
## RESOLV.CONF
echo nameserver 8.8.4.4>/system/etc/resolv.conf
echo nameserver 8.8.8.8>>/system/etc/resolv.conf
## DEFRAG SQL DB
for i in \
`find /data -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
done
echo '#!/system/bin/sh'>/system/etc/mycpu
echo '########################################################################'>>/system/etc/mycpu
echo '## GESTIONE UNDER/OVERCLOCK CPU - NON UTILIZZARE ALTRE APP GESTIONE CPU!'>>/system/etc/mycpu
echo '# FREQUENZE BRAVO: 245760 384000 576000 768000 998400 1113600'>>/system/etc/mycpu
echo '# FREQUENZE BUZZ : 122880 160000 176000 245760 352000 480000 556800 -'>>/system/etc/mycpu
echo '## - 576000 595200 614000 652800 672000 691200 710400'>>/system/etc/mycpu
echo 'Governor=ondemand;'>>/system/etc/mycpu
echo 'MinFreqWake=768000;'>>/system/etc/mycpu
echo 'MaxFreqWake=1113600;'>>/system/etc/mycpu
echo 'MinFreqSleep=245000;'>>/system/etc/mycpu
echo 'MaxFreqSleep=245000;'>>/system/etc/mycpu
echo 'SampRateWake=90000;'>>/system/etc/mycpu
echo 'SampRateSleep=900000;'>>/system/etc/mycpu
echo '## PARAMETRI BASE'>>/system/etc/mycpu
echo 'echo $Governor >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;'>>/system/etc/mycpu
echo 'sleep 1 ; echo $MaxFreqSleep >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;'>>/system/etc/mycpu
echo 'sleep 1 ; echo $MaxFreqWake >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;'>>/system/etc/mycpu
echo 'sleep 1 ; echo $SampRateWake >/sys/devices/system/cpu/cpu0/cpufreq/$Governor/sampling_rate;'>>/system/etc/mycpu
echo 'echo 60 >/sys/devices/system/cpu/cpu0/cpufreq/$Governor/up_threshold;'>>/system/etc/mycpu
echo '## LOOP ACCESO/SPENTO CAMBIA FREQUENZA e SAMPLING CPU'>>/system/etc/mycpu
echo 'while true;'>>/system/etc/mycpu
echo 'do'>>/system/etc/mycpu
echo 'AWAKE=`cat /sys/power/wait_for_fb_wake`;'>>/system/etc/mycpu
echo ' if [ $AWAKE = "awake" ]; then'>>/system/etc/mycpu
echo ' echo $MinFreqWake >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;'>>/system/etc/mycpu
echo ' sleep 1 ; echo $MaxFreqWake >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;'>>/system/etc/mycpu
echo ' echo $MinFreqWake >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;'>>/system/etc/mycpu
echo ' sleep 1 ; echo $MaxFreqWake >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;'>>/system/etc/mycpu
echo ' echo $SampRateWake >/sys/devices/system/cpu/cpu0/cpufreq/$Governor/sampling_rate;'>>/system/etc/mycpu
echo ' echo 40 > /sys/devices/system/cpu/cpu0/cpufreq/$Governor/up_threshold;'>>/system/etc/mycpu
echo ' AWAKE=;'>>/system/etc/mycpu
echo ' fi;'>>/system/etc/mycpu
echo 'SLEEPING=`cat /sys/power/wait_for_fb_sleep`;'>>/system/etc/mycpu
echo ' if [ $SLEEPING = "sleeping" ]; then'>>/system/etc/mycpu
echo ' echo $MinFreqSleep >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;'>>/system/etc/mycpu
echo ' sleep 1 ; echo $MaxFreqSleep >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;'>>/system/etc/mycpu
echo ' echo $MinFreqSleep >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;'>>/system/etc/mycpu
echo ' sleep 1 ; echo $MaxFreqSleep >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;'>>/system/etc/mycpu
echo ' echo $SampRateSleep >/sys/devices/system/cpu/cpu0/cpufreq/$Governor/sampling_rate;'>>/system/etc/mycpu
echo ' echo 98 >/sys/devices/system/cpu/cpu0/cpufreq/$Governor/up_threshold;'>>/system/etc/mycpu
echo ' SLEEPING=;'>>/system/etc/mycpu
echo ' fi;'>>/system/etc/mycpu
echo 'done;'>>/system/etc/mycpu
sleep 1; nohup /system/bin/sh /system/etc/mycpu&
exit;