[Asus Transformer TF700] Hundsbuah:
New testkernel v2.2 20130405:

- removed gpu_oc interface

- removed gpu_og_volt interface

- setting the frequency limit is now done via cpuX.sh or a terminal emulator

- pwr_cap_limit_1: CPU1, pwr_cap_limit_2: CPU2, pwr_cap_limit_3: CPU3, pwr_cap_limit_4:CPU4

- module parameters can be used in cpuX.sh files or in a terminal emulator with superuser rights (see below for a howto, i recommend to edit the cpuX.sh files ( /system/etc/cpuX.sh) with root explorer i.e)

- voltage table has changed due dvfs table cleanup!!!! dont use your init.d scripts to set the voltages at startup

(delete or disable the scripts first, then install this new testkernel!!)

- added a new module parameter to notify the cpu that the cpu2.sh file was executed and cpu freq limits are (correct) set (look at system/etc/init.d/99bootcompleted)

you dont have to do anything, just dont delete it or you will stuck at 1700MHz (system/etc/init.d/99bootcompleted)

- lpcore oc now works (760MHz lp oc)

- you need a working init.d support!!

HOWTO:

Limiting the CPU:

possible cpu frequencys that can be used to set the maximum allowed frequency (applied via module parameter: echo "1800000" /sys/module/cpu_tegra/parameters/pwr_cap_limit_1):

Here you set frequency values to the module parameters (gpu is different - see below)

51000
102000
204000
295000
370000
428000
475000
513000
579000
620000
760000
910000
1000000
1150000
1300000
1400000
1500000
1600000
1700000
1750000
1800000
1850000
1900000

Example:

echo 760000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_1
echo 760000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_2
echo 760000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_3
echo 760000 > /sys/module/cpu_tegra/parameters/pwr_cap_limit_4

This will limit core1, core2, core3 and core4 to a maximum frequency of 760MHz

Limiting the GPU:

Here you set !!VOLTAGE!! values to the module parameters (not frequencys as by the cpu module parameters!)

You need four calls:

1. echo 1350 > /sys/kernel/tegra_cap/cbus_cap_level

2. echo 1350 > /sys/kernel/tegra_cap/core_cap_level

3. echo 1 > /sys/kernel/tegra_cap/cbus_cap_state

4. echo 1 > /sys/kernel/tegra_cap/core_cap_state

possible (best) gpu voltage values that can be used to limit the gpu frequency to a specific frequency (applied via four parameter settings as described above):

1350mV for 600MHz
1375mV for 650MHz
1410mV for 700MHz
1430mV for 750MHz
1460mV for 775MHz

Example: (REMEMBER TO SET THE VOLTAGE AND NOT THE FREQUENCY!!)

echo 1350 > /sys/kernel/tegra_cap/cbus_cap_level
echo 1350 > /sys/kernel/tegra_cap/core_cap_level
echo 1 > /sys/kernel/tegra_cap/cbus_cap_state
echo 1 > /sys/kernel/tegra_cap/core_cap_state

This will limit the maximum gpu frequency to 600MHz (good for asus power saver mode i.e) and takes care of clocks depending on gpu clocks

You can also go lower than 1350mV but the gui transisions feels a bit slower then.

Here is the complete VOLT/FREQ Table (in mV and kHz):

Voltage (mV): 950, 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, 1375, 1410, 1430, 1460
Frequency (kHz): 200000, 247000, 304000, 361000, 408000, 446000, 484000, 520000, 600000, 650000, 700000, 750000, 775000

You can change the cpu1.sh (asus powersaver mode), cpu2.sh(asus balanced mode) and cpu3.sh(asus normal/performance mode) cpu frequency and gpu voltage (located int: /system/etc/)

to your needs.

Tip: Get rid of the naming of the asus power modes. You can let the cpu1.sh as a powersaver but you can use balanced mode as a max. power mode (1800MHz for cpu revision 9

and 1900MHz for tablet who can handle this frequency and 750MHz GPU) for working/surfing (not gaming!) etc. to make the tablet as fast as possible to respond to your inputs.

cpu3.sh can now be used as a gaming profile (you set cpu to 1600MHz max. and gpu to 650 or 700MHz i.e, so the tablet wont get too hot when playing games/high load)

I have resetted the voltage table to stock voltages because i rebuilded the dvfs table for the cpu0 and cpug.

Therefore as always: Please try to undervolt as much as you can!

Download:

http://www.androidfilehost.com/?w=files&flid=3972

Enjoy the new kernel! And have a nice weekend ;)

/edit: Updated sources on github