[Galaxy S II Android Development] droidphile:
@Rockin_Zombie, thanks for the script mate. I guess it is the one posted by a Siyah user in Gokhan's official thread. Anyways, i don't want gpu oc/uv, charge current change, i/o scheduler change,etc in the script. So i have modified and trimmed the script like this.

#!/system/bin/sh

#CPU Frequencies
AWAKE_MIN="25000"
AWAKE_MAX="1400000"
AWAKE_GOV="ondemandx"

SLEEP_MIN="25000"
SLEEP_MAX="500000"
SLEEP_GOV="ondemandx"

#CPU Frequency
FREQ_MANUAL="true"
FREQ_STEP_1="1600"
FREQ_STEP_2="1400"
FREQ_STEP_3="1200"
FREQ_STEP_4="1000"
FREQ_STEP_5="800"
FREQ_STEP_6="500"
FREQ_STEP_7="200"
FREQ_STEP_8="25"

#CPU Voltage
AC_MANUAL="true"
AC_STEP_1="1375"
AC_STEP_2="1250"
AC_STEP_3="1175"
AC_STEP_4="1075"
AC_STEP_5="950"
AC_STEP_6="875"
AC_STEP_7="850"
AC_STEP_8="850"
#Misc
PROFILE="true"
LOGFILE="/sdcard/external_sd/sysvalues.log"
LOGMODE="1"	# Logmode 0=Console only | 1=Startup | 2=Every Change #

#================================================================================================#

if [ -f $LOGFILE ] ; then
rm -f $LOGFILE
fi
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
touch $LOGFILE
fi
###########################
# Setting CPU Frequencies #
###########################
if [ "$FREQ_MANUAL" = "true" ] ; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo "Set Frequency Table" | tee -a $LOG_FILE;
fi
echo "Set Frequency Table"
echo $FREQ_STEP_1" "$FREQ_STEP_2" "$FREQ_STEP_3" "$FREQ_STEP_4" "$FREQ_STEP_5" "$FREQ_STEP_6" "$FREQ_STEP_7" "$FREQ_STEP_8 > /sys/devices/system/cpu/cpu0/cpufreq/freq_table
fi
echo "Setting CPU to "$AWAKE_MIN"-"$AWAKE_MAX
echo $AWAKE_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $AWAKE_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#######################
# Setting CPU Voltage #
#######################
if [ "$AC_MANUAL" = "true" ] ; then
STEP_NORMAL=$AC_STEP_1" "$AC_STEP2" "$AC_STEP_3" "$AC_STEP_4" "$AC_STEP_5" "$AC_STEP_6" "$AC_STEP_7" "$AC_STEP8
echo $STEP_NORMAL > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi
####################
# Setting Governor #
####################
echo $AWAKE_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
####################
# Starting Profile #
####################
if [ "$PROFILE" = "true" ]; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Profile activated" | tee -a $LOGFILE
fi
echo "Profile activated"
(while [ 1 ] ; do
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ "$AWAKE" = "awake" ]; then
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
echo $AWAKE_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $AWAKE_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $AWAKE_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ "$SLEEPING" = "sleeping" ]; then
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "0" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
echo $SLEEP_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $SLEEP_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $SLEEP_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

fi
done &)
fi

Can someone please confirm me if the above code is ok.

I want to get rid of SetCpu;

and use a ScreenON=25-1400 mhz, ScreenOFF = 25-500 mhz, ondemandx governor (awake and sleep), make core 1 inactive on sleep.