Page 1 of 1

"Set Screen Brightness" not working

Posted: 04 Nov 2015 18:53
by StrayCat
Hi.

I have a flow to set screen brightness to automatic between certain hours and to value of 21 the rest hours. Set screen brightness to automatic works ok. But to put screen brightness to 21 in my device I need to set "screen brightness" value on 95 on aotomagic.

My device is a rooted LG G Pro 2 with android kitkat on LG stock rom.

Regards.

Re: "Set Screen Brightness" not working

Posted: 04 Nov 2015 19:39
by Martin
Hi,

So changing the screen brightness in Automagic actually changes the screen brightness but the values within Automagic and the system settings slider do not match?
What kind of range of brightness does your device provide? 1-100? Internally Android supports values from 0 to 255. Maybe your device displays the brightness on another scale which might not even be linear.
Can you try the following:
  1. set the screen brightness to 21 using the system settings (in the UI of your device, not with Automagic)
  2. create an action Init Variable System Setting in Automagic
  3. within the action, use the [...]-button to show the list of settings
  4. scroll down to screen_brightness and check the value
Does your device show approximately 95?

Regards,
Martin

Re: "Set Screen Brightness" not working

Posted: 05 Nov 2015 10:51
by StrayCat
Hi, Martin.

Thank you for your quick response.
Martin wrote:Hi,

So changing the screen brightness in Automagic actually changes the screen brightness but the values within Automagic and the system settings slider do not match?
Yes. That's it.
Martin wrote:What kind of range of brightness does your device provide? 1-100? Internally Android supports values from 0 to 255. Maybe your device displays the brightness on another scale which might not even be linear.
Yes. Exactly 1-100 range.

Martin wrote:Can you try the following:
  1. set the screen brightness to 21 using the system settings (in the UI of your device, not with Automagic)
  2. create an action Init Variable System Setting in Automagic
  3. within the action, use the [...]-button to show the list of settings
  4. scroll down to screen_brightness and check the value
Does your device show approximately 95?

Regards,
Martin
Yes. Exactly. That's it.

Regards.

Re: "Set Screen Brightness" not working

Posted: 06 Nov 2015 19:29
by Martin
Hi,

The mapping of the 100 values to the technically possible 255 values is not defined in stock Android so it's likely the definition of the manufacturer of your device (Google uses a linear scale on the Nexus devices so 21 would be ~53).
I recommend to use the action Init Variable System Setting to check what technical value the device uses and then configure the action in Automagic accordingly.

Regards,
Martin