Page 1 of 1

AutoBrightness

Posted: 19 Apr 2014 12:35
by bichlepa
This flow automatically sets the brightness of the screen using the light sensor.

Please ensure that the options for this flow are set as following:
- Skip execution when an older instance is already running
- Automatic emergency stop: specific: 2000

The parameters In the script "Calculate screen brightness" are optimized for my Glaxy S2 plus. You may change these or invent an other calculation. If you have found the perfect formula for your device, post an answer. I will add them into this post.

Download:
https://www.dropbox.com/s/01ai42mx7ab1g ... htness.xml

Formulas for different devices in script "Calculate screen brightness":
  • Galaxy S2 plus:

    Code: Select all

    br= pow(light_level,0.4)*20

Re: AutoBrightness

Posted: 20 Apr 2014 19:19
by Nerey
It raises emergency stop in my case
And there is interesting behavior when I turning screen on and off fast :)

I think better way is to use trigger timer and second flow which turn it on and off

Re: AutoBrightness

Posted: 20 Apr 2014 20:06
by bichlepa
OK. I've updated the flow yesterday in the evening because there was a bug and I have set the emergency stop setting to a higher level.
On my phone there is no strange behavior when I turn the screen on and off quickly.

Re: AutoBrightness

Posted: 20 Apr 2014 20:39
by Nerey
The flow will be executed more than one time

Re: AutoBrightness

Posted: 20 Apr 2014 22:05
by bichlepa
Thanks for that I didn't mention following in the description:
You can prevent this by setting in the options of the flow: "Skip execution when an instance is already running".
I've updated the description.