PixelOS-Devices / device_xiaomi_sunny

5 stars 2 forks source link

AOD brightness issue and feature suggestion for Redmi Note 10 (mojito/sunny) with PixelOS UQ1A.231205.015 build. #2

Closed Musheer360 closed 4 months ago

Musheer360 commented 10 months ago

Description:

I am using the latest version of PixelOS custom ROM (UQ1A.231205.015) on my Redmi Note 10 (mojito/sunny), and I have two issues/suggestions related to the AOD functionality.

Issue: AOD brightness not adjusting to ambient light.

The AOD brightness is not adjusting properly to the ambient light sensor readings. When I use AOD in a dark room, the AOD brightness is low when I turn off the screen and AOD turns on, but when I turn on the lights back again it goes bright again so that it could be visible in a well-lit room. However, when I turn off the lights again, the AOD brightness does not come down and it stays at the same brightness, so to fix this I have to wake my phone and turn screen off again. This is a bit inconvenient.

Suggestion: AOD pocket detection feature.

I would like to suggest a feature that would turn off the AOD automatically when the phone is placed in the pocket. This would save battery and prevent accidental touches when the phone is in the pocket. I think this is a useful and common feature that many users would appreciate.

Steps to reproduce the AOD brightness issue:

  1. Install PixelOS custom ROM (UQ1A.231205.015) on Redmi Note 10 (mojito/sunny) following the official instructions.
  2. Enable AOD from Settings > Display > Lock screen > Always on.
  3. Go to a dark room and turn off the screen. Observe that the AOD brightness is low.
  4. Turn on the lights in the room and wait for a few seconds. Observe that the AOD brightness goes up.
  5. Turn off the lights in the room again and wait for a few seconds. Observe that the AOD brightness does not go down and stays high.

Expected behavior for the AOD brightness issue:

The AOD brightness should adjust to the ambient light sensor readings and change accordingly when the light conditions change.

Actual behavior for the AOD brightness issue:

The AOD brightness does not adjust to the ambient light sensor readings and stays at the same level when the light conditions change from low to high.

Device info:

cyberknight777 commented 10 months ago

This is due to the fact that our ambient light sensor correction is inconsistent. It happens as we're not able to use our second light sensor at the back of the phone as it does in MIUI due to Xiaomi handling it with their framework and not with citsensorservice which is utilized in most Xiaomi devices. Moreover is pocket mode not available in the build? That should prevent accidental touches afaik.

Musheer360 commented 10 months ago

I understand now. I hope it gets fixed soon.

Regarding the Pocket Mode feature, it prevents accidental touches but doesn't turn off the Always-on Display when the phone is in the pocket.

Another issue is that sometimes the status bar on the lock screen aligns to the left. I haven't identified the exact cause of this problem, but it goes back to center after restarting the phone or the system UI. I've attached screenshots of the lock screen showing the left-aligned (misaligned) and center-aligned (properly aligned) status bars, respectively.

Screenshot_20240117-000612 Screenshot_20240117-000718

cyberknight777 commented 10 months ago

pretty sure that's burn-in protection doing its thing.