From 4db22960ec0daa764b125931d8dc06835e9ec3aa Mon Sep 17 00:00:00 2001 From: Maulik Shah Date: Wed, 16 Dec 2015 10:41:19 +0530 Subject: [PATCH] post_boot: keep low power modes disabled for msm8953 Keep low power modes disabled for msm8953. Change-Id: I1f8ea9cacabac1853a900d3c1117cfdb8511eb82 --- rootdir/etc/init.qcom.post_boot.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index cec5365e..479612e8 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1045,6 +1045,25 @@ case "$target" in ;; esac +case "$target" in + "msm8953") + + if [ -f /sys/devices/soc0/soc_id ]; then + soc_id=`cat /sys/devices/soc0/soc_id` + else + soc_id=`cat /sys/devices/system/soc/soc0/id` + fi + + case "$soc_id" in + "293") + + # Keep low power modes Disabled + echo 1 > /sys/module/lpm_levels/parameters/sleep_disabled + ;; + esac + ;; +esac + case "$target" in "msm8937")