Permalink
Browse files

Added new STweak CPU OC control! now user can have no OC or Ultra OC!

  • Loading branch information...
dorimanx committed Mar 9, 2014
1 parent c305c7c commit 503493c08f77e1f936d93eacf361e7fc860753ce
@@ -0,0 +1,43 @@
#!/sbin/busybox sh
# $1 - "oc_controller"
# $2 - value=
# Created By Dorimanx
BB=/sbin/busybox
# get values from profile
PROFILE=$(cat /data/.dori/.active.profile);
. /data/.dori/"$PROFILE".profile;
if [ "a$2" != "a" ]; then
oc_controller=$2;
case "${oc_controller}" in
ultra)
echo "2803200" > /sys/power/cpufreq_max_limit;
echo "2803200" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
$BB sh /res/uci.sh cpu_max_freq 2803200;
;;
high)
echo "2572800" > /sys/power/cpufreq_max_limit;
echo "2572800" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
$BB sh /res/uci.sh cpu_max_freq 2572800;
;;
stock)
echo "2265600" > /sys/power/cpufreq_max_limit;
echo "2265600" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
$BB sh /res/uci.sh cpu_max_freq 2265600;
;;
battery)
echo "1958400" > /sys/power/cpufreq_max_limit;
echo "1958400" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
$BB sh /res/uci.sh cpu_max_freq 1958400;
;;
*)
oc_controller=stock;
;;
esac;
fi;
echo ${oc_controller};
@@ -1,4 +1,5 @@
stweaks_boot_control=yes
oc_controller=stock
hotplug=default
eco_mode=eco
msm_thermal=msm_temp
@@ -15,6 +15,13 @@
<settingsPane description="Here you can tune CPU functions in kernel" name="CPU Tuning">
<spinner description="Control Over MAX allowed CPU frequency! here you can have normal 2.3Ghz max or HIGH OC up to 2.5Ghz or Ultra Power 2.8Ghz! or you can limit to only 2.0Ghz for battery save, when you set the value here all other apps or services cant set freq higher! so if you want more come here and set" name="OC Max Freq Control" action="oc_controller">
<spinnerItem name="Low freq 2.0Ghz" value="battery"/>
<spinnerItem name="Default 2.3Ghz" value="stock"/>
<spinnerItem name="High OC 2.5Ghz" value="high"/>
<spinnerItem name="Ultra OC 2.8Ghz" value="ultra"/>
</spinner>
<spinner description="CPU HotPlug Control, you can switch from LG Default HotPlug driver to IntelliHotPlug or Alucard driver, not that using Intelli CPU Thermal control with Default LG HotPlug is not recommended! low performance" name="HotPlug Driver" action="hotplug">
<spinnerItem name="Default LG" value="default"/>
<spinnerItem name="Alucard HotPlug" value="alucard"/>
@@ -53,7 +60,7 @@
<checkbox description="Enable or Disable CPU-Tweaks below! if ON then kernel will obey only STweaks and set the below freqs on screen OFF and ON" name="CPU-Tweaks" action="generic_cortex /tmp/cortexbrain_cpu" label="CPU-Tweaks"/>
<spinner description="Maximum CPU-Speed. You can tune the MAX CPU frequency (Default: 2265600 kHz)" name="Max CPU Frequency" action="cpu_max_freq">
<spinner description="Maximum CPU-Speed. You can tune the MAX CPU frequency, DEPEND ON CPU-Tweaks ON ABOVE! (Default: 2265600 kHz)" name="Max CPU Frequency" action="cpu_max_freq">
<spinnerItem name="2803200" value="2803200"/>
<spinnerItem name="2726400" value="2726400"/>
@@ -75,7 +82,7 @@
<spinnerItem name="300000" value="300000"/>
</spinner>
<spinner description="Minimum CPU-Speed. You can tune the MIN CPU frequency, MIN frequency cant be higher than MAX frequency! (Default: 300000 kHz)" name="Min CPU Frequency" action="cpu_min_freq">
<spinner description="Minimum CPU-Speed. You can tune the MIN CPU frequency, MIN frequency cant be higher than MAX frequency!, DEPEND ON CPU-Tweaks ON ABOVE! (Default: 300000 kHz)" name="Min CPU Frequency" action="cpu_min_freq">
<spinnerItem name="2496000" value="2496000"/>
<spinnerItem name="2419200" value="2419200"/>
<spinnerItem name="2265600" value="2265600"/>
@@ -1,4 +1,5 @@
stweaks_boot_control=yes
oc_controller=stock
hotplug=default
eco_mode=all
msm_thermal=msm_temp
@@ -1,4 +1,5 @@
stweaks_boot_control=yes
oc_controller=stock
hotplug=default
eco_mode=strict
msm_thermal=msm_temp
@@ -1,4 +1,5 @@
stweaks_boot_control=yes
oc_controller=ultra
hotplug=default
eco_mode=all
msm_thermal=msm_temp
@@ -1,4 +1,5 @@
stweaks_boot_control=yes
oc_controller=high
hotplug=default
eco_mode=all
msm_thermal=msm_temp

0 comments on commit 503493c

Please sign in to comment.