[Bug] Set Brightness to 0 no longer works on Android 12 (+ Settings workaround)

e.t.l

Member
When I use the Brightness action and set it to 0%, the brightness doesn't actually decrease to its mimimum value. Instead it decreases to what looks like about 15%. None of the alternate modes in the Brightness action make a difference.

The current workaround is to use the System Settings action to assign [System] screen_brightness = 1.

Running Macrodroid v5.18 in Android 12 on Google Pixel 3 (non-root)
 

MacroDroidDev

Administrator
Staff member
Thanks for raising this. I've just been testing on my Pixel 4a with Android 12 and I am seeing the same. The best I can do is the alternative mode and set it to 1 which then is basically as low as it can go.

I'll try and investigate but I may have to add a cludge where setting the value 0 will just use the value 1 to prevent this happening.
 

Moorhen

Member
Thanks for raising this. I've just been testing on my Pixel 4a with Android 12 and I am seeing the same. The best I can do is the alternative mode and set it to 1 which then is basically as low as it can go.

I'll try and investigate but I may have to add a cludge where setting the value 0 will just use the value 1 to prevent this happening.
1. What is alternative mode?
2. Is there any progress on this?
 

MacroDroidDev

Administrator
Staff member
The alternative mode is an attempt to map the brightness %age to a logarithmic actual value that seems to apply to many device on the latest Android versions. Some devices seem to have their own mapping so I don't think it works reliably across all devices.

There is also a way to set an absolute value so if all else fails you can experiment with this to find an appropriate value for your device.

The Kludge is in where it will map 0 to 1, so you can safely set to 0 and expect it to be at the lowest value.
 

Moorhen

Member
The alternative mode is an attempt to map the brightness %age to a logarithmic actual value that seems to apply to many device on the latest Android versions. Some devices seem to have their own mapping so I don't think it works reliably across all devices.

There is also a way to set an absolute value so if all else fails you can experiment with this to find an appropriate value for your device.

The Kludge is in where it will map 0 to 1, so you can safely set to 0 and expect it to be at the lowest value.
Thanks for your reply and suggestion. Where can I find the brightness %age setting? Is it under the System Settings trigger? I cannot find it.
 

Moorhen

Member
I'm not entirely sure what you mean. The brightness %age is the slider value on the action.
Thanks. Maybe we then don't understand each other. What I'm trying to achieve its to let MD set the brightness level for me. The existing action (Brightness) doesn't work on my pixel 6. You indicate that there is an alternative mode, but I don't understand where to find that and thus how to apply that. Do you mean it is in the same action as the existing one? If so, it doesn't work because that is the one am trying to apply (without success).
 
Top