From e112c80a6d73da061772205b3bbf2ecc723ec66a Mon Sep 17 00:00:00 2001 From: Midas Chien Date: Fri, 15 Feb 2019 11:07:01 +0800 Subject: [PATCH] sm6250-common: Enable display idle_state mechanism Allows us to check the idle state of the display in order to use perf hints to improve system performance. Bug: 124470767 Test: Booted and cated the affected files Change-Id: Ib22b5209c57725c50f3545c578af7b72e7f08322 --- rootdir/etc/init.qcom.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 0b4b3b4..7985ffe 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -514,6 +514,10 @@ on property:sys.boot_completed=1 chown media audio /sys/kernel/wdsp0/boot chown media audio /sys/kernel/wcd_cpe0/fw_name + # Enable idle state listener + write /sys/class/drm/card0/device/idle_encoder_mask 1 + write /sys/class/drm/card0/device/idle_timeout_ms 100 + # corefile limit on property:persist.debug.trace=1 mkdir /data/core 0777 root root