Is it possible to force-update light sensor?

e.t.l

Member
@MacroDroidDev is it possible, with a shell script or (ideally) an option in the "Light Sensor" constraint, to force the Light Sensor to update?

My Pixel 3 seems not to update the light sensor data unless there is a large change in brightness (>50 lx*), which makes fine-grained control impossible. There is an option in macrodroid to force the light sensor to update at a regular interval, which makes me suspect that it would be possible to force it to update at just one macro-specific instant. Can you share the code that force-updates the light sensor?
 

Dm114

Well-known member
@MacroDroidDev is it possible, with a shell script or (ideally) an option in the "Light Sensor" constraint, to force the Light Sensor to update?

My Pixel 3 seems not to update the light sensor data unless there is a large change in brightness (>50 lx*), which makes fine-grained control impossible. There is an option in macrodroid to force the light sensor to update at a regular interval, which makes me suspect that it would be possible to force it to update at just one macro-specific instant. Can you share the code that force-updates the light sensor?
To force light sensor to update brightness, I use a very simple macro:
T: Time or whatever you want
A: Brightness -> untick Auto brightness (with previously stored current value or any value such as 20% to 50%)
A: Wait (± 500ms)
A: Brightness -> tick Auto brightness
 
Top