diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 2193c92..ee03e48 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -103,6 +103,7 @@ BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa880 BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom androidboot.console=ttyMSM0 BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3 BOARD_KERNEL_CMDLINE += service_locator.enable=1 +BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1 BOARD_KERNEL_CMDLINE += loop.max_part=7 BOARD_BOOTIMG_HEADER_VERSION := 1 diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index a0ee820..74e78ff 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -218,6 +218,9 @@ case "$target" in # Turn off scheduler boost at the end echo 0 > /proc/sys/kernel/sched_boost + + # Turn on sleep modes. + echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled ;; esac