From 8b97ab3a18f2dba6098d8683a11f96ad6c9944d8 Mon Sep 17 00:00:00 2001 From: Ramisky Date: Fri, 17 Dec 2021 15:30:02 +0000 Subject: [PATCH] sm7250-common: set Surfaceflinger refresh rate timers This to allow us to idle to lower refresh rates even if the app is requesting a higher one if it's idle to save battery life, or boost even on apps that don't request a certain high refresh rate to get a smoother experience Change-Id: Ie611283e1d75a31b218454073e85742be91fdf07 Signed-off-by: aswin7469 --- common.mk | 3 +-- vendor.prop | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common.mk b/common.mk index 5e6bcf1..c7337ef 100644 --- a/common.mk +++ b/common.mk @@ -503,8 +503,7 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ ro.surface_flinger.protected_contents=true \ ro.surface_flinger.use_color_management=true \ ro.surface_flinger.refresh_rate_switching=true \ - ro.surface_flinger.wcg_composition_dataspace=143261696 \ - ro.surface_flinger.use_content_detection_for_refresh_rate=true + ro.surface_flinger.wcg_composition_dataspace=143261696 # Disable Rescue Party on userdebug & eng build ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) diff --git a/vendor.prop b/vendor.prop index 0e9aa25..a71b4ea 100644 --- a/vendor.prop +++ b/vendor.prop @@ -230,6 +230,12 @@ persist.vendor.radio.rat_on=combine persist.vendor.radio.sib16_support=1 ro.com.android.dataroaming=false +# Refresh Rate +ro.surface_flinger.use_content_detection_for_refresh_rate=true +ro.surface_flinger.set_display_power_timer_ms=1000 +ro.surface_flinger.set_idle_timer_ms=80 +ro.surface_flinger.set_touch_timer_ms=200 + # Seamless transfer sys.fflag.override.settings_seamless_transfer=true