Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
kevdliu
Old
(Last edited by kevdliu; 29th May 2012 at 02:51 AM.)
#1  
kevdliu's Avatar
Recognized Developer - OP
Thanks Meter 875
Posts: 833
Join Date: Apr 2011

 
DONATE TO ME
Talking [FIX][UPDATED 5/28/2012]VivoW AOSP Capacitive Buttons Backlight Fix

Hey everyone,

With some edits of cm9 source i managed to get softkeys backlight working.

I have only tested it on cm9 but it should work on MIUI and maybe AOKP.

Download: (Updated 5/28/2012)
attached to thread

Credits:
Aeroevan
Litetaker
Me

Thanks
Attached Files
File Type: zip VivoW_Buttons_Backlight_Fix_AOSP.zip - [Click for QR Code] (209.6 KB, 603 views)


If you like my work please Donate to me. Thanks

My Projects / Applications:
Picture Password Lockscreen for Android
Status Bar Volume Panel Plus for ICS+ devices
TaskUI Tasks Control Overlay for HC+ devices
The Following 15 Users Say Thank You to kevdliu For This Useful Post: [ Click to Expand ]
 
phillibl
Old
#2  
Senior Member
Thanks Meter 31
Posts: 180
Join Date: Apr 2012
Excited to test it out
 
kevdliu
Old
#3  
kevdliu's Avatar
Recognized Developer - OP
Thanks Meter 875
Posts: 833
Join Date: Apr 2011

 
DONATE TO 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


If you like my work please Donate to me. Thanks

My Projects / Applications:
Picture Password Lockscreen for Android
Status Bar Volume Panel Plus for ICS+ devices
TaskUI Tasks Control Overlay for HC+ devices
The Following User Says Thank You to kevdliu For This Useful Post: [ Click to Expand ]
 
jamminjon82
Old
#4  
Senior Member
Thanks Meter 137
Posts: 486
Join Date: Mar 2012
Location: Gloucester
Quote:
Originally Posted by kevdliu View Post
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

Sent from my Amazon Kindle Fire using Tapatalk 2
 
kevdliu
Old
#5  
kevdliu's Avatar
Recognized Developer - OP
Thanks Meter 875
Posts: 833
Join Date: Apr 2011

 
DONATE TO ME
Quote:
Originally Posted by jamminjon82 View Post
Flash able or extract and run script? Thanks for this btw

Sent from my Amazon Kindle Fire using Tapatalk 2
just flash it in recovery


If you like my work please Donate to me. Thanks

My Projects / Applications:
Picture Password Lockscreen for Android
Status Bar Volume Panel Plus for ICS+ devices
TaskUI Tasks Control Overlay for HC+ devices
 
Travisdroidx2
Old
#6  
Senior Member
Thanks Meter 528
Posts: 2,217
Join Date: Sep 2011
Location: Bay Area California
Confirmed to work on AOKP nice job!
 
dreamkiller80
Old
#7  
dreamkiller80's Avatar
Senior Member
Thanks Meter 176
Posts: 407
Join Date: Dec 2011
Location: Bremen
Quote:
Originally Posted by kevdliu View Post
Hey everyone,

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

Sent from my Incredible 2 using Tapatalk 2 Beta-5
 
litetaker
Old
#8  
litetaker's Avatar
Senior Member
Thanks Meter 555
Posts: 1,465
Join Date: Dec 2011
Location: Hyattsville, MD
Quote:
Originally Posted by kevdliu View Post
Hey everyone,

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!!!
_______________

_______________
Droid X2: Ditched!, Droid Inc2: SOLD, Droid Incredible 4G LTE: CM10.1 Jellybean 4.2.2, TFP: Unlocked and on Stock JB 4.1.1 -> heaven, iPod Touch 4g: Stock iOS 6 (iOS 6 bad, my $0.02)
 
kevdliu
Old
#9  
kevdliu's Avatar
Recognized Developer - OP
Thanks Meter 875
Posts: 833
Join Date: Apr 2011

 
DONATE TO ME
Quote:
Originally Posted by litetaker View Post
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.


If you like my work please Donate to me. Thanks

My Projects / Applications:
Picture Password Lockscreen for Android
Status Bar Volume Panel Plus for ICS+ devices
TaskUI Tasks Control Overlay for HC+ devices
 
kevdliu
Old
#10  
kevdliu's Avatar
Recognized Developer - OP
Thanks Meter 875
Posts: 833
Join Date: Apr 2011

 
DONATE TO ME
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


If you like my work please Donate to me. Thanks

My Projects / Applications:
Picture Password Lockscreen for Android
Status Bar Volume Panel Plus for ICS+ devices
TaskUI Tasks Control Overlay for HC+ devices

The Following 3 Users Say Thank You to kevdliu For This Useful Post: [ Click to Expand ]
 
Post Reply+
Tags
backlight, buttons, cm9, fix, vivow
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...