-
Notifications
You must be signed in to change notification settings - Fork 7
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
Soft-key backlights do not respect auto-brightness and do not time-out #32
Comments
I can confirm |
Looks like the Android world is doing reasonable things, if you consider the logic in that world reasonable. Looking now at liblights/lights.c which seems to suggest that root@android:/sys/class/misc/melfas_touchkey # echo 1 > brightness is all you can do. At least "2" turns off the lights! |
Debugging suggested that the routines to set brightness levels in What is known so far:
PowerManager seems only to be controlling the screen brightness and not the touchkeys as only SCREEN_BRIGHT_BIT is set. At least one issue is likely in the way that Chasing down autoBrightnessButtonKeyboard setting as well, so PowerManager manages the keyboard/button brightness properly as well. |
I've been able to get the auto-brightness to drive the touchkeys by removing the check on Looks like the issues are a result of:
Edit -- The more I think about this, the more I believe that this should be "fixed" in liblights, either by adding a key-event listener to the input chain, or with a new pseudo-device that can report the "touchpad backlight on" change to liblights directly. |
When Erik released his proton kernel we got a backlights fix along with it. I'll create a patch from his code so we can port it over to our kernel later this week. |
Yeah, we should cherry-pick some other stuff from proton like zRam. Don't cherry-pick any CPU governors, though. |
I quickly scanned the changes and it looks like part of it is creating a kernel work item to turn them off. That is the "hacky" part of the KoD that bothered me and needed to be addressed at some point. I haven't looked in detail at the changes are they are pretty extensive. Amusingly, I've noticed that the backlights for the touchkeys turn off for the key when it is touched when the phone is in "charging" mode (pre-boot). Wish I could see that code! |
Yeah, I might take a crack later this week to try and implement the aries solution, which I don't think creates a separate work item. |
As a temporary fix we now have these two commits: |
Soft-key backlights do not time-out
If a user has auto-brightness on, the soft-key brightness does not seem to follow the ROM or user settings
The text was updated successfully, but these errors were encountered: