[Sony Xperia L] Navneet Suresh:
Detailed Guide

echo 1 > /sys/module/rpm_resources/enable_low_power/L2_cache

echo 1 > /sys/module/rpm_resources/enable_low_power/pxo

echo 1 > /sys/module/rpm_resources/enable_low_power/vdd_dig

echo 1 > /sys/module/rpm_resources/enable_low_power/vdd_mem

echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled

•>> Enables suspend and sleep modules.( i think so.. :silly: )

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

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

•>> This tweak sets ondemand as default governor.

echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy

echo 4 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential

echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core

echo 3 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core

echo 918000 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq

echo 918000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq

echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load

•>> Sets advanced options of ondemand Gov

echo 1188000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 1188000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

•>> Sets Min/Max frequencies respectively. for both the CPU's

chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

chown root.system /sys/devices/system/cpu/mfreq

chmod 220 /sys/devices/system/cpu/mfreq

chown root.system /sys/devices/system/cpu/cpu1/online

chown root.system /sys/devices/system/cpu/cpu2/online

chmod 664 /sys/devices/system/cpu/cpu1/online

chmod 664 /sys/devices/system/cpu/cpu2/online

•>> Sets Permissions

echo 18 > /sys/devices/virtual/timed_output/vibrator/level

•>> Vibration Control on supported kernels, Supported in Phoenix Kernel ;)

vdd=-62500

echo ${vdd} > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

echo "All voltages changed by ${vdd}" > /data/local/tmp/vdd.txt

•>> Voltage Control Script, It has been set to max UV by defaule i.e. -62 mV

Note : As the Name suggests its init.d script saved in etc/init.d folder set the permission of the script to 755.​