phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

Please fix backlight scale on Xiaomi devices #1710

Open skittels15 opened 3 years ago

skittels15 commented 3 years ago

Brightness slider displays zero brightness when enabled autobrightness mode. And shows an incorrect brightness value after unlocking the screen. When brightness installed before locking screen is 50%, the slider shows 25% after unlocking, or when the brightness is low, it shows a high value.

And screen flickered when you changed brightness level in QS or in screen settings. On Android 10 not have this issue without any fixes.

Tested on Xiaomi Redmi 8, 8A, 7A, 5A, 4A.

douardda commented 3 years ago

similar here on a Redmi Note 9T 5G (cannong) brightness slider behaves like the brightness value is stored on 16bits but the backlight expect a 8bits int or something like that... sorry forgot to tell: installed rom is system-roar-arm64-ab-gapps.img.xz v312

douardda commented 3 years ago

alternate backlight scale (in phh trebble settings) did the trick

douardda commented 3 years ago

There is still a slight brightness flickering however. Not super annoying, but visible. Does not always happens however. Also the brightness "auto-level" button is not available.