Skip to content
sonicxml edited this page May 13, 2012 · 7 revisions

Tweaks

How to use these:

Go into Terminal Emulator on your phone and type:

su

then the command for whatever tweak you would like to perform.

NOTE: They will not stick after a reboot unless you use an app (like Franco's, Ezekeel's, etc.) or an init.d script


Battery Life Extender - Ezekeel

Set a maximum charging limit for the battery. This increases the battery lifetime (slows down the decrease of the maximum charge by deteriorating physical/chemical processes) at the cost of reducing the maximum charge and thus the maximum battery runtime.

echo X > /sys/class/misc/batterylifeextender/charging_limit

where X is a number from 0-100. Default is 100, 96 is recommended to extended lifetime of the battery.


Color Control - Ezekeel and supercurio

Set the V1 gamma offset and color multiplier values for the display.

echo X > /sys/class/misc/colorcontrol/v1_offset

V1 gamma offset triple (default 0/0/0, set with 'echo "-4 0 5" > v1_offsets' for example, causing green tint when 2. value < 0)

echo X > /sys/class/misc/colorcontrol/multiplier

color multiplier triple (default = factory settings; set with 'echo "2004318071 2004318071 2004318071" > multiplier' for example; if the safety is enabled the color multipliers cannot be raised above the factory settings)

echo X > /sys/class/misc/colorcontrol/safety_enabled

enable = 1, disable = 0 (default enabled; enable/disable the safety limiting the color multipliers)

Disabling the safety and raising the color multipliers above the factory settings can damage the display and/or increase the rate of burn-in. You have been warned!


Fast Charge - Chad0989

This allows you to have the phone pull 1A of power from cables that it would normally pull less (like 500 mA).

echo X > /sys/kernel/fast_charge/force_fast_charge

where X is either 0 or 1. 0 turns the feature off, and 1 turns it on.


GPU OC Control - Imoseyon (modified by me)

This allows you to change the speed of the GPU on the fly.

echo X > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc

where X is 0, 1, 2, or 3.

0 = 307MHz

1 = 384MHz

2 = 460MHz

3 = 512MHz


SoundControl - Greg White and Ezekeel

Set volume boost and toggle high performance audio mode.

echo X > /sys/class/misc/soundcontrol/volume_boost

where X is the volume boost value from 0 to 3. (default 0 = no volume boost)

echo X > /sys/class/misc/soundcontrol/highperf_enabled

high performance audio mode, enable = 1, disable = 0 (default disabled, might increase battery drain during music playback)


Wifi Screen-Off Power Management - Francisco Franco

What this does is you have the option to choose what wifi “mode” you want to use when your screen is off. Normally, the device uses PM_FAST when the screen is on, providing good, speedy wifi performance. But when the screen turns off, it switches to the PM_MAX mode, which slows the wifi down in an effort to save battery. However, this can affect someone streaming music, causing them to have lower quality audio. This patch allows that person to set the wifi mode to PM_FAST when the screen is off, improving their audio quality, but maybe at the cost of their battery life.

echo X > /sys/module/bcmdhd/parameters/wifi_pm

where X can be 0 or 1. 0 (default) sets it to PM_MAX at screen-off, and 1 sets it to PM_FAST on screen-off.