diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index fc30391e..e6f14b27 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1014,22 +1014,10 @@ case "$target" in soc_revision=`cat /sys/devices/soc0/revision` if [ "$soc_revision" == "2.1" ]; then - # Disable C4, D3, D4 and M3 LPMs - echo 0 > /sys/module/lpm_levels/system/pwr/cpu0/fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/pwr/cpu1/fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/perf/cpu2/fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/perf/cpu3/fpc/idle_enabled + # Enable C4.D4.E4.M3 LPM modes + # Disable D3 state echo 0 > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/idle_enabled - echo 0 > /sys/module/lpm_levels/system/pwr/pwr-l2-fpc/idle_enabled echo 0 > /sys/module/lpm_levels/system/perf/perf-l2-gdhs/idle_enabled - echo 0 > /sys/module/lpm_levels/system/perf/perf-l2-fpc/idle_enabled - echo 0 > /sys/module/lpm_levels/system/system-fpc/idle_enabled - - # Enable C4 LPM mode - echo 1 > /sys/module/lpm_levels/system/pwr/cpu0/fpc/idle_enabled - echo 1 > /sys/module/lpm_levels/system/pwr/cpu1/fpc/idle_enabled - echo 1 > /sys/module/lpm_levels/system/perf/cpu2/fpc/idle_enabled - echo 1 > /sys/module/lpm_levels/system/perf/cpu3/fpc/idle_enabled echo N > /sys/module/lpm_levels/parameters/sleep_disabled else #Disable suspend for v1.0 and v2.0