Jump to content


[MOD] Enable capacitive buttons for Nexus - Desire Roms

- - - - -

  • Please log in to reply
16 replies to this topic

#1
Kenny N

Kenny N

    Newbie

  • Members
  • Pip
  • 13 posts
  • Devices:Nexus One
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 Files


Edited by Kenny N, 15 May 2010 - 05:53 PM.


#2
chowdarygm

chowdarygm

    Newbie

  • MoDaCo Ad Free
  • Pip
  • 26 posts
  • Gender:Male
  • Location:dusseldorf
  • Devices:Galaxy Note, Nexus, S2
  • Twitter:@chowdarygm
wow........nice... thank you very much

Current device estate:<br style="color: rgb(17, 17, 17); font-family: Arial, Verdana, sans-serif; font-size: 13px; line-height: 19px; "># Samsung Galaxy Nexus<br style="color: rgb(17, 17, 17); font-family: Arial, Verdana, sans-serif; font-size: 13px; line-height: 19px; "># Samsung Galaxy Note<br style="color: rgb(17, 17, 17); font-family: Arial, Verdana, sans-serif; font-size: 13px; line-height: 19px; "># Samsung Galaxy S2<br style="color: rgb(17, 17, 17); font-family: Arial, Verdana, sans-serif; font-size: 13px; line-height: 19px; "># Samsung Galaxy Tab 10.1 16GB 3G<br style="color: rgb(17, 17, 17); font-family: Arial, Verdana, sans-serif; font-size: 13px; line-height: 19px; "># Archos 80 G9

#3
marra2

marra2

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 242 posts
  • Gender:Male
  • Location:York
  • Devices:zte skate
  • Twitter:@@gunnercraig
only works for about 10 seconds then the lights go off !


#4
Kenny N

Kenny N

    Newbie

  • Members
  • Pip
  • 13 posts
  • Devices:Nexus One

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


#5
Kenny N

Kenny N

    Newbie

  • Members
  • Pip
  • 13 posts
  • Devices:Nexus One

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


#6
marra2

marra2

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 242 posts
  • Gender:Male
  • Location:York
  • Devices:zte skate
  • Twitter:@@gunnercraig

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 !


#7
Kenny N

Kenny N

    Newbie

  • Members
  • Pip
  • 13 posts
  • Devices:Nexus One

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


#8
NXUS

NXUS

    Newbie

  • Members
  • Pip
  • 13 posts
  • Gender:Male
  • Location:Canada
  • Devices:Nexus One
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

Edited by NXUS, 15 May 2010 - 10:58 PM.


#9
Kenny N

Kenny N

    Newbie

  • Members
  • Pip
  • 13 posts
  • Devices:Nexus One

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

Edited by Kenny N, 15 May 2010 - 11:40 PM.


#10
NXUS

NXUS

    Newbie

  • Members
  • Pip
  • 13 posts
  • Gender:Male
  • Location:Canada
  • Devices:Nexus One

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


#11
caveman_78

caveman_78

    Newbie

  • Members
  • Pip
  • 9 posts
  • Devices:Nexus One
Thank-you, great found.


#12
animas

animas

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:nexus 1
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?


#13
Hasibul

Hasibul

    Newbie

  • Members
  • Pip
  • 36 posts
  • Devices:Nexus One, T-mobile G1
  • Twitter:@hasibulc
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!

Edited by Hasibul, 18 May 2010 - 11:49 PM.


#14
tiran

tiran

    Newbie

  • Members
  • Pip
  • 10 posts
  • Location:germany
  • Devices:NexusOne
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?


#15
techlogik

techlogik

    Newbie

  • Members
  • Pip
  • 28 posts
  • Devices:Nexus One

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?

Edited by techlogik, 22 May 2010 - 01:09 AM.


#16
androiduser1

androiduser1

    Newbie

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Chicago, IL
  • Devices:Nexus One and HTC Desire

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.


#17
adamiester

adamiester

    Newbie

  • Members
  • Pip
  • 6 posts
  • Devices:Nexus 1

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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users