Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,872 Members 52,848 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Enable capacitive buttons for Nexus - Desire Roms

Tip us?
 
vnbuddy2002
Old
(Last edited by vnbuddy2002; 15th May 2010 at 06:57 PM.)
#1  
Member - OP
Thanks Meter 8
Posts: 75
Join Date: Nov 2004
Default [MOD] Enable capacitive buttons for Nexus - Desire Roms

Just like many others, my Nexus buttons won't lit up after I flashed to custom desire roms. To enable it, we need to have a script running in the background. That's where GScript application comes to rescue. You can download the lite version from Market Place. After you have it installed, please follow the following instructions

1. Download and extract the attached file to your [SDCARD]://gscript/
2. Start GScript lite application
3. Menu > Add script > Load file >LED_ON.sh
4. Make sure you check "Needs SU?"
5. Press "Save"

After completed the given steps, you will see the "LED_ON" from the list. You would need to execute (run) it by a single tap on "LED_ON".

It will prompt for root permission, please make sure you allow the script to run as root

** You should ONLY run this ONCE each time you reboot ( restart ) your phone

This is only a temporary workaround until someone make changes to the kernel driver.

Features:
1. Lit up the capacitive buttons when your screen is on
2. Turn off capacitive buttons when your screen is off

Regards,
Kenny N
Attached Files
File Type: zip LED_ON.zip - [Click for QR Code] (316 Bytes, 527 views)
The Following User Says Thank You to vnbuddy2002 For This Useful Post: [ Click to Expand ]
 
jmotyka
Old
#2  
jmotyka's Avatar
Senior Member
Thanks Meter 58
Posts: 459
Join Date: May 2009
Location: Right behind U!
so do i have to manually run the script every time i turn the screen off.


Stole this from papa smurf, because i feel if some of us users
use this signature more and more people will see the rules and
understand them. Maybe its a longshot, but its worth the try.
 
vnbuddy2002
Old
#3  
Member - OP
Thanks Meter 8
Posts: 75
Join Date: Nov 2004
No - when you turn off the screen, the script will automatically turn off the capacitive buttons. when you turn on the screen, the script will automatically turns on the capacitive buttons and it will make sure the LED remains lit up
 
vikramdhani
Old
#4  
Senior Member
Thanks Meter 30
Posts: 1,406
Join Date: Apr 2006
how can i install the script ? and seems like a good idea

all help given is free, and as is. I'd hate for someone to try and sue me for a mobile bill
 
godsfilth
Old
#5  
Senior Member
Thanks Meter 4
Posts: 118
Join Date: Mar 2009
rather than using gscript and having to manually run the script couldn't you put it someplace on the phones memory like /system/etc/init.d and have it loaded during boot

id test the theory but im not running the desire rom
 
stshannon
Old
#6  
stshannon's Avatar
Senior Member
Thanks Meter 6
Posts: 428
Join Date: Mar 2010
Location: Woodland, Wa
So I'm curious, what exactly is this doing?

Does this keep the trackball, and the buttons (back/menu/home/search) buttons "lit" when the screen is on?

I didn't know the buttons were backlit. Wonder if this could be ported to Cyanogen?
HTC Sensation 4G : T-Mobile USA
ROM: LeeDrOiD v4.1.0

(A SuperSensational Sense 3.5 experience)

Other Phones
G2 : T-Mobile USA (Sold)
--CyanogenMod-7.0.2-vision
Nexus One : T-Mobile USA (Spouse's)
-- Kang-O-Rama 1.2 Final
--- (a CyanogenMod 7.0.0-N1 variant)
MyTouch 3G : T-Mobile USA (11 y/o Son's)
-- CyanogenMod 6.1 RC1-DS
LG Optimus T : T-Mobile USA (Bought for Parents)
-- STOCK
Retired: 2 G1's ; Blackberry Curve
 
b1337
Old
#7  
b1337's Avatar
Senior Member
Thanks Meter 359
Posts: 1,159
Join Date: Jan 2010
Quote:
Originally Posted by stshannon View Post
So I'm curious, what exactly is this doing?

Does this keep the trackball, and the buttons (back/menu/home/search) buttons "lit" when the screen is on?

I didn't know the buttons were backlit. Wonder if this could be ported to Cyanogen?
have u used your phone in the dark? lol
 
dudebro
Old
#8  
dudebro's Avatar
Senior Member
Thanks Meter 4
Posts: 575
Join Date: Sep 2008
Location: San Antonio
Quote:
Originally Posted by b1337 View Post
have u used your phone in the dark? lol
that's what I'm sayin haha

I'll give this a go when I go back to a desire rom.
I am one of those unlucky people with no capacitive lights for desire roms.
 
stshannon
Old
#9  
stshannon's Avatar
Senior Member
Thanks Meter 6
Posts: 428
Join Date: Mar 2010
Location: Woodland, Wa
Quote:
Originally Posted by b1337 View Post
have u used your phone in the dark? lol
Ohh i get it, yeah, my buttons do light up (never really noticed before, never had a problem with them to really have to look at them heh)....

So i take it the backlight doesn't work on desire roms then? and this is a fix for that? okay sorry for the dumb question earlier heh.

Yeah, my nexus one buttons do backlight now that I'm looking at it. =)
HTC Sensation 4G : T-Mobile USA
ROM: LeeDrOiD v4.1.0

(A SuperSensational Sense 3.5 experience)

Other Phones
G2 : T-Mobile USA (Sold)
--CyanogenMod-7.0.2-vision
Nexus One : T-Mobile USA (Spouse's)
-- Kang-O-Rama 1.2 Final
--- (a CyanogenMod 7.0.0-N1 variant)
MyTouch 3G : T-Mobile USA (11 y/o Son's)
-- CyanogenMod 6.1 RC1-DS
LG Optimus T : T-Mobile USA (Bought for Parents)
-- STOCK
Retired: 2 G1's ; Blackberry Curve
 
vnbuddy2002
Old
(Last edited by vnbuddy2002; 17th May 2010 at 04:29 AM.)
#10  
Member - OP
Thanks Meter 8
Posts: 75
Join Date: Nov 2004
I would need to rewrite the codes in order for it to run along with /system/etc/init.d - or else it will end up with an endless startup

Regards,
Kenny N

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...