[Galaxy S II Android Development] kremator:
Hello @ll :-)

As I agreed with :indie: I wanted to share with him and you as a little thank you my scripts that are keeping my phone running smooth and battery friendly with Omega Rom and kernel Siyah 2.6.2. I put them together with help of users posting in Siyah thread, my knowledge and voltage control scripts. Just remember to:

Flash Kernel Siyah 2.6.2 and install Voltage Control from market before You use them

Change the voltages in scripts accordingly to Your phone capabilites to UV

Put the scripts into etc/init.d folder (I use Root explorer) and reboot

PROFIT :cool: Your phone should be very smooth and snappy with low battery usage now. If You can suggest any improvements I am eager to evolve my works - feel free to share Your knowledge.

So here we go - first I put the file content and then the files to download:

01siyah

#!/sbin/busybox sh

#hotplug parameters
echo "35" > /sys/module/pm_hotplug/parameters/loadl
echo "80" > /sys/module/pm_hotplug/parameters/loadh
echo "90" > /sys/module/pm_hotplug/parameters/loadl_scroff
echo "100" > /sys/module/pm_hotplug/parameters/loadh_scroff
echo "400" > /sys/module/pm_hotplug/parameters/rate
echo "400" > /sys/module/pm_hotplug/parameters/rate_cpuon
echo "1000" > /sys/module/pm_hotplug/parameters/rate_scroff
echo "524288" > /sys/module/pm_hotplug/parameters/freq_cpu1on
#Set deep sleep frequency & bus speed (L4=800 mhz and 0=400mhz bus speed)
echo "4" > /sys/devices/system/cpu/cpu0/cpufreq/deepsleep_cpulevel
echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/deepsleep_buslevel
#smooth scaling parameters
echo "3" > /sys/devices/system/cpu/cpu0/cpufreq/smooth_target
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/smooth_offset
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/smooth_step
#pikachu lulzactiveV2 tweaks
echo "95" > /sys/devices/system/cpu/cpufreq/lulzactive/inc_cpu_load
echo "4" > /sys/devices/system/cpu/cpufreq/lulzactive/pump_up_step
echo "1" > /sys/devices/system/cpu/cpufreq/lulzactive/pump_down_step
echo "10000" > /sys/devices/system/cpu/cpufreq/lulzactive/up_sample_time
echo "40000" > /sys/devices/system/cpu/cpufreq/lulzactive/down_sample_time
echo "6" > /sys/devices/system/cpu/cpufreq/lulzactive/screen_off_min_step
#gpu clock, threshold and voltage
echo "100 267 300" > /sys/class/misc/gpu_clock_control/gpu_control
echo "65% 30% 95% 60%" > /sys/class/misc/gpu_clock_control/gpu_control
echo "850000 950000 1000000" > /sys/class/misc/gpu_voltage_control/gpu_control
#brightness settings
echo "70" > /sys/class/misc/brightness_curve/min_bl
echo "0" > /sys/class/misc/brightness_curve/min_gamma
echo "19" > /sys/class/misc/brightness_curve/max_gamma
#disable logger (will take effect after a reboot)
mkdir /data/.siyah
chmod 777 /data/.siyah
touch /data/.siyah/disable-logger

S91Voltctrl

#!/system/bin/sh
##################################################
## Voltage Control boot script by xan and nitr8 ##
##################################################
LOG_FILE=/data/volt_scheduler.log
rm -Rf $LOG_FILE

echo "Starting Insanity Volt Scheduler $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

echo "Set MIN Scaling Frequency" | tee -a $LOG_FILE;
echo "100000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo ""
echo "---------------"

echo "Set MAX Scaling Frequency" | tee -a $LOG_FILE;
echo "1400000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo ""
echo "---------------"

echo "Set Scheduler for stl, bml and mmc" | tee -a $LOG_FILE;

for i in `ls /sys/block/stl*` /sys/block/bml* /sys/block/mmcblk* ; do
echo "sio" > $i/queue/scheduler;
echo "$i/queue/scheduler";
done;
echo "---------------";
echo "Set governor" | tee -a $LOG_FILE;
echo "lulzactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ""
echo "---------------"

#UV_BEGIN#

echo "Set UV" | tee -a $LOG_FILE;
echo "1425 1250 1150 1075 950 850 850 825 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo ""
echo "---------------"

#UV_END#

#BUSFREQ_BEGIN#

echo "Set static busfreq" | tee -a $LOG_FILE;
echo "enabled" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static
echo ""
echo "---------------"
echo "0 0 0 1 1 2 2 2 " > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static
echo ""
echo "---------------"

#BUSFREQ_END#
#GPU_BEGIN#

echo "Charging current " | tee -a $LOG_FILE;
echo "900 750 500" > /sys/devices/virtual/misc/charge_current/charge_current
echo ""
echo "---------------"

#GPU_END#

echo "Insanity Volt Scheduler finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

And finally link to the zipped files to put into etc/init.d folder

File name: skrypty.zip File size: 1.32 KB

If I learn how or if someone can make a flashable cwm file please do so and i will post that too

Best regards