• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[Profile] [Light Sensor] V2 - Brightness adjust on Screen on

Hmmm. This is what I get when I import:
 

Attachments

  • uploadfromtaptalk1347647380513.jpg
    uploadfromtaptalk1347647380513.jpg
    46.9 KB · Views: 269
Upvote 0
The point of the else is to skip the other checks if the first one matches.

Yes I know how it works. I use it in places too. However if is the last value, it checks everything before it first.

I'm not sure why you see 3 different brightness settings on your device. Theres no way your device is too slow, so why its acting so slow is beyond me.

Sure if this works for you better, use it. But I would still recommend having the less than setting first if you're having trouble getting it to run
 
Upvote 0
I mentioned that problem earlier with touching my notification bar. Also sometimes, it would be at 0 but the slider would register one of the profile values.

This happened a lot when I was testing alternative methods looking for a v2 candidate. Sometimes a reboot fixed. Other time I had to restore the entire app data.

I never got passed that to be honest. Thsts why v2 is how it is. It works reliably for me
 
Upvote 0
My version seems to be working now. So far on the low end I've seen lightvalues of 160, 225 and 320. The high is 10240 or something like that. Do your phones have the same range of values?

* This is cool. I just tweaked my lowest level to < 230 to catch the 225 level because it was a bit bright. This is how auto-brightness should work.
 
Upvote 0
I changed the context for GetLight back to Display On and it didn't apply until the second time I turned the display on. Weird. Back to Display Unlocked.

On my phone Tasker takes about a second to process each line of code. I added a %Brightness variable so I can monitor %BRIGHT and the variable changes a second after the screen brightness changes.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones