alright attached fix to the thread. sorry it took so long as i felt that the button-light-doesn't-turn-off-after-screen-turns-off bug is pretty major and i cant release it until thats fixed.
well that took a lot longer than expected but i think its fixed. It might take up to 5+ seconds for the light to switch but if it take longer than that please tell me.
alright attached fix to the thread. sorry it took so long as i felt that the button-light-doesn't-turn-off-after-screen-turns-off bug is pretty major and i cant release it until thats fixed.
well that took a lot longer than expected but i think its fixed. It might take up to 5+ seconds for the light to switch but if it take longer than that please tell me.
Thanks
Flash able or extract and run script? Thanks for this btw
After modifying a light script in Aeroevan's cm9 build I managed to get the buttons backlight semi-working (at least more working than before).
It should work on cm9, AOKP, CNA, and maybe MIUI.
Bugs:
- Sometimes there will be a few seconds lag between screen on/off and buttons backlight on/off
- (Fixed, I think. Need more testing) Sometimes the backlight won't turn off after screen is off. If that happens just turn the screen on and off again and that should fix it.
I based my editing on Aeroevan's script so credit goes to him.
This is just an initial fix and I will try to improve this later on.
Download: attached to thread
Thanks
Great job, still needs some tweaking but its better than having to adjust the brightness all the time
After modifying a light script in Aeroevan's cm9 build I managed to get the buttons backlight semi-working (at least more working than before).
It should work on cm9, AOKP, CNA, and maybe MIUI.
Bugs:
- Sometimes there will be a few seconds lag between screen on/off and buttons backlight on/off
- (Fixed, I think. Need more testing) Sometimes the backlight won't turn off after screen is off. If that happens just turn the screen on and off again and that should fix it.
I based my editing on Aeroevan's script so credit goes to him.
This is just an initial fix and I will try to improve this later on.
Download: attached to thread
Thanks
I didn't try the fix yet but I see that you are modifying the /sys/class/leds/button-backlight-landscape/brightness files. I was trying to come up with a script to do this a while back, but didn't know how. Now I see that this is how it is done! So, are scripts in /system/etc/ run continuously by the OS?
======
Thank me, if my post helped you, made you smile, laugh, LOL or ROFL!!!
_______________
I didn't try the fix yet but I see that you are modifying the /sys/class/leds/button-backlight-landscape/brightness files. I was trying to come up with a script to do this a while back, but didn't know how. Now I see that this is how it is done! So, are scripts in /system/etc/ run continuously by the OS?
probably not all scripts in /system/etc but rotating_lights.sh is ran by the system every few seconds.
ok so with help and suggestions from litetaker i updated the fix which should fix (how ironic ) the backlight staying on after screen is turned off problem. however there is still sometimes the few seconds lag
It’s been well established that XDA-Developers isthedestination for resources relating to … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?