objectives: switch off auto light sensor at preset time every day
edit: updated files.
-fixed missed notif between midnight - morning
-level 0 was not behaving correctly, changed to 1 as minimum (still the same-minimum intensity)
no autolight app is working for me, maybe because I have t-mob version and sensor is behind black color of digitizer. dunno
It's still sensing 0 lumens on total dark or on interior light during day.
At 0 lums, backlight is still on 3rd level, which is burning my eyes off if I want to read some sheet before dozing off for night.
Whttp://forum.xda-developers.com/images/editor/bold.gifhen this would switch hour after dark I never need to touch brightness again.
I made it for kaiser and now, being lazy, just change a little, so there is not a checkbox for auto, but entering value 99 would do it.
But no matter as you would use interface once or twice to set it, then it goes itself every day.
- no memory use, not running in background. done by notifications.
attached files:
CAB: should be uninstallable but don't forget to switch it off before uninstalling
zip: just script files for oems
UPDATED FILES
Very interesting thanks!
Related
Quick question -
I have a rooted HTC DesireHD & sometimes I'd like to use the 'Auto brightness' feature - especially if moving indoors/outdoors quite regularly.
However I've noticed that the screen brightness seems a little 'too' bright compared to how I usually have it (indoors I usually have it ~12%, outdoors ~90%) - In 'auto mode' the 'indoors' seem to be about 20-25%
I pretty sure that there is a way to telling the Android system the level to have the screen depending on how much light the light sensor picks up - but I think that involves editing certain files & 'ADB' command etc (which I'm not totally confident I could do)
Does any1 know of an App (preferably free) that shows the current light level picked up by the phone & the brightness level that's been currently used, which also allows you to alter (& save) a lower value for that light level (perhaps with a slider or value box ??)
Thanks in advance
Well despite 130 views - seems like no-one has any suggestions
Anyway, I persevered with Google play search & it seems I may've found a couple possibilities (Avaliable as 'free' and 'paid for') so I thought I'll post them here in case any1 else wants them
There's Custom Auto Brightness (free) here
AND
Lux Auto Brightness here (Lux has paid version that allows even darker levels of screen display)
I've tried out 'Custom Auto Level' but either I was doing something wrong, but on occasions it would'nt dim the screen in bright light (I tested by shining a torch onto the sensor), however I'm currently trying out the LUX [Free] version to see if it'll do the job
(Took a while to actually figure out that you had to use the 'Link' option to actually SET the brightness of screen to Level of light detected )
Just got the V10 and the second screen dims after 2 or 3 seconds after turning off the main screen. Is there a way to adjust the timing when the second screen dims? The dimmed second screen is almost unreadable because it is so dim.
Ditto, the idea that this is a replacement for a notification LED is really damaged by the dimming. (It's not just me that bought the phone based on that idea, right?) What I've found so far:
With the screen brightness set to 0, the second screen dims fully a few seconds after sleeping. Icons become about as noticeable as dust reflections.
With the screen brightness set to 100, the second screen follows the ambient light sensor after sleeping. Under bright light it turns itself up to the point where it's useable.
I've been playing with all the LEDs that Light Flow sees, but at least without root, nothing has any effect. I might look through the /sys files later. We probably need to get root first to figure this out.
On auto brightness it seems to be that the device adjusts the dimmed display for the ambient lighting? It's not the easiest thing in the world to see, but it's certainly not hard for me to see what notifications I have. I really prefer this over a colored LED.
Light Flow settings
For what it's worth, here's my current setup, now that the T-Mobile H901 is rooted. This does no one without root any good, and I don't know how it would translate to similar LED managers. I've been using Light Flow since the Sapphire (MyTouch 3G).
Light Flow device settings: check direct mode, root mode, and run every command as root. The Nexus 5 force reset option is checked by default and I don't know if that's relevant (no calls yet). Everything else in the menu is unchecked.
Let Light Flow control lcd-backlight-ex.
In a notification, set that "LED" to Solid and to 255 brightness. Check Enable Mixer and App controlled flash. With that last setting, the app will reset the brightness every few seconds even if the system dimmed it due to an ambient light change.
Now I need to edit some notification icons to be big and colorful. I wonder how this will impact battery life? Now the app is going to be awake all the time.
I've noticed that today on auto brightness the second screen will increase in light but not much. It also is not as smoth of a transition as on main display. It kinda jumps up real quick..
Yes for me I've noticed on Auto brightness the second screen will dim in a dark room and if you turn off your phone while in that room then come out... The second screen is still dim.... It's like th second screen doesn't respond to the light sensors at all unless the main screen is on.
Sent from my LG-H901 using XDA Free mobile app
It would have been nice if lg included the capability to change the second screen settings such a brightness or text color.
m0n0t0ne said:
It would have been nice if lg included the capability to change the second screen settings such a brightness or text color.
Click to expand...
Click to collapse
Another one of many things that it would be cool to see baked into a custom stock rom. Good stuff. I wonder if Cloudyfa might come over and cook on this awhile. I have always loved his stock Roms....
Sent from my LG-H901 using XDA Free mobile app
m0n0t0ne said:
It would have been nice if lg included the capability to change the second screen settings such a brightness or text color.
Click to expand...
Click to collapse
Color would be cool. A classic CRT bright/lime green, for instance, would probably show up much better than the white.
We need to get on their forums with these ideas. Maybe some will get squeezed into an update
An app which turns off auto dim in case screen is off would be pretty much help. Maybe I'll develop one.
Yesterday night I noticed that black pixels do not switch off completely on my phone. (as they should on AMOLED, right?)
Try it this way:
Set your screen brightness to almost a very low value.
Now look at a picture which has a black background and very little color in the middle etc. The room has to be dark, otherwise you wont see a difference. (You can also cover your had with a blanked etc., just wait a moment, so your eyes get used to the dark environment).
Hide the statusbar, navbar etc., so only your picture is shown (Tap on the picture once in Google Photos).
When you disable your lockscreen and switch the display on and off a few times you'll see that the picture vanishes first and than the display goes completely dark. It looks like a very light yellow back-light.
Another way:
Again in dark environment power off your phone. Switch it back on and watch the bootlogo. The surroundings (everything that's black) is truly black and "switched off" and than some secs before completing boot the "back-light" switches on.
I tried to find a solution for that. The only thing I found is a setting in Kernel Adiutor named "Minimum RGB value" under the screen section which is set to 35. However lowering it to 0 does not work, the value get reset to 35 every time (Higher value does not change anything either tho).
I'm running Oxygen OS 2.2.0 with bluespark kernel + root + xposed (Gravitybox + XInternalSD)
maybe the black is not that black?
edit: just tested with fullhd resolution black picture and red dot pixel in centre(PNG file, not jpg nor bmp) and everything is working as intended - black is pitchblack(same as when u just block/shutdown ur phone)
edit2: i'm not having my reflex by my side this couple of months, but you can check it making a photo in light isolated room with low shutter speed(20sec should be enough, if they really produce light)
AlexVendettA said:
maybe the black is not that black?
edit: just tested with fullhd resolution black picture and red dot pixel in centre(PNG file, not jpg nor bmp) and everything is working as intended - black is pitchblack(same as when u just block/shutdown ur phone)
edit2: i'm not having my reflex by my side this couple of months, but you can check it making a photo in light isolated room with low shutter speed(20sec should be enough, if they really produce light)
Click to expand...
Click to collapse
Thank you for testing. I reproduced your result with a #000000 PNG and everything seems fine, as long as the brightness does not go below a certain value. Turning auto brightness off and sliding the brightness completely down enables some kind of light in the whole panel.
Could it be some android feature, which put's a light overlay over the the screen image to protect the eyes in low light environments, like these warm filter mods?
Hi guys, how is the auto display brightness setting working
I've set it on automatic (checkbox is enabled), but when i go outside the brightness doesn't change.
I have to raise it manually on the slide down menue.
When going back inside the screen is too bright and i have to lower it again manually.
I can't notice any automatic change.
Phone is 100% stock.
Any ideas?
If you adjust it manualy even ONCE, the automatic brightness gets bugged( or this is how it works, idk).
To get it back working, go to display- and decheck and recheck the automatic and you are good to go.
Thanks for the update.
I would expect the auto adjustment to work again "normally" after closing and re-enabling the screen.
It will work, i encoutered the same problem after i manually adjusted it.
Well, honestly it's a pretty complicated procedure to get it right, you need to go to your average lighting place of use, I mean, if you are mostly in a dark room, you set the brightness as comfortably as you can, and leave it there, if you check the sliding bar for the Brightness while changing ambient light conditions it should move automatically, but it will only do it between a range, it should adjust the situation based on a comparison between the light conditions you setted up and the actual.
So, maybe if you go from a totally dark room to a sunny beach at noon, you won't see enough adjustment on the brightness because the algorithm isn't as smart to see that, it only moves certain percentage, in that you situation you should need to play a little bit with the brightness, something like setting up the dark place with more brightness in order to get a little more when you change to a very bright place.
I think it got better with the update today.
Put it on full brightness when leaving the office due to the sun.
After installing the update it went to almost lowest brighness.
Hope it goes back up tomorrow morning and its no coincidence.
As title says. Suddenly my phone started to turn to green/matte/muted without contrast and very faint colours. Takes a while, like 4 or 5 minutes, but it goes back to normal while doing some kind of vsync (you can see how it forces the grey scale back to normal as some kind of vsync error). Some icons with pure black background appear with the proper contrast and colours (!!!) and If I switch auto brightness to off doesn't happen [UPDATE: now it's permanent] - No root, updated to last 2022 march patch.
Any solutions?
Thanks in advance!
EDIT: after 12 hours of partial use I've identified the green tint behaviour, it happens when the light sensor tries to adapt the screen brightness. If low = perfect colours, if high = perfect colours. All the in between = green tint.