[Galaxy S II Android Development] Rockin_Zombie:
hey,

I only removed the script named "74OC-daemon". I don't have setCPU installed either, if you have setCPU, make sure you remove all the "set on boot" options. I also set UID and GID with root explorer, to make the permission exactly like the other scripts. This is the S_volt_scheduler I am using:

#!/system/bin/sh

#CPU Frequencies
AWAKE_MIN="200000"
AWAKE_MAX="1400000"
AWAKE_GOV="lulzactive"

SLEEP_MIN="25000"
SLEEP_MAX="200000"
SLEEP_GOV="conservative"

LOWBATT_SOC="20"
LOWBATT_MIN="200000"
LOWBATT_MAX="1000000"
LOWBATT_GOV="lulzactive"

#CPU Frequency
FREQ_MANUAL="true"
FREQ_STEP_1="1696"
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="1400"
AC_STEP_2="1250"
AC_STEP_3="1175"
AC_STEP_4="1075"
AC_STEP_5="975"
AC_STEP_6="875"
AC_STEP_7="825"
AC_STEP_8="800"

#GPU Frequencies (100 114 133 [160] 200 [267] 400)
GPU_CLOCK_1="160"
GPU_CLOCK_2="267"

#GPU Voltage (500000-1200000 | default:950000 1000000)
GPU_VOLTAGE_1="900000"
GPU_VOLTAGE_2="950000"

#Charging
CHARGE_AC="800"
CHARGE_MISC="700"
CHARGE_USB="450"

#Misc
SCHEDULER="sio"
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
##################
# Checking stuff #
##################
#CHECKSTEPS=$(cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table | wc -l)
CHECKFREQ1600=$(grep '1600mhz' /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table)
CHECKFREQ100=$(grep '100mhz' /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table)
CHECKSCHED=$(grep $SCHEDULER /sys/block/mmcblk0/queue/scheduler)
CHECKGOV_AWAKE=$(grep $AWAKE_GOV /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)
CHECKGOV_SLEEP=$(grep $SLEEP_GOV /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)
CHECKGOV_BATT=$(grep $LOWBATT_GOV /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)
###########################
# 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
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Setting min_freq to "$AWAKE_MIN" and max_freq to "$AWAKE_MAX | tee -a $LOGFILE
fi
if [ `cat /sys/devices/platform/sec-battery/power_supply/battery/batt_soc` -le $LOWBATT_SOC ] ; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting CPU to "$LOWBATT_MIN"-"$LOWBATT_MAX" (Batt less then "$LOWBATT_SOC")" | tee -a $LOGFILE
fi
echo "Setting CPU to "$LOWBATT_MIN"-"$LOWBATT_MAX" (Batt less then "$LOWBATT_SOC")"
echo $LOWBATT_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $LOWBATT_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
else
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting CPU to "$AWAKE_MIN"-"$AWAKE_MAX | tee -a $LOGFILE
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
fi
#######################
# Setting CPU Voltage #
#######################
if [ "$AC_MANUAL" = "true" ] ; then
STEP_NORMAL=$AC_STEP_3" "$AC_STEP_4" "$AC_STEP_5" "$AC_STEP_6" "$AC_STEP_7
if [ -z "$CHECKFREQ1600" ]; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - No 1600mhz stepping found -> using 6 steps voltages" | tee -a $LOGFILE
fi
echo "No 1600mhz stepping found -> using 6 steps voltages"
echo $STEP_NORMAL > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
else
if [ -n "$CHECKFREQ1600" ]; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - 1600mhz max stepping found" | tee -a $LOGFILE
fi
echo "1600mhz max stepping found"
if [ -n "$CHECKFREQ100" ]; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - 100mhz min stepping found -> using 8 steps voltages" | tee -a $LOGFILE
fi
echo "100mhz min stepping found -> using 8 steps voltages"
echo $AC_STEP_1" "$AC_STEP_2" "$STEP_NORMAL" "$AC_STEP_8 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
else
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - No 100mhz min stepping found -> using 7 steps voltages" | tee -a $LOGFILE
fi
echo "No 100mhz min stepping found -> using 7 steps voltages"
echo $AC_STEP_1" "$AC_STEP_2" "$STEP_NORMAL > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi
fi
fi
fi
####################
# Setting Governor #
####################
if [ `cat /sys/devices/platform/sec-battery/power_supply/battery/batt_soc` -le $LOWBATT_SOC ] ; then
if [ -n "$CHECKGOV_BATT" ]; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting Governor to "$LOWBATT_GOV" (Batt less then "$LOWBATT_SOC")" | tee -a $LOGFILE
fi
echo "Setting Governor to "$LOWBATT_GOV" (Batt less then "$LOWBATT_SOC")"
echo $LOWBATT_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
else
if [ -n "$CHECKGOV_AWAKE" ]; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting Governor to "$AWAKE_GOV | tee -a $LOGFILE
fi
echo "Setting Governor to "$AWAKE_GOV
echo $AWAKE_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
fi
#####################
# Setting Scheduler #
#####################
if [ -n "$CHECKSCHED" ]; then
for i in `ls /sys/block/stl*` /sys/block/bml* /sys/block/mmcblk* ; do
if [ -f $i"/queue/scheduler" ] ; then
echo $SCHEDULER > $i/queue/scheduler;
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - "$i"/queue/scheduler set to "$SCHEDULER | tee -a $LOGFILE
fi
echo $i"/queue/scheduler set to "$SCHEDULER
fi
done;
else
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - "$SCHEDULER" not found, using standard scheduler" | tee -a $LOGFILE
fi
echo $SCHEDULER" not found, using standard scheduler"
fi
###########################
# Setting GPU Frequencies #
###########################
if [ -e /sys/class/misc/gpu_clock_control/gpu_control ] ; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Setting GPU Clock to "$GPU_CLOCK_1"-"$GPU_CLOCK_2 | tee -a $LOGFILE
fi
echo "Setting GPU Clock to "$GPU_CLOCK_1"-"$GPU_CLOCK_2
echo $GPU_CLOCK_1" "$GPU_CLOCK_2 > /sys/class/misc/gpu_clock_control/gpu_control
fi
#######################
# Setting GPU Voltage #
#######################
if [ -e /sys/class/misc/gpu_voltage_control/gpu_control ] ; then
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Setting GPU Voltage to "$GPU_VOLTAGE_1"-"$GPU_VOLTAGE_2 | tee -a $LOGFILE
fi
echo "Setting GPU Voltage to "$GPU_VOLTAGE_1"-"$GPU_VOLTAGE_2
echo $GPU_VOLTAGE_1" "$GPU_VOLTAGE_2 > /sys/class/misc/gpu_voltage_control/gpu_control
else
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - gpu_control not found" | tee -a $LOGFILE
fi
echo "gpu_control not found"
fi
#########################
# Setting Chargingspeed #
#########################
if [ "$LOGMODE" = "1" ] || [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Setting Charging to "$CHARGE_AC" "$CHARGE_MISC" "$CHARGE_USB | tee -a $LOGFILE
fi
echo "Setting Charging to "$CHARGE_AC" "$CHARGE_MISC" "$CHARGE_USB
echo $CHARGE_AC" "$CHARGE_MISC" "$CHARGE_USB > /sys/devices/virtual/misc/charge_current/charge_current
####################
# 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
if [ `cat /sys/devices/platform/sec-battery/power_supply/battery/batt_soc` -le $LOWBATT_SOC ] ; then
if [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting CPU to "$LOWBATT_MIN"-"$LOWBATT_MAX" (Batt less then "$LOWBATT_SOC")" | tee -a $LOGFILE
fi
echo $LOWBATT_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $LOWBATT_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
if [ -n "$CHECKGOV_BATT" ]; then
if [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting Governor to "$LOWBATT_GOV" (Batt less then "$LOWBATT_SOC")" | tee -a $LOGFILE
fi
echo $LOWBATT_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
else
if [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting CPU to "$AWAKE_MIN"-"$AWAKE_MAX | tee -a $LOGFILE
fi
echo $AWAKE_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $AWAKE_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
if [ -n "$CHECKGOV_AWAKE" ]; then
if [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Awake | Setting Governor to "$AWAKE_GOV | tee -a $LOGFILE
fi
echo $AWAKE_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
fi
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
if [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Sleep | Setting CPU to "$SLEEP_MIN"-"$SLEEP_MAX | tee -a $LOGFILE
fi
echo $SLEEP_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $SLEEP_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
if [ -n "$CHECKGOV_SLEEP" ]; then
if [ "$LOGMODE" = "2" ] ; then
echo `date +%X`" - Sleep | Setting Governor to "$SLEEP_GOV | tee -a $LOGFILE
fi
echo $SLEEP_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
fi
done &)
fi