Light sensor not triggering at 0 lux

Todi

New member
High, I have a 'screen off in pocket' macro that works great as long as at is light i.e. there is > 0 lux meassured. Meaning the macro is not triggering 'screen off' at dusk or in poorly lit situations. Any other situation, perfect!

I'm on a Samsung Note 20 Pro, Android 12.

Looking for a solution.
Thanks!
 

Attachments

  • Screenshot_20220706-182747_MacroDroid.png
    Screenshot_20220706-182747_MacroDroid.png
    201.5 KB · Views: 14

Dm114

Well-known member
High, I have a 'screen off in pocket' macro that works great as long as at is light i.e. there is > 0 lux meassured. Meaning the macro is not triggering 'screen off' at dusk or in poorly lit situations. Any other situation, perfect!

I'm on a Samsung Note 20 Pro, Android 12.

Looking for a solution.
Thanks!
What happens if you test at 1 lux instead of 0? Could it be an acceptable workaround for you?
 

Todi

New member
I tried that, 1,4, quite some. No difference.

I'm more thinking about a Macrodroid bug. It should trigger if it sees a reduction from n Lux to 0 (or 4 or whatever) lux. But if it detects 0 or 4 when the macro runs there is no change so it doesn't trigger.
 

Dm114

Well-known member
I tried that, 1,4, quite some. No difference.

I'm more thinking about a Macrodroid bug. It should trigger if it sees a reduction from n Lux to 0 (or 4 or whatever) lux. But if it detects 0 or 4 when the macro runs there is no change so it doesn't trigger.
This trigger fires when light intensity decreases (or increases) below (or above) the target value. So, it will never fire for 0 as target value (it cannot be lower than 0).

I tried it and, for me it works until 1 (of course not 0).
 

Todi

New member
This trigger fires when light intensity decreases (or increases) below (or above) the target value. So, it will never fire for 0 as target value (it cannot be lower than 0).

I tried it and, for me it works until 1 (of course not 0).
Exactly. It needs to fire when a condition is met (0) OR when it drops to the set value.

I'll contact the dev.
 
Last edited:

Snurre

Well-known member
I don't know if it will work, but have you tried to disable the "Proximity Sensor" so it's just the "Light Sensor" as trigger?
 

Dm114

Well-known member
The help text says it has to be below the selected value (not equal). So it's a bit weird...
 

dsnz

Well-known member
just to confirm,
out of curiosity I made the same macro (Android 11, Samsung Galaxy tab) and it works
 

dsnz

Well-known member
The help text says it has to be below the selected value (not equal). So it's a bit weird...
usually these between/below/above tests are inclusive ie. they include the critical value

so in this case the test is really value <= 0.0
 

Dm114

Well-known member
@Snurre and @dsnz look what happens to me (Samsung A40 under Android v9):
- it fires everytime I cover the sensor when target limit is 1.0 lux
- it fires approximately 1 time out of 10 if target limit is 0.0 lux

In both cases brightness is set to 10 (or 12) which is roughly the brightness before firing (see attachment)... 🤔☹️😉😄
 

Attachments

  • Screenshot_20220707-091403_MacroDroid.jpg
    Screenshot_20220707-091403_MacroDroid.jpg
    313.1 KB · Views: 5

dsnz

Well-known member
it's your phone that's very sensitive, and also you may be under very bright light so even with your finger there is still some lux going (yes it's possible kinda like how oxymeters work ; also my phone starts at 7 lux and not 10-12)
better try to block with a thick cardboard

as a side fun note
I forgot this macro enabled and wondered for a while why my tablet did phew phew at times 😂 without reason (some times even with screen off, yes it's amazing)
 

Todi

New member
Thanks for all the suggestions but if ambient light is already at 0 lux (which it is even if there's still light) it will not trigger.

I do need that to work for another idea that I have but for the pocket/off macro I now just use proximity close or flip down to switch off the screen. That also works.
 

Snurre

Well-known member
@Snurre and @dsnz look what happens to me (Samsung A40 under Android v9):
- it fires everytime I cover the sensor when target limit is 1.0 lux
- it fires approximately 1 time out of 10 if target limit is 0.0 lux

In both cases brightness is set to 10 (or 12) which is roughly the brightness before firing (see attachment)... 🤔☹️😉😄
Mine fires everytime even with sensor 0, and as @dsnz said with the phone covered, not just a finger
And I think there's a little confusion here, your sensor is set to 0 and your var shows 12, that's what it should
The sensor is what comes TO your phone and the brightnes is what comes FROM your phone, if you know what I mean
 
Top