[Galaxy S II Original Android Development] mihapodb:
Does anyone knows why my script does not get applied at all?

It is named "S91voltctrl" in init.d folder

Phone runs on totally default settings.

http://www.multiupload.com/VWZETQ1GGE

#!/system/bin/sh

#Variables to store frequency steps and voltages

AWAKE_MIN="100000"
AWAKE_MAX="1600000"
AWAKE_GOV="lulzactive"

PROFILE="true"
SLEEP_MIN="100000"
SLEEP_MAX="500000"
SLEEP_GOV="lulzactive"

F_STEP1="1600"
F_STEP2="1400"
F_STEP3="1200"
F_STEP4="1000"
F_STEP5="800"
F_STEP6="500"
F_STEP7="200"
F_STEP8="100"
STEP_FREQS=$F_STEP1" "$F_STEP2" "$F_STEP3" "$F_STEP4" "$F_STEP5" "$F_STEP6" "$F_STEP7" "$F_STEP8

AC_STEP1="1400"
AC_STEP2="1350"
AC_STEP3="1200"
AC_STEP4="1150"
AC_STEP5="1000"
AC_STEP6="950"
AC_STEP7="875"
AC_STEP8="850"
STEP_VOLTS=$AC_STEP1" "$AC_STEP2" "$AC_STEP3" "$AC_STEP4" "$AC_STEP5" "$AC_STEP6" "$AC_STEP7" "$AC_STEP8

echo $STEP_FREQS > /sys/devices/system/cpu/cpu0/cpufreq/freq_table
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
echo $STEP_VOLTS > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

#Set bus frequencies (400,400,266,266,266,266,133,133)
echo "0 0 1 1 1 1 2 2" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static
echo "enabled" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static

#Set gpu voltages, for default frequencies:160 & 267. (valid frequencies: 100 114 133 160 200 267 400)
echo "100 267" > /sys/class/misc/gpu_clock_control/gpu_control
echo "800000 1000000" > /sys/class/misc/gpu_voltage_control/gpu_control

#Dual core management: enable AFTR, load balancing and set second core thresholds
echo "1" > /sys/devices/system/cpu/sched_mc_power_savings
echo "3" > /sys/module/cpuidle/parameters/enable_mask
echo "70" > /sys/module/pm_hotplug/parameters/loadh
echo "25" > /sys/module/pm_hotplug/parameters/loadl
echo "90" > /sys/module/pm_hotplug/parameters/loadh_scroff
echo "35" > /sys/module/pm_hotplug/parameters/loadl_scroff

#Governor tweaks for a very responsive ondemandx which scales down aggressively when load is less
echo "70" > /sys/devices/system/cpu/cpufreq/ondemandx/up_threshold
echo "1" > /sys/devices/system/cpu/cpufreq/ondemandx/sampling_down_factor
echo "60000" > /sys/devices/system/cpu/cpufreq/ondemandx/sampling_rate
echo "10" > /sys/devices/system/cpu/cpufreq/ondemandx/down_differential

#Set i/o scheduler
echo sio > /sys/block/mmcblk0/queue/scheduler

#Screen off profile, disabled in the script. To enable, set PROFILE=true
if [ "$PROFILE" = "true" ]; then
(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