[Asus  Eee Pad Transformer Prime] -viperboy-:
[MOD][Updated 1.12.12]viperControl v.001 for Transformer Prime - 1.5GHz&1.6GHz mode!

​

Introducing a VERY VERY early version of viperControl! I normally include this only with my ROMs, but since we can't do ROMs yet (thanks Asus!) I figured I would share with everyone :) There are things I need to improve, but everything should work. It was just a straight port from one of my other devices, so there is a ton of stuff in the vc file that I have disabled. None of it is really useful right now, it was meant to work with ROMs.

What does viperControl do on the Prime?​

Right now, it is extremely basic and I stumbled up on this when I saw files labeled "cpu1.sh" all the way to "cpu5.sh". I took a look at them, and they weren't able to be executed because the sh line was incorrect. However, I have corrected the scripts and made them executable. Not only that, I have made viperControl customizable so that you can adjust things and play around with the settings.

Be advised, I don't know everything that these settings do. I'm just basing the code on what I have seen Asus do. The only things I can tell you for sure is the Quick Mode Change. Here is what all the scripts do:

Power Save Mode​

​

#!system/bin/sh
#This is power save mode!
echo 2 > /sys/module/cpu_tegra/parameters/system_mode
echo 1200 > /sys/kernel/tegra_cap/core_cap_level
echo 1 > /sys/kernel/tegra_cap/core_cap_state
echo 1 > /sys/devices/platform/tegra_grhost/enable_3d_scaling
echo 0 > /sys/module/cpu_tegra3/parameters/mp_overhead
echo 1000000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_1
echo 1000000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_2
echo 720000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_3
echo 600000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_4
setprop power.saving.mode 2
setprop persist.tegra.NV_FPSLIMIT 0
setprop persist.sys.NV_FPSLIMIT 35

Balanced Mode

#!/system/bin/sh
#This is balance mode!
echo 1 > /sys/module/cpu_tegra/parameters/system_mode
echo 1200 > /sys/kernel/tegra_cap/core_cap_level
echo 1 > /sys/kernel/tegra_cap/core_cap_state
echo 1 > /sys/devices/platform/tegra_grhost/enable_3d_scaling
echo 10 > /sys/module/cpu_tegra3/parameters/mp_overhead
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_1
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_2
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_3
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_4
setprop power.saving.mode 0
setprop persist.tegra.NV_FPSLIMIT 0
setprop persist.sys.NV_FPSLIMIT 0

Normal Mode

#!/system/bin/sh
#This is normal mode!
echo 0 > /sys/module/cpu_tegra/parameters/system_mode
echo 1300 > /sys/kernel/tegra_cap/core_cap_level
echo 0 > /sys/kernel/tegra_cap/core_cap_state
echo 0 > /sys/devices/platform/tegra_grhost/enable_3d_scaling
echo 10 > /sys/module/cpu_tegra3/parameters/mp_overhead
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_1
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_2
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_3
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_4
setprop power.saving.mode 1
setprop persist.tegra.NV_FPSLIMIT 0
setprop persist.sys.NV_FPSLIMIT 0

1.5GHz Mode

#!/system/bin/sh
#This is 1p5g mode!
echo 3 > /sys/module/cpu_tegra/parameters/system_mode
echo 1300 > /sys/kernel/tegra_cap/core_cap_level
echo 0 > /sys/kernel/tegra_cap/core_cap_state
echo 0 > /sys/devices/platform/tegra_grhost/enable_3d_scaling
echo 10 > /sys/module/cpu_tegra3/parameters/mp_overhead
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_1
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_2
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_3
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_4
setprop power.saving.mode 1
setprop persist.tegra.NV_FPSLIMIT 0
setprop persist.sys.NV_FPSLIMIT 0

1.6GHz Mode

#!/system/bin/sh
#This is 1p6g mode!
echo 4 > /sys/module/cpu_tegra/parameters/system_mode
echo 1300 > /sys/kernel/tegra_cap/core_cap_level
echo 0 > /sys/kernel/tegra_cap/core_cap_state
echo 0 > /sys/devices/platform/tegra_grhost/enable_3d_scaling
echo 10 > /sys/module/cpu_tegra3/parameters/mp_overhead
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_1
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_2
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_3
echo 9999999 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_4
setprop power.saving.mode 1
setprop persist.tegra.NV_FPSLIMIT 0
setprop persist.sys.NV_FPSLIMIT 0

How To Use​

Known Issues​

Download​

​

​

​

​

http://bit.ly/wJt6VL​