Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Redmi Note 7] Brightness is at maximum but the slider is only at 50% #513

Open
leonardoaranha-git opened this issue May 8, 2019 · 12 comments

Comments

@leonardoaranha-git
Copy link

leonardoaranha-git commented May 8, 2019

The brightness is at maximum but the slider is only at 50%.
Don't know what files you need to debug this..

@leonardoaranha-git leonardoaranha-git changed the title [Redmi Note 7Brightness is at maximum but the slider is only at 50% [Redmi Note 7] Brightness is at maximum but the slider is only at 50% May 8, 2019
@phhusson
Copy link
Owner

phhusson commented May 8, 2019

That's a very vague issue.
Do you mean backlight control doesn't work at all?
Or it just doesn't do what you want it to?

@leonardoaranha-git
Copy link
Author

Sorry for bad explanation.
When I put slide bar of brightness in 50%, the brightness of display go to 100%.
The brightness of the display reaches the maximum when I put the slide bar in 50%.

e.g.
slide bar 0% ~ 50% = display brightness 0% ~ 100%
slide bar 50% ~ 100% = display brightness always 100%

@XeoNoX
Copy link

XeoNoX commented May 22, 2019

Assuming you have root privileges, from "terminal" app on your phone or from ADB shell type the following to temporary fix:

adb shell
su
setprop persist.sys.qcom-brightness 4095
reboot

@leonardoaranha-git
Copy link
Author

Assuming you have root privileges, from "terminal" app on your phone or from ADB shell type the following to temporary fix:

adb shell
su
setprop persist.sys.qcom-brightness 4095
reboot

I already tried that too.
This command is only to correct the brightness flickering bug.

@darkestDark
Copy link

simple thing...

cat /sys/devices/soc/c900000.qcom,mdss_mdp/c900000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/max_brightness
4095

cat /sys/devices/soc/c900000.qcom,mdss_mdp/c900000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/brightness
reaches the max value (4095) exactly at 50 per cent of the slider...

@phhusson
Copy link
Owner

phhusson commented Jun 1, 2019

Well then try with the property at 2047 instead?

@darkestDark
Copy link

already tried... only "goal" is that brightness stops at this value... but it got full brightness at that value, too.
when reaching 50 percent on slider maximum brightness is reached.

you can add each value as long at it is not bigger than 4095.

@darkestDark
Copy link

darkestDark commented Jun 4, 2019

solved with v114 for me...
But only because the overlay hasnt appllied... so its caused by wrong values in the overlay. will take a look at it if there is some time and take the values from actually framework-res.

@darkestDark
Copy link

darkestDark commented Jun 10, 2019

its confusing me a bit...

logcat:

Skipping target and overlay pair android and null: overlay ignored due to required system property: ro.vendor.build.fingerprint with value: +*iaomi/lavender*

but...

 getprop ro.vendor.build.fingerprint
xiaomi/lavender/lavender:9/PKQ1.180904.001/V10.2.7.0.PFGMIXM:user/release-keys

i will build the overlay on my own and test it...

@darkestDark
Copy link

Fixed...

phhusson/vendor_hardware_overlay#114

@phhusson
Copy link
Owner

phhusson commented Jun 12, 2019 via email

@darkestDark
Copy link

@littl3viking you can test... unpack and push it to /system/overlay/
https://github.com/darkestDark/vendor_hardware_overlay/files/3282732/treble-overlay-xiaomi-redminote7.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants