[Nexus 4 Original Android Development] brainbeatuk:
Re: [KERNEL][Mar 2][b42] _motley kernel for the N4 (new feature testing)

I have been messing around and found a great combo for gaming and battery life using android tuner but system tuner pro should work too.

I have first two cores at 304 to 1674 interactive with high speed at 702000. Last two are set on performance at 1620. Smooth and only switches last two cores for gaming or high usage . my script made with android tuner

BTW there is a bug/not really bug that makes it hard to save settings, if the last two cores are offline when you click set to boot it will not save properly, missing data in init.d script. I had to run geekbench 2 with perfmon running and press when all cores online, below is my init.d script. Btw I managed to get 2598 on default governor settings geekbench2 average 2400 with my edited governor settings.

" #!/system/bin/sh

if [ -e /data/local/cpu_protection ] ; then

echo failed > /data/local/cpu_failed

chmod 777 /data/local/cpu_failed

exit

fi

echo applied > /data/local/cpu_protection

chmod 777 /data/local/cpu_protection

chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "1620000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "304000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

echo "interactive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

echo "1620000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

echo "304000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

chmod 666 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

echo "performance" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

chmod 666 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq

echo "1620000" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq

chmod 666 /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq

echo "304000" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq

chmod 666 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

echo "performance" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

chmod 666 /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

echo "1620000" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

chmod 666 /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq

echo "304000" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq

echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay

echo 0 > /sys/devices/system/cpu/cpufreq/interactive/boost

echo 200000 > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration

echo 99 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo 702000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq

echo 60000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

echo 80 > /sys/devices/system/cpu/cpufreq/interactive/target_loads

echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate

echo 60000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay

echo 0 > /sys/devices/system/cpu/cpufreq/interactive/boost

echo 200000 > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration

echo 99 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo 702000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq

echo 60000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

echo 80 > /sys/devices/system/cpu/cpufreq/interactive/target_loads

echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate

echo 60000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

#! 600000 600000 600000 650000 650000 775000 800000 887500 912500 937500 950000 962500 990000 1000000 1062500 1062500 1125000

echo "304000 600000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "486000 600000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "594000 600000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "702000 650000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "810000 650000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "918000 775000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1026000 800000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1134000 887500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1242000 912500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1296000 937500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1350000 950000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1404000 962500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1458000 990000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1512000 1000000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1566000 1062500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1620000 1062500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "1674000 1125000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels"