Browse Source

cupid: overlay: Increase auto brightness debounce time

Our light sensor is getting confused when the screen brightness changes
in a rather dark environment and sometimes jumps between 0 and a higher
brightness leading to a raise in brightness, but then the sensor
over-corrects the read brightness and reports 0 again. Try to fix this
by giving the sensor some more time to debounce.

Change-Id: Ice8ad0b4e34af16bc905f84c27bd491378617cae
Arian 6 months ago
parent
commit
29e85577aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      overlay/Frameworks/res/values/config.xml

+ 2 - 2
overlay/Frameworks/res/values/config.xml

@@ -28,8 +28,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. -->
-    <integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
-    <integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
+    <integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
+    <integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>
 
     <!-- The maximum range of gamma adjustment possible using the screen
          auto-brightness adjustment setting. -->