[Nexus 4 General] shengovind:
Yo,.

[MENTION=3946657]xanthrax[/MENTION] start singing

[B]To Set CPU Governor :[/B]

Su
echo "NAME" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "NAME" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "NAME" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "NAME" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

NAME can be replaced by intellidemand, interactive, conservative, wheatley, ondemand, performance
Default is intellidemand. Changing NAME to conservative changes CPU governor to conservative

[HIDE]

[B]FOR SETTING GOVERNOR PARAMETERS:[/B]

First set governor then you will be able to edit these..
I do not know what each and every parameter does so these won’t help normal users’ and those who know what these mean will probably know how to edit these. But I’ve included them just because i had to …

[B]INTELLIDEMAND : [/B]

echo "FREQUENCY" > /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq

[U]Change FREQUENCY to required value of frequency. This is the frequency cpu is boosted to when screen is touched.[/U]

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/boostpulse

not sure what this does and what the set of values are

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/boosttime

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/down_differential

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_active_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_active_max_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_browser

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_inactive_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/lmf_inactive_max_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/powersave_bias

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate_min

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold_any_cpu_load

echo "??" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold_multi_core

[B]INTERACTIVE[/B]

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/above_high_speed_delay

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/boost

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration

[U]AFAIK this is the time for which cpu is boosted[/U]

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/target_loads

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate

echo "??" > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

[B]CONSERVATIVE[/B]

echo "FREQ" > /sys/devices/system/cpu/cpufreq/conservative/boostfreq
As told above

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/freq_step

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold

[B]WHEATLEY[/B]

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/allowed_misses

echo "FREQ" > /sys/devices/system/cpu/cpufreq/wheatley/boostfreq

told above

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/powersave_bias

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/sampling_factor

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/target_residency

echo "??" > /sys/devices/system/cpu/cpufreq/wheatley/up_threshold

[B]ONDEMAND:[/B]

echo "FREQ" > /sys/devices/system/cpu/cpufreq/ondemand/boostfreq

told above

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load

echo "??" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core

[B][I][U]GO HERE IF YOU WANT TO TRY AND MAKE SENSE OUT OF ALL THIS:[/U][/I][/B] http://xdaforums.com/showthread.php?t=1369817

[/HIDE]

[B]CHANGING GPU GOVERNOR[/B]

echo “GOVERNOR” > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/policy

[U]Change GOVERNOR to conservative, performance, simple, or ondemand.[/U]

DERPPPPP...!!!! DOESN'T WORK..!!

[B]TO ACTIVATE S2W[/B]

echo "1" > /sys/android_touch/sweep2wake

[B]TO DEACTIVATE S2W[/B]

echo "0" > /sys/android_touch/sweep2wake

[B]BOOST ON TOUCH[/B]

echo "X" > /sys/module/msm_hotplug/cpus_boosted

[U]X can be replaced by 1,2,3 or 4 . This sets number of cores to be boosted on touch,
Default is 2. Changing X to 4 boosts 4 cores on touch.[/U]

[B]MINIMUM NUMBER OF CPUS ONLINE[/B]

echo "X" > /sys/module/msm_hotplug/min_cpus_online

[U]X can be replaced by 1,2,3 or 4 . This sets number of cores to be online at all time,
Default is 1. Changing X to 2 makes sure 2 cores are online all the time.[/U]

[B]MAXIMUM NUMBER OF CORES ONLINE[/B]

echo "X" > /sys/module/msm_hotplug/max_cpus_online

[U]X can be replaced by 1,2,3 or 4 . This sets maximum number of cores that can go online,
Default is 4. Changing X to 2 makes sure your phone dual core.[/U]

[B]MAXIMUM FREQUENCY WHEN SCREEN IS OFF[/B]

echo "X" > /sys/module/msm_hotplug/suspend_freq

[U]X can take values 192000, 384000, 540000, 702000, 1026000, 1242000, 1350000, 1512000
Default is 702000. Changing X to 1026000 makes maximum frequency when screen is off to 1ghz[/U]

[B]TO SET OVERALL MAX FREQUENCY[/B]

echo "FREQ" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "FREQ" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "FREQ" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo "FREQ" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

FREQ can take values 192000, 384000, 540000, 702000, 1026000, 1242000, 1350000, 1512000
Default is 1512000. Changing FREQ to 1026000 makes maximum frequency to 1026000

[B]TO SET OVERALL MIN FREQUENCY[/B]

echo "FREQ" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "FREQ" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo "FREQ" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
echo "FREQ" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq

FREQ can take values 192000, 384000, 540000, 702000, 1026000, 1242000, 1350000, 1512000
Default is 192000. Changing FREQ to 1026000 makes minimum frequency to 1026000

TO ACTIVATE DOUBLE TAP TO WAKE
AFAIK d2w isn’t available in this kernel. So nothing doing. :P

Someone tell how to set gamma manually... Thank you.
There might be a lot of mistakes, so try and correct them..