[Galaxy S II Original Android Development] desean:
not sure if anyone have this problem (as I have not read anyone complaining about this problem yet), but some of the settings do not stick, even after adding "chmod 444 xxxxxx"

those that do not stick for me are:

/sys/devices/system/cpu/cpufreq/lulzactive/inc_cpu_load

/sys/devices/system/cpu/cpufreq/lulzactive/pump_up_step

/sys/devices/system/cpu/cpufreq/lulzactive/pump_down_step

/sys/devices/system/cpu/cpufreq/lulzactive/up_sample_time

/sys/devices/system/cpu/cpufreq/lulzactive/down_sample_time

/sys/devices/system/cpu/cpufreq/lulzactive/screen_off_min_step

/sys/class/misc/gpu_clock_control/gpu_control

/sys/class/misc/gpu_voltage_control/gpu_control

/sys/class/misc/brightness_curve/min_bl

/sys/class/misc/brightness_curve/min_gamma

/sys/class/misc/brightness_curve/max_gamma

my modified 01siyah (from siyah-battery) script, with 0755 permission:

#!/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 frequency steps according to the number of steps in your kernel.
echo "1600 1400 1200 1000 800 500 200 100" > /sys/devices/system/cpu/cpu0/cpufreq/freq_table

#Sets global scaling min&max frequencies as
echo "100000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "800000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

#undervolting. stock voltage without 100mhz and 1600mhz: "1300 1250 1175 1050 950 950"
echo "1400 1300 1250 1150 1000 925 850 825" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

#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

#io scheduler
echo "sio" > /sys/block/mmcblk0/queue/scheduler
chmod 444 /sys/block/mmcblk0/queue/scheduler

#cpu governor
echo "lulzactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

#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
chmod 444 /sys/devices/system/cpu/cpufreq/lulzactive/inc_cpu_load
chmod 444 /sys/devices/system/cpu/cpufreq/lulzactive/pump_up_step
chmod 444 /sys/devices/system/cpu/cpufreq/lulzactive/pump_down_step
chmod 444 /sys/devices/system/cpu/cpufreq/lulzactive/up_sample_time
chmod 444 /sys/devices/system/cpu/cpufreq/lulzactive/down_sample_time
chmod 444 /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 "900000 950000 1000000" > /sys/class/misc/gpu_voltage_control/gpu_control
chmod 444 /sys/class/misc/gpu_clock_control/gpu_control
chmod 444 /sys/class/misc/gpu_voltage_control/gpu_control

#enable sched_mc
echo "1" > /sys/devices/system/cpu/sched_mc_power_savings

#enable AFTR
echo "3" > /sys/module/cpuidle/parameters/enable_mask

#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
chmod 444 /sys/class/misc/brightness_curve/min_bl
chmod 444 /sys/class/misc/brightness_curve/min_gamma
chmod 444 /sys/class/misc/brightness_curve/max_gamma

#static bus frequency
#echo "enabled" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static

#set AC, Misc & USB charge current
#echo "750 650 450" > /sys/devices/virtual/misc/charge_current/charge_current

#disable logger (will take effect after a reboot)
#mkdir /data/.siyah
#chmod 777 /data/.siyah
#touch /data/.siyah/disable-logger

01siyah is my only init.d script btw. Anyone else or it is just me?

---------- Post added at 12:30 AM ---------- Previous post was at 12:28 AM ----------

same link, just download again.