Android @ MoDaCo: [MOD] Enable capacitive buttons for Nexus - Desire Roms - Android @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[MOD] Enable capacitive buttons for Nexus - Desire Roms
-----


#1 User is offline   Kenny N 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 04-May 10
  • Devices:Nexus One

Posted 15 May 2010 - 05:25 PM

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 makes 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 File(s)

  • Attached File  LED_ON.zip (316bytes)
    Number of downloads: 407

This post has been edited by Kenny N: 15 May 2010 - 05:53 PM

0

Sponsored Links


#2 User is offline   chowdarygm 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 24
  • Joined: 19-April 10
  • Gender:Male
  • Location:dusseldorf
  • Devices:Galaxy Note, Nexus, S2
  • Twitter:@chowdarygm

Posted 15 May 2010 - 06:09 PM

wow........nice... thank you very much

Current device estate:
# Samsung Galaxy Nexus
# Samsung Galaxy Note
# Samsung Galaxy S2
# Samsung Galaxy Tab 10.1 16GB 3G
# Archos 80 G9
0


#3 User is offline   marra2 

  • Enthusiast
  • PipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 234
  • Joined: 23-June 08
  • Gender:Male
  • Location:York
  • Devices:zte skate
  • Twitter:@@gunnercraig

Posted 15 May 2010 - 06:26 PM

only works for about 10 seconds then the lights go off !

0


#4 User is offline   Kenny N 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 04-May 10
  • Devices:Nexus One

Posted 15 May 2010 - 06:38 PM

View Postmarra2, on May 15 2010, 14:26, said:

only works for about 10 seconds then the lights go off !


Did you kick off the script ? Make sure you run the script as root

Regards,
Kenny N

0


#5 User is offline   Kenny N 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 04-May 10
  • Devices:Nexus One

Posted 15 May 2010 - 06:39 PM

View Postchowdarygm, on May 15 2010, 14:09, said:

wow........nice... thank you very much


You are very welcome . Glad that it helps

Regards,
Kenny N

0


#6 User is offline   marra2 

  • Enthusiast
  • PipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 234
  • Joined: 23-June 08
  • Gender:Male
  • Location:York
  • Devices:zte skate
  • Twitter:@@gunnercraig

Posted 15 May 2010 - 07:08 PM

View PostKenny N, on May 15 2010, 19:38, said:

Did you kick off the script ? Make sure you run the script as root

Regards,
Kenny N

yes its ticked they now stay on until I lock the screen. its a start so thanks any way !

0


#7 User is offline   Kenny N 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 04-May 10
  • Devices:Nexus One

Posted 15 May 2010 - 07:23 PM

View Postmarra2, on May 15 2010, 15:08, said:

yes its ticked they now stay on until I lock the screen. its a start so thanks any way !


That's strange. it works fine for me and a couple of others.

Regards,
Kenny N

0


#8 User is offline   NXUS 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 15-May 10
  • Gender:Male
  • Location:Canada
  • Devices:Nexus One

Posted 15 May 2010 - 08:13 PM

I got until the step where it tells me to load file from sdcard and when i press it i get a screen saying "Select a file (.sh from sdcard)" and cancel button at the bottom but nothing else, i have made sure LED_ON.sh is in the root of my sdcard and my phone is unplugged. Whats the problem?

EDIT: I Found the fix, should have read the instructions better, should have extracted to GScrpt folder

This post has been edited by NXUS: 15 May 2010 - 10:58 PM

0


#9 User is offline   Kenny N 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 04-May 10
  • Devices:Nexus One

Posted 15 May 2010 - 08:23 PM

View PostNXUS, on May 15 2010, 16:13, said:

I got until the step where it tells me to load file from sdcard and when i press it i get a screen saying "Select a file (.sh from sdcard)" and cancel button at the bottom but nothing else, i have made sure LED_ON.sh is in the root of my sdcard and my phone is unplugged. Whats the problem?


make sure you create a folder called "gscript" in your root sdcard and place the LED_ON.sh file in there. Then, just load up GScript Lite and continue with the rest of the step

Regards,
Kenny N

This post has been edited by Kenny N: 15 May 2010 - 11:40 PM

0


#10 User is offline   NXUS 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 15-May 10
  • Gender:Male
  • Location:Canada
  • Devices:Nexus One

Posted 15 May 2010 - 11:31 PM

View PostKenny N, on May 15 2010, 15:23, said:

mkdir sure you create a folder called "gscript" in your root sdcard and place the LED_ON.sh file into there. Then, just load up GScript Lite and continue with the rest of the step

Regards,
Kenny N

yes thank you, i read instructions correctly a few minutes after i installed but thank you

0


#11 User is offline   caveman_78 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 22-December 07
  • Devices:Nexus One

Posted 16 May 2010 - 08:30 AM

Thank-you, great found.

0


#12 User is offline   animas 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 12-April 10
  • Devices:nexus 1

Posted 17 May 2010 - 07:42 AM

Thanks dude thats great really needed it. Do you think it may be posible to write a script that uses the light sensor to switch on off the led as required?

0


#13 User is offline   Hasibul 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 13-April 10
  • Devices:Nexus One, T-mobile G1
  • Twitter:@hasibulc

Posted 18 May 2010 - 11:46 PM

I have a really good mod for this now. What you can do is take the file and rename it to 10ledon and then put it in /system/etc/init.d

with that it works perfectly and you don't need to do it every time!

i suggest using adb to do this but whatever you can use

It's pretty good. Just like Gscript, except this way you don;t need to start it every boot. It works just as well, but sometimes it's weird. Other than that its perfect. Thanks Kenny!

This post has been edited by Hasibul: 18 May 2010 - 11:49 PM

0


#14 User is offline   tiran 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 27-September 09
  • Location:germany
  • Devices:NexusOne

Posted 21 May 2010 - 07:10 PM

hey,

i don't really understand why i need this script.
I use the r22 build and it just works fine even with the light sensor. If its dark, light goes on. If its bright light goes off... whats the point of this script?

0


#15 User is offline   techlogik 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 28
  • Joined: 03-May 10
  • Devices:Nexus One

Posted 22 May 2010 - 12:39 AM

View PostHasibul, on May 18 2010, 19:46, said:

I have a really good mod for this now. What you can do is take the file and rename it to 10ledon and then put it in /system/etc/init.d

with that it works perfectly and you don't need to do it every time!

i suggest using adb to do this but whatever you can use

It's pretty good. Just like Gscript, except this way you don;t need to start it every boot. It works just as well, but sometimes it's weird. Other than that its perfect. Thanks Kenny!



Edit. figured it out...now the device won't boot...bad idea.

Stuck at the logo screen, and the light are lits, but that is all she wrote. That script I should have looked over before I followed these instructions.

Hmmm...anyway from the bootloader/recovery to get a shell, mount the system in RW mode and delete the file I copied that is causing the problem?

This post has been edited by techlogik: 22 May 2010 - 01:09 AM

0


#16 User is offline   androiduser1 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 01-April 10
  • Gender:Male
  • Location:Chicago, IL
  • Devices:Nexus One and HTC Desire

Posted 22 May 2010 - 12:47 AM

View Posttiran, on May 21 2010, 13:10, said:

hey,

i don't really understand why i need this script.
I use the r22 build and it just works fine even with the light sensor. If its dark, light goes on. If its bright light goes off... whats the point of this script?


You don't need it. Some Nexus One devices are having issues with not displaying/turning the lights on or off in any condition. So, if yours is working, you're one of the lucky ones. Be fortunate.

0


#17 User is offline   adamiester 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 03-July 10
  • Devices:Nexus 1

Posted 20 August 2010 - 04:01 AM

View Postandroiduser1, on May 22 2010, 00:47, said:

You don't need it. Some Nexus One devices are having issues with not displaying/turning the lights on or off in any condition. So, if yours is working, you're one of the lucky ones. Be fortunate.


i wonder if its a T-Mobile / AT&T issue, just curious but mine dont work and i have the att version, whats yours everyone else?

0


Sponsored Links

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!