[Nexus 4 Android Development] xenyz:
Alright here they are. After using for a few days it seems fine. You need busybox installed and term-init for init.d support, or just run these scripts as root.

/etc/init.d/00kernel

#!/system/bin/sh

# Set Frequency

echo "162000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "162000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo "162000" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
echo "162000" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
echo "1512000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "1512000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "1512000" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo "1512000" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

# ondemand governor

echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
echo "0" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo "10000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo "95" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

# io scheduler

echo "row" > /sys/block/mmcblk0/queue/scheduler
echo "256" > /sys/block/mmcblk0/queue/read_ahead_kb

# GPU governor

echo "simple_ondemand" > /sys/devices/platform/kgsl-3d0.0/devfreq/kgsl-3d0.0/governor

# abuse ignore_nice_load

renice +1 -p `pidof system_server`
renice +2 -p `pidof sensors.qcom`
#renice +2 -p `pidof com.android.systemui`
renice +2 -p `pidof com.google.process.location`
renice +2 -p `pidof com.google.android.googlequicksearchbox:search`
renice +2 -p `pidof com.google.android.googlequicksearchbox`

/etc/init.d/01voltage

#!/system/bin/sh

# Set voltage

echo "-75000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "162000 700000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

/etc/init.d/02screen

#!/system/bin/sh

# bundi22 'iPhone 5'

#Setting rgb
color_r=255
color_g=255
color_b=255
echo "$color_r $color_g $color_b" > /sys/devices/platform/kcal_ctrl.0/kcal
echo 1 > /sys/devices/platform/kcal_ctrl.0/kcal_ctrl

#Setting gamma
g_white=0 #Whitepoint, LG=0x72, GOOG=0x40,40,20 Low values=extreme whites, risk of blown out highlights
g_mids=39
g_black=119 #Blackpoint, LG=0x76, GOOG=0x76,76,74 Low values=cut out, banding in the shadows
g_unknown1=0
g_contrast=6 #Contrast, LG=0x00, GOOG=0x00,00,1F
g_brightness=0 #Brightness, LG=0x00, GOOG=0x00,00,10
g_saturation=2 #Saturation, LG=0x50, GOOG=0x30,30,50
g_greys=0
g_unknown2=2

#Tweak red gamma values here if needed
gr_white=`expr $g_white + 0`
gr_mids=`expr $g_mids + 0`
gr_black=`expr $g_black + 0`
gr_unknown1=`expr $g_unknown1 + 0`
gr_contrast=`expr $g_contrast + 0`
gr_brightness=`expr $g_brightness + 0`
gr_saturation=`expr $g_saturation + 0`
gr_greys=`expr $g_greys + 0`
gr_unknown2=`expr $g_unknown2 + 0`
gr_cksummotley=`expr $gr_white + $gr_mids + $gr_black + $gr_unknown1 + $gr_contrast + $gr_brightness + $gr_saturation + $gr_greys + $gr_unknown2`

#Tweak green gamma values here if needed
gg_white=`expr $g_white + 0`
gg_mids=`expr $g_mids + 0`
gg_black=`expr $g_black + 0`
gg_unknown1=`expr $g_unknown1 + 0`
gg_contrast=`expr $g_contrast + 0`
gg_brightness=`expr $g_brightness + 0`
gg_saturation=`expr $g_saturation + 0`
gg_greys=`expr $g_greys + 0`
gg_unknown2=`expr $g_unknown2 + 0`
gg_cksummotley=`expr $gg_white + $gg_mids + $gg_black + $gg_unknown1 + $gg_contrast + $gg_brightness + $gg_saturation + $gg_greys + $gg_unknown2`

#Tweak blue gamma values here if needed
gb_white=`expr $g_white + 0`
gb_mids=`expr $g_mids + 0`
gb_black=`expr $g_black + 0`
gb_unknown1=`expr $g_unknown1 + 0`
gb_contrast=`expr $g_contrast + 0`
gb_brightness=`expr $g_brightness + 0`
gb_saturation=`expr $g_saturation + 0`
gb_greys=`expr $g_greys + 0`
gb_unknown2=`expr $g_unknown2 + 0`
gb_cksummotley=`expr $gb_white + $gb_mids + $gb_black + $gb_unknown1 + $gb_contrast + $gb_brightness + $gb_saturation + $gb_greys + $gb_unknown2`

echo "$gr_cksummotley $gr_white $gr_mids $gr_black $gr_unknown1 $gr_contrast $gr_brightness $gr_saturation $gr_greys $gr_unknown2" > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "$gg_cksummotley $gg_white $gg_mids $gg_black $gg_unknown1 $gg_contrast $gg_brightness $gg_saturation $gg_greys $gg_unknown2" > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "$gb_cksummotley $gb_white $gb_mids $gb_black $gb_unknown1 $gb_contrast $gb_brightness $gb_saturation $gb_greys $gb_unknown2" > /sys/devices/platform/mipi_lgit.1537/kgamma_b
echo 1 > /sys/devices/platform/mipi_lgit.1537/kgamma_apply

# Show the current configuration and the checksum
echo "Verify that the values are written correctly..\n"
echo "RGB values:"
cat /sys/devices/platform/kcal_ctrl.0/kcal
echo "\nRed gamma values:"
cat /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "\nGreen gamma values:"
cat /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "\nBlue gamma values:"
cat /sys/devices/platform/mipi_lgit.1537/kgamma_b
echo ""

#script by jazzboyrules

/etc/init.d/03cstates

#!/system/bin/sh

########### Retention States (C0,1,2 or 3) ###########

### C0 (WFI) - Shallowest Sleep (default enabled)
C0=1
echo "$C0" > /sys/module/pm_8x60/modes/cpu0/wfi/idle_enabled
echo "$C0" > /sys/module/pm_8x60/modes/cpu1/wfi/idle_enabled
echo "$C0" > /sys/module/pm_8x60/modes/cpu2/wfi/idle_enabled
echo "$C0" > /sys/module/pm_8x60/modes/cpu3/wfi/idle_enabled

echo "$C0" > /sys/module/pm_8x60/modes/cpu0/wfi/suspend_enabled
echo "$C0" > /sys/module/pm_8x60/modes/cpu1/wfi/suspend_enabled
echo "$C0" > /sys/module/pm_8x60/modes/cpu2/wfi/suspend_enabled
echo "$C0" > /sys/module/pm_8x60/modes/cpu3/wfi/suspend_enabled

### C1 (Retention) - slightly deeper sleep
C1=1
#echo "$C1" > /sys/module/pm_8x60/modes/cpu0/retention/idle_enabled
echo "$C1" > /sys/module/pm_8x60/modes/cpu1/retention/idle_enabled
echo "$C1" > /sys/module/pm_8x60/modes/cpu2/retention/idle_enabled
echo "$C1" > /sys/module/pm_8x60/modes/cpu3/retention/idle_enabled

echo "$C1" > /sys/module/pm_8x60/modes/cpu0/retention/suspend_enabled
echo "$C1" > /sys/module/pm_8x60/modes/cpu1/retention/suspend_enabled
echo "$C1" > /sys/module/pm_8x60/modes/cpu2/retention/suspend_enabled
echo "$C1" > /sys/module/pm_8x60/modes/cpu3/retention/suspend_enabled

### C2 (Stand Alone Power Collapse) - deeper sleep
C2=1
echo "$C2" > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
echo "$C2" > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
echo "$C2" > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled
echo "$C2" > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled

echo "$C2" > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
echo "$C2" > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
echo "$C2" > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled
echo "$C2" > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled

### C3 (Power Collapse) - deepest sleep
C3=1
echo "$C3" > /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled
echo "$C3" > /sys/module/pm_8x60/modes/cpu1/power_collapse/idle_enabled
echo "$C3" > /sys/module/pm_8x60/modes/cpu2/power_collapse/idle_enabled
echo "$C3" > /sys/module/pm_8x60/modes/cpu3/power_collapse/idle_enabled

echo "$C3" > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
echo "$C3" > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
echo "$C3" > /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled
echo "$C3" > /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled

############ eof ############

Important: Make sure your device can handle the undervolt before using/running 01voltage on startup!