From eee56fc123a4579f2241d3682d65caf2e39df13c Mon Sep 17 00:00:00 2001 From: Midas Chien Date: Tue, 7 Jul 2020 23:03:06 +0800 Subject: veux: enable idle timer with kernel support Enable display kernel driver idle timer, which allows dropping to lower refresh rate earlier and without additional overhead. Bug: 160682800 Test: track idle timer through systrace Test: zone test, scrolling Change-Id: I6e82b58026d7b31cf0cabc0db7bb6277f6731d12 --- rootdir/etc/init.target.rc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rootdir') diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index c27ee5a..a80af43 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -283,3 +283,11 @@ service checknv /system/bin/checknv # Sync attribute value between system and vendor on property:persist.sys.mcc.mnc=* setprop persist.vendor.mcc.mnc ${persist.sys.mcc.mnc} + +on property:graphics.display.kernel_idle_timer.enabled=true + # Switch display mode to 60hz when idle + write /sys/devices/platform/soc/soc:qcom,dsi-display-primary/idle_mode "@60" + +on property:graphics.display.kernel_idle_timer.enabled=false + # Disable aggressive idle mode switching + write /sys/devices/platform/soc/soc:qcom,dsi-display-primary/idle_mode "none" -- cgit v1.2.3