ambient light sensor misbehave after MIUI 11 (Android 9) - Xiaomi Redmi 6 Questions & Answers

Hello, I have the redmi 6 for almost a year and so far so good with how the automatic brightness worked.
The brightness slider was working as a suggestion for the ambient light sensor so if I found the automatic being too dim I could just up the slider to my tastes and have the automatic lighting adjusting accordingly.
After the last update to MIUI 11 and android 9 however the automatic light is just way to dark and the slider is moving completely on it's own without taking input from me, so I just can't have both automatic brightness and configure how strong it will be at the same time.
Is this a bug or the way android 9 works? Any workaround to change it back to the old functionality?

Related

How to up the brightness 1 notch on Auto adjust backlight

Hi,
Anyone know how I can up the brightness 1 or 2 notches from the default Auto Adjust Backlight settings?
Basically I love the light sensor i.e. auto backlight adjustment feature but in a normal room I would like the backlight up 1 notch from the brightness based on my ambient light.
I can switch off the auto adjustment but when I go out into the bright sunlight, I can't read a single thing on screen until I go and max out the backlight manually.
Hope some one can "shed some light" on this! ;-) hahaha.

[Q] Auto backlight customization

Is there any way to customize the auto backlight levels in mango? The screen is always too bright indoors and too dim outdoors.
tht's true, it would be cool to customize, because auto backlight depends on the battery level but nothing about light sensor...
Umm, the automatic backlight is very much based on the phone's light sensor. Battery Saver *might* lower the brightness automatically, but the "Automatic" option under Settings -> Brightness is based on the light level that the phone detects.
wow...shame on me i didn't notice that...
HD7 screen is not really effective when sun is shining outdoor...

s6 full brightness

Hi everyone. Is there a way to trick the brightness sensor so that we can get the extra brightness /contrast under the adaptive display mode? I imagine it like a brightness sensor calibration under strong light! so every time one uses the auto brightness it would scale immediately to the max+ brightness .
Anyone thinks it is possible?
Thanks

Minimum brightness of manual not as low as automatic

I use One plus One. On it, if i use manual brightness on MX and turn it all the way to minimum, it is still too bright in the darkness of night. Automatic brightness is dark enough.

[APP][Android 8+] Digilux - Control your phone's brightness w/the fingerprint sensor

I wrote an App that lets you control your phone's brightness provided it's running Android 8.0+ and has a compatible fingerprint sensor.
I wrote it because I change my phone's brightness as often as I change it's volume, if not more, and I was upset I didn't have dedicated hardware for it. When Oreo launched and it added fingerprint gesture detection, I figured it was time
I own and test on the OG Google Pixel, and the app has been out for 2 weeks so I've been able to squash most bugs.
Feedback and suggestions are most welcome!
https://play.google.com/store/apps/details?id=com.tunjid.fingergestures
Link doesn't work.
Dude... THANK YOU. Aside from ad-blocking and kernel tweaks, one of the main reasons I've always rooted was for the status bar brightness slider, and this is an even better implementation of it (I love hardware switches). The ads would never get in my way at all, but I went ad-free just out of appreciation.
mmartenn said:
Link doesn't work.
Click to expand...
Click to collapse
Thanks for catching that, fixed!
How to check is my fingerprint compatible?
Device is OnePlus 3T.
mihata said:
How to check is my fingerprint compatible?
Device is OnePlus 3T.
Click to expand...
Click to collapse
For your device to be compatible, you have to be running Android Oreo and your OEM would need to support fingerprint gestures on a firmware level. I don't believe the One Plus 3T Oreo beta supports it at the moment.
The app is super cool; I love the option to adjust brightness via the fingerprint reader! One major complaint keeps me from using it though, which is that it always disables adaptive brightness when making an adjustment. This is extremely jarring when it's dark and I just want to dim the screen a bit, but bringing it down from 40% (adaptive) to 20-30% (absolute) actually makes the screen brighter. I hope for the next version you consider having the option to leave adaptive brightness on while making adjustments. Thanks!
teiglin said:
The app is super cool; I love the option to adjust brightness via the fingerprint reader! One major complaint keeps me from using it though, which is that it always disables adaptive brightness when making an adjustment. This is extremely jarring when it's dark and I just want to dim the screen a bit, but bringing it down from 40% (adaptive) to 20-30% (absolute) actually makes the screen brighter. I hope for the next version you consider having the option to leave adaptive brightness on while making adjustments. Thanks!
Click to expand...
Click to collapse
Hi! I experimented with this previously, but since adaptive brightness is managed by the system, leaving it on when you adjust brightness will cause the brightness to be reset immediately by the adaptive brightness service. The compromise I added was allowing adaptive brightness to be restored as soon as the screen is turned off and on again.
@youtube10 thanks for this
when Oxygen OS will be on Oreo, do you think your tweak will works on OnePlus 5 ?
i change too, very often the brightness on my device...
sunnyraid said:
@youtube10 thanks for this
when Oxygen OS will be on Oreo, do you think your tweak will works on OnePlus 5 ?
i change too, very often the brightness on my device...
Click to expand...
Click to collapse
Hi! I'm not sure. I'm going to set up a way for beta testing so people with phones not supported can check and verify if the app is compatible with their device. I should be getting around to that in the coming days. I'm just not sure if it should be through the Play Store or XDA. I don't think the Play Store allows for beta testing on specific devices.
youtube10 said:
Hi! I'm not sure. I'm going to set up a way for beta testing so people with phones not supported can check and verify if the app is compatible with their device. I should be getting around to that in the coming days. I'm just not sure if it should be through the Play Store or XDA. I don't think the Play Store allows for beta testing on specific devices.
Click to expand...
Click to collapse
thanks! don't hesitate to send beta apks, i can test them on my OP5 :good:
youtube10 said:
Hi! I experimented with this previously, but since adaptive brightness is managed by the system, leaving it on when you adjust brightness will cause the brightness to be reset immediately by the adaptive brightness service. The compromise I added was allowing adaptive brightness to be restored as soon as the screen is turned off and on again.
Click to expand...
Click to collapse
Thanks for the reply. As another user mentioned, I'd be using your app primarily to replace the status bar quick finger slide feature from most custom ROMs, and those are generally able to work alongside auto brightness, which is why I assumed it would be possible. Personally I find this too frustrating to work around, but I appreciate that you considered this.
teiglin said:
Thanks for the reply. As another user mentioned, I'd be using your app primarily to replace the status bar quick finger slide feature from most custom ROMs, and those are generally able to work alongside auto brightness, which is why I assumed it would be possible. Personally I find this too frustrating to work around, but I appreciate that you considered this.
Click to expand...
Click to collapse
Out of curiosity, on those ROMs, how long did it take for adaptive brightness to restore the brightness to what it was before you adjusted it?
I don't think adaptive brightness and system brightness are 2 different values. It's possible you didn't give permissions to read or write to settings so that when you try reducing the brightness with adaptive brightness on, I can't read the current value of your brightness so I default to the highest. This would explain the "jump" in brightness you see while adjusting.
If you don't mind, try giving it another go and checking that you give both accessibility permissions, and permissions to write to settings. After that, with adaptive brightness on, try changing the brightness again and please let me now if the jump still occurs. Also, left and right swipes my default toggle minimum and maximum brightness respectively, so there might've been an accidental recognition of either gesture.
Absolutely love the app! Thank you so much.
Out of curiosity, why doesn't this app support previous Android versions? Asking for my own knowledge and would definitely love to use it on my spare devices running MM and Nougat.
I could see that certain fingerprint gesture apps like this do support the previous versions. Any specific difference?
DJBhardwaj said:
Absolutely love the app! Thank you so much.
Out of curiosity, why doesn't this app support previous Android versions? Asking for my own knowledge and would definitely love to use it on my spare devices running MM and Nougat.
I could see that certain fingerprint gesture apps like this do support the previous versions. Any specific difference?
Click to expand...
Click to collapse
It's because the gesture API was introduced in Android Oreo
youtube10 said:
It's because the gesture API was introduced in Android Oreo
Click to expand...
Click to collapse
Thanks for responding! Totally loved it! Did a research yesterday and found out the same
youtube10 said:
I wrote an App that lets you control your phone's brightness provided it's running Android 8.0+ and has a compatible fingerprint sensor.
I wrote it because I change my phone's brightness as often as I change it's volume, if not more, and I was upset I didn't have dedicated hardware for it. When Oreo launched and it added fingerprint gesture detection, I figured it was time
I own and test on the OG Google Pixel, and the app has been out for 2 weeks so I've been able to squash most bugs.
Feedback and suggestions are most welcome!
https://play.google.com/store/apps/details?id=com.tunjid.fingergestures
Click to expand...
Click to collapse
Excellent work, my friend! This works great on my Pixel 2.
You've been featured!
https://www.androidunfiltered.com/d...htness-with-fingerprint-gestures-android-8-0/
youtube10 said:
Out of curiosity, on those ROMs, how long did it take for adaptive brightness to restore the brightness to what it was before you adjusted it?
I don't think adaptive brightness and system brightness are 2 different values. It's possible you didn't give permissions to read or write to settings so that when you try reducing the brightness with adaptive brightness on, I can't read the current value of your brightness so I default to the highest. This would explain the "jump" in brightness you see while adjusting.
If you don't mind, try giving it another go and checking that you give both accessibility permissions, and permissions to write to settings. After that, with adaptive brightness on, try changing the brightness again and please let me now if the jump still occurs. Also, left and right swipes my default toggle minimum and maximum brightness respectively, so there might've been an accidental recognition of either gesture.
Click to expand...
Click to collapse
I didn't view it as a bug in the app, just a side effect of disabling adaptive brightness. For example, the screen gets roughly to its dimmest with the brightness slider at around 20% and adaptive brightness on, so then if you slide that down to 10% but with adaptive brightness off, the screen will actually be brighter (the "jump" I described before). The issue is definitely not a result of a mis-swipe, as I can see the displayed percentage changing as expected.
I don't quite understand what you mean by "adaptive brightness to restore the brightness to what it was before you adjusted it"--my experience of sliding my finger along the status bar on my old phone to change brightness was the same as sliding the brightness slider in the quick settings, which can be done whether adaptive brightness is on or off. The adaptive brightness algorithm doesn't adjust the slider.
edit: I think I understand now; you're saying that the adaptive brightness algorithm actually changes the value displayed by the brightness slider. My Pixel 2 (as well as my previous phone, the HTC 10) both do not work this way, though I know some of the phones I have used in the past do. The Pixel's adaptive brightness adjusts the actual brightness based both on the ambient light and the slider, rather than adjusting the slider to what it considers an appropriate value.
teiglin said:
I didn't view it as a bug in the app, just a side effect of disabling adaptive brightness. For example, the screen gets roughly to its dimmest with the brightness slider at around 20% and adaptive brightness on, so then if you slide that down to 10% but with adaptive brightness off, the screen will actually be brighter (the "jump" I described before). The issue is definitely not a result of a mis-swipe, as I can see the displayed percentage changing as expected.
I don't quite understand what you mean by "adaptive brightness to restore the brightness to what it was before you adjusted it"--my experience of sliding my finger along the status bar on my old phone to change brightness was the same as sliding the brightness slider in the quick settings, which can be done whether adaptive brightness is on or off. The adaptive brightness algorithm doesn't adjust the slider.
edit: I think I understand now; you're saying that the adaptive brightness algorithm actually changes the value displayed by the brightness slider. My Pixel 2 (as well as my previous phone, the HTC 10) both do not work this way, though I know some of the phones I have used in the past do. The Pixel's adaptive brightness adjusts the actual brightness based both on the ambient light and the slider, rather than adjusting the slider to what it considers an appropriate value.
Click to expand...
Click to collapse
You're right. They do seem like 2 different values. Especially that the lowest brightness setting with adaptive brightness turned on is lower than the lowest setting without adaptive brightness. I'll try getting it and the gestures to work together again.
teiglin said:
I didn't view it as a bug in the app, just a side effect of disabling adaptive brightness. For example, the screen gets roughly to its dimmest with the brightness slider at around 20% and adaptive brightness on, so then if you slide that down to 10% but with adaptive brightness off, the screen will actually be brighter (the "jump" I described before). The issue is definitely not a result of a mis-swipe, as I can see the displayed percentage changing as expected.
I don't quite understand what you mean by "adaptive brightness to restore the brightness to what it was before you adjusted it"--my experience of sliding my finger along the status bar on my old phone to change brightness was the same as sliding the brightness slider in the quick settings, which can be done whether adaptive brightness is on or off. The adaptive brightness algorithm doesn't adjust the slider.
edit: I think I understand now; you're saying that the adaptive brightness algorithm actually changes the value displayed by the brightness slider. My Pixel 2 (as well as my previous phone, the HTC 10) both do not work this way, though I know some of the phones I have used in the past do. The Pixel's adaptive brightness adjusts the actual brightness based both on the ambient light and the slider, rather than adjusting the slider to what it considers an appropriate value.
Click to expand...
Click to collapse
You're absolutely right. They are 2 different brightness values: https://stackoverflow.com/questions/29349153/change-adaptive-brightness-level-programatically
It seems the Adaptive Brightness one is hidden and not supposed to be a public api, so I am hesitant to try to change it's value. However I can try to read it's value so that it would prevent the brightness jump if adaptive brightness is on and you're trying to adjust the brightness manually. Adjusting it manually will still cause adaptive brightness to be turned off however. It can be turned back on when the screen goes off and on and you checked the option.

Categories

Resources