From 4a3a76f061eae2cc193e673ffbbad9031a265be4 Mon Sep 17 00:00:00 2001 From: Marc Bourgoin Date: Fri, 30 Dec 2022 20:25:49 -0700 Subject: [PATCH] dubai: Modify automatic brightness values The values extracted from Stock ROM are quite dim on average and the minimum brightness is low, So let's remove the three minimum light sensor values on config_autoBrightnessLevels and the bottom four values and then add another value near max on config_autoBrightnessDisplayValuesNits to help increase the minimum brightness and also bump up the values for the other automatic brightness values. While we're at it, we shall also raise the values for DarkeningLightDebounce and BrighteningDebounce overlays so that it takes a lot longer before our device decides to actually lower the brightness to prevent super jarring brightness changes. Change-Id: Iacafa69d1e27b5201d98a832305c9afc5f228dd3 --- .../dubai/Frameworks/res/values/config.xml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/resource-overlay/dubai/Frameworks/res/values/config.xml b/resource-overlay/dubai/Frameworks/res/values/config.xml index bbe9804..e94f5a9 100644 --- a/resource-overlay/dubai/Frameworks/res/values/config.xml +++ b/resource-overlay/dubai/Frameworks/res/values/config.xml @@ -25,9 +25,6 @@ Must be overridden in platform specific overlays --> - 2 - 4 - 5 10 40 100 @@ -51,16 +48,13 @@ array. The brightness values must be non-negative and non-decreasing. This must be overridden in platform specific overlays --> - 2 - 7 - 10 - 12 24 95 111 149 192 252 + 376 500 @@ -110,8 +104,8 @@ when adapting to brighter or darker environments. This parameter controls how quickly brightness changes occur in response to an observed change in light level that exceeds the hysteresis threshold. --> - 500 - 500 + 2000 + 5000