aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootdir/etc/init.qcom.power.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc
index cac97a2..ea526d6 100644
--- a/rootdir/etc/init.qcom.power.rc
+++ b/rootdir/etc/init.qcom.power.rc
@@ -72,6 +72,12 @@ on charger
write /sys/module/msm_thermal/parameters/enabled "N"
start thermal-engine
+on property:sys.post_boot.parsed=1
+ # Setup permission for powerHAL
+ chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_trigger_count
+ chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hist_memory
+ chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_length
+
on enable-low-power
# Disable thermal hotplug to switch governor
write /sys/module/msm_thermal/core_control/enabled 0