aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootdir/etc/init.target.rc8
-rw-r--r--vendor.prop1
2 files changed, 9 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"
diff --git a/vendor.prop b/vendor.prop
index b9623ea..a70fd1d 100644
--- a/vendor.prop
+++ b/vendor.prop
@@ -205,6 +205,7 @@ ro.surface_flinger.has_wide_color_display=true
ro.surface_flinger.max_frame_buffer_acquired_buffers=3
ro.surface_flinger.max_virtual_display_dimension=4096
ro.surface_flinger.protected_contents=true
+ro.surface_flinger.support_kernel_idle_timer=true
ro.surface_flinger.use_color_management=true
ro.vendor.colorpick_adjust=true
ro.vendor.all_modes.colorpick_adjust=true