aboutsummaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorMidas Chien <midaschieh@google.com>2020-07-07 23:03:06 +0800
committersinanmohd <pcmsinan@gmail.com>2023-01-05 21:27:38 +0530
commiteee56fc123a4579f2241d3682d65caf2e39df13c (patch)
tree8f25c578a06b5761007bac4595351aa87910a1cd /rootdir
parent993ccd54fa292ae790fc85f72993aee872d72c7d (diff)
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
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/etc/init.target.rc8
1 files changed, 8 insertions, 0 deletions
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"