Build an Impractical But Awesome Lego Mindstorm Dock

The vast majority of what we cover here on the XDA-Developers News Portal relates to … more

MultiROM Makes its Way Over to the HTC One (M8)

While browsing our forum, you will undoubtedly find more than a few enticing ROMs available … more

Welcome to the New XDA-Developers Portal!

You may recall that a few weeks ago, we opened up the XDA-2015 forum themesto intrepid users … more

An Android Enthusiast’s Apple iPhone 6 Challenge

The media has gone batty again over Apple “revolutionizing” smartphones. … more
Post Reply

[MOD] Enable capacitive buttons for Nexus - Desire Roms

15th May 2010, 06:22 PM   |  #1  
OP Member
Thanks Meter: 8
 
75 posts
Join Date:Joined: Nov 2004
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)
Last edited by vnbuddy2002; 15th May 2010 at 06:57 PM.
The Following User Says Thank You to vnbuddy2002 For This Useful Post: [ View ]
15th May 2010, 06:50 PM   |  #2  
jmotyka's Avatar
Senior Member
Flag Right behind U!
Thanks Meter: 73
 
464 posts
Join Date:Joined: May 2009
More
so do i have to manually run the script every time i turn the screen off.
15th May 2010, 06:56 PM   |  #3  
OP Member
Thanks Meter: 8
 
75 posts
Join Date:Joined: 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
16th May 2010, 01:45 AM   |  #4  
Senior Member
Thanks Meter: 31
 
1,447 posts
Join Date:Joined: Apr 2006
how can i install the script ? and seems like a good idea
16th May 2010, 06:11 AM   |  #5  
Senior Member
Thanks Meter: 4
 
118 posts
Join Date:Joined: Mar 2009
More
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
16th May 2010, 08:22 AM   |  #6  
stshannon's Avatar
Senior Member
Flag Woodland, Wa
Thanks Meter: 6
 
428 posts
Join Date:Joined: Mar 2010
More
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?
16th May 2010, 05:31 PM   |  #7  
b1337's Avatar
Senior Member
Thanks Meter: 359
 
1,160 posts
Join Date:Joined: Jan 2010
Quote:
Originally Posted by stshannon

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
16th May 2010, 06:07 PM   |  #8  
dudebro's Avatar
Senior Member
San Antonio
Thanks Meter: 4
 
575 posts
Join Date:Joined: Sep 2008
Quote:
Originally Posted by b1337

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.
16th May 2010, 06:31 PM   |  #9  
stshannon's Avatar
Senior Member
Flag Woodland, Wa
Thanks Meter: 6
 
428 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by b1337

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. =)
16th May 2010, 06:35 PM   |  #10  
OP Member
Thanks Meter: 8
 
75 posts
Join Date:Joined: 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
Last edited by vnbuddy2002; 17th May 2010 at 04:29 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes