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 <hlcpereira@pixelexperience.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
Robb Glasser 2017-12-04 17:28:08 -08:00 committed by GiaSen
parent 37bb69e906
commit 5ec60c1e74

View file

@ -77,6 +77,10 @@ on property:sys.boot_completed=1
write /dev/blkio/blkio.group_idle 2000 write /dev/blkio/blkio.group_idle 2000
write /dev/blkio/background/blkio.group_idle 0 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 on boot
# Touchscreen # Touchscreen
chown system system /sys/class/touch/tp_dev/gesture_on chown system system /sys/class/touch/tp_dev/gesture_on