[Samsung Galaxy Nexus] ch33kybutt:
Startup script for CMPlus kernel

CMPlus kernel now includes a startup script with a customizable initialization file (/etc/cmplus.conf)

Settings below are customized to my preference. To customize, copy /etc/cmplus.conf to /sdcard/cmplus.conf then modify it yourself and save it. Your settings will survive any factory or system wipes, as long as /sdcard/cmplus.conf exists.

Script will first check for presence of /sdcard/cmplus.conf. If exists, it will load your settings then bypass my settings. If doesn't exist, then it will load my settings from /etc/cmplus.conf (see below)

# filename: /system/etc/cmplus.conf
# ==========================================
# Initialization file for /system/bin/cmplus
# ==========================================
# To survive /system wipes, copy this file to /sdcard/cmplus.conf then modify accordingly

# Enables/disables cmplus script
# 0 = disabled
# 1 = enabled
ENABLED=1

# Enables/disables Screenstate modes (Screen-ON = Performance, Screen-OFF = Economy)
# 0 = disabled
# 1 = enabled
SCREENSTATE=1

# Specifies min & max CPU frequency when screen-off and headset inserted (DEPENDS ON SCREENSTATE=1)
# 0 or blank = disabled (default)
# 1 = 200MHz
# 2 = 350MHz
# 3 = 528MHz
# 4 = 700MHz
# 5 = 920MHz
# 6 = 1072MHz
# 7 = 1200MHz
# 8 = 1350MHz
# 9 = 1420MHz
# 10 = 1500MHz
MUSIC_MIN_FREQ=1
MUSIC_MAX_FREQ=4

# Enables/disables SmartReflex 1.5 adaptive voltage control
# 0 = disabled
# 1 or blank = enabled (default)
SMARTREFLEX=

# Sets volume boost setting for headset/headphones
# 0 or blank = disabled (default)
# 1 = low boost
# 2 = medium boost
# 3 = high boost
VOLUME_BOOST=

# Enables/disables high performance audio for headset/headphones
# 0 or blank = disabled (default)
# 1 = enabled (WARNING: May increase battery drain during music playback)
HIGHPERF_SOUND=

# Enables/disables fast charge via USB
# 0 or blank = disabled (default)
# 1 = enabled
FAST_CHARGE=

# Sets maximum charging limit for battery (BLX)
# 0 to 100 (default=100)
BLX_LIMIT=

# Enables/disables Touchwake (tap to reactivate screen after timeout)
# 0 or blank = disabled (default)
# 1 = enabled
TOUCHWAKE=1

# Sets time to keep Touchwake active after screen timeout, in milliseconds
# 0 = indefinite (default=45000)
WAKE_DELAY=30000

# Sets level of vibration for haptic feedback
# 1000 to 1500 (default=1450)
VIBRATION=

# Sets status of WiFi on sleep (PM_MAX to save battery, PM_FAST for speed)
# 0 or blank = PM_MAX (default)
# 1 = PM_FAST
WIFI_PM=

# Enables/disables Fsync (single file/filesystem sync)
# 0 = disabled (WARNING: Disabling fsync increases the risk of data loss on a crash/freeze)
# 1 or blank = enabled (default)
FSYNC=

# Specifies max CPU frequency when screen-off
# 1 = 200MHz
# 2 = 350MHz
# 3 = 528MHz
# 4 or blank = 700MHz (default)
# 5 = 920MHz
# 6 = 1072MHz
# 7 = 1200MHz
# 8 = 1350MHz
# 9 = 1420MHz
# 10 = 1500MHz
SCREEN_OFF_MAX_FREQ=

# Selects GAMMA preset to control contrast
# 0 or blank = disabled (default)
# 1 to 10 = Lowest to Highest (WARNING: Software-based feature, enabling may slow down device response)
GAMMA_PRESET=7

# =================================================================================
# Your ROM's built-in Colour Controls may override all color control settings below
# =================================================================================

# Pause script X seconds to try to override any ROM color control settings ...
# Leave blank to disable pause
PAUSE=

# Set GAMMA Levels
# unknown range (default=0)
RED_GAMMA=
GREEN_GAMMA=
BLUE_GAMMA=

# Set Color Multipliers
# 0 = min, 4294967290 = max, (default=2004318071)
# WARNING: High levels (>2100000000) may cause screen burn-in damage
RED_MULTI=
GREEN_MULTI=
BLUE_MULTI=