clover: 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:
Danny Baumann 2018-08-16 13:39:50 +02:00 committed by Max Weffers
parent be19699d9b
commit e2f9acb1d9
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE

View file

@ -179,4 +179,9 @@
or a single SIM device can have 1 phones/logical modems, but 2 physical slots (one eSIM
and one pSIM) -->
<integer name="config_num_physical_slots">1</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>
</resources>