From 09f192745ce6aa64deb64df1ecde679ed08392ce Mon Sep 17 00:00:00 2001
From: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Tue, 12 Apr 2022 23:53:13 +0530
Subject: veux: Set refresh rate idle timeouts

This is a squash of the following:

1. Set refresh rate idle timeout in SF

 * This allows refresh rate to drop to 60Hz when idle,
   leading to minor power savings.

 * Kanged from redfin with minor modification.

2. Relax automatic refresh rate switching

 * In some cases there maybe a slight flickering while
   switching refresh rate. Increase the timeout to
   reduce the frequent switching and improve UX.

 * Move the props to product to override the ones in
   vendor which is set by display HAL configuration.

Change-Id: I5fbfd45fb30479db46970214db15a115acb075ef
---
 product.prop | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/product.prop b/product.prop
index 27b4ce2..b19345b 100644
--- a/product.prop
+++ b/product.prop
@@ -5,6 +5,11 @@ audio.sys.noisy.broadcast.delay=500
 audio.sys.offload.pstimeout.secs=3
 audio.sys.routing.latency=0
 
+# Display
+ro.surface_flinger.set_display_power_timer_ms=1000
+ro.surface_flinger.set_idle_timer_ms=500
+ro.surface_flinger.set_touch_timer_ms=800
+
 # Transcoding related property.
 debug.media.transcoding.codec_max_operating_rate_720P=240
 debug.media.transcoding.codec_max_operating_rate_1080P=120
-- 
cgit v1.2.3