From 3135fd7008585ce09b7077f97eb8b22fb5abc2df Mon Sep 17 00:00:00 2001 From: Robb Glasser Date: Mon, 4 Dec 2017 17:28:08 -0800 Subject: [PATCH] sm6150-common: rootdir: Enable idle_state mechanism Allows us to check the idle state of the display in order to use perf hints to improve system performance. Bug: 69270928 Bug: 69915886 Test: Booted and cat-ed the affected files Change-Id: I8717093e9b8ed9ed35b6ca51a20225abbf71f775 --- rootdir/bin/init.qcom.post_boot.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index 1f7f4db..cd8a061 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -182,6 +182,10 @@ case "$soc_id" in echo 2-5 > /dev/cpuset/system-background/cpus echo 2-5 > /dev/cpuset/restricted/cpus + # Enable idle state listener + echo 1 > /sys/class/drm/card0/device/idle_encoder_mask + echo 100 > /sys/class/drm/card0/device/idle_timeout_ms + # Turn on sleep modes. echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled ;; @@ -296,6 +300,10 @@ case "$soc_id" in echo 2-5 > /dev/cpuset/system-background/cpus echo 2-5 > /dev/cpuset/restricted/cpus + # Enable idle state listener + echo 1 > /sys/class/drm/card0/device/idle_encoder_mask + echo 100 > /sys/class/drm/card0/device/idle_timeout_ms + # Turn on sleep modes. echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled ;;