From 5ec60c1e749dcbc1c54d36bee14c0f7093f54349 Mon Sep 17 00:00:00 2001 From: Robb Glasser Date: Mon, 4 Dec 2017 17:28:08 -0800 Subject: [PATCH] kunlun2: 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 Signed-off-by: Henrique Pereira Signed-off-by: SamarV-121 --- 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 2a5b59a..2534709 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -77,6 +77,10 @@ on property:sys.boot_completed=1 write /dev/blkio/blkio.group_idle 2000 write /dev/blkio/background/blkio.group_idle 0 + # Enable idle state listener + write /sys/class/drm/card0/device/idle_encoder_mask 1 + write /sys/class/drm/card0/device/idle_timeout_ms 100 + on boot # Touchscreen chown system system /sys/class/touch/tp_dev/gesture_on