sdm660-common: overlay: Give light sensor some time to warm up
When being in dark environments, turning screen off, then moving to bright environments and turning screen on, sometimes it happens that the light sensor emits an initial light sample of 1 lux, which causes the automatic brightness controller to ramp down the brightness even though the ambient brightness is high. Avoid the controller using those samples by giving the light sensor some time to warm up. Change-Id: I81dcb41a25ff0c9f0cf3265da7054ac7ebcbcc34
This commit is contained in:
parent
bccffd2e78
commit
0b368e57b4
1 changed files with 5 additions and 0 deletions
|
@ -97,6 +97,11 @@
|
|||
<!-- Period of time in which to consider light samples in milliseconds. -->
|
||||
<integer name="config_autoBrightnessAmbientLightHorizon">16000</integer>
|
||||
|
||||
<!-- Amount of time it takes for the light sensor to warm up in milliseconds.
|
||||
For this time after the screen turns on, the Power Manager
|
||||
will not debounce light sensor readings -->
|
||||
<integer name="config_lightSensorWarmupTime">200</integer>
|
||||
|
||||
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
|
||||
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||
|
||||
|
|
Loading…
Reference in a new issue