Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,490 Members 40,371 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Turn off the light on the keys

Tip us?
 
juanjitos
Old
(Last edited by juanjitos; 30th June 2010 at 10:01 PM.) Reason: New method
#1  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Sep 2008
Default [MOD] Turn off the light on the keys

Hi, there if any of the xda developers can make an application to turn the light on the keys, because when you see a video is a bit annoying that are lit, battery-consuming as well.
Thank you very much for your cooperation.
Regards

Here you go(tnx to mercianary

1. install gscript lite from market and run it once, this should create a directory gscript on your sdcard

2. put memory card in pc

3. create a text file and put this command in it.

echo 0 > /sys/devices/platform/leds-microp/leds/button-backlight/brightness

4. save the file as "buttonled.sh" not "buttonled.sh.txt" in sdcard/gscript

5. put the card back in your phone, hold your finger on the home screen and select shortcut, gscript lite, menu, add script, load file, buttonled.sh, save, buttonled.

6. press the new icon on your screen.


this will only work on 2.1

everytime you press this icon the button lights turn off.

they will come back on after certain events, ie locking the screen.



if you know adb you could edit the file trigger in the same directory to permanently disable the light, i think. you will have to figure that out yourself.

Download of the market LEDs hack,that does exactly what we want.
Thanks to friend velazcod for the contribution.
 
mercianary
Old
(Last edited by mercianary; 27th June 2010 at 05:17 PM.)
#2  
mercianary's Avatar
Senior Member
Thanks Meter 68
Posts: 722
Join Date: May 2010
Location: Brum
using the following command in 2.1 turns on the blue led.

echo 1 > /sys/devices/platform/leds-microp/blue/brightness

there is a very similar command, cant tell you what it is cuz i am on 2.2 at the minute, that will turn off the key lights.

just change echo 1 to echo 0 and blue to keyled or something, you have too look in the leds-microp dir to find out.


when you have the right command install gscript lite from the market and add a shortcut to the homescreen to your command.

don't think it will work in 2.2 though.

easy peasy!


edit:i know it turns of the led but i'm not sure if it keeps it off, dont remember.
 
juanjitos
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Sep 2008
but I do not want the blue LED, what I want is a small application that allows me to turn off lights or turning on the power when I want to watch a video.
thanks anyway for your help
 
mercianary
Old
#4  
mercianary's Avatar
Senior Member
Thanks Meter 68
Posts: 722
Join Date: May 2010
Location: Brum
Quote:
Originally Posted by mercianary View Post
using the following command in 2.1 turns on the blue led.

echo 1 > /sys/devices/platform/leds-microp/blue/brightness

there is a very similar command, cant tell you what it is cuz i am on 2.2 at the minute, that will turn off the key lights.

just change echo 1 to echo 0 and blue to keyled or something, you have too look in the leds-microp dir to find out.


when you have the right command install gscript lite from the market and add a shortcut to the homescreen to your command.

don't think it will work in 2.2 though.

easy peasy!


edit:i know it turns of the led but i'm not sure if it keeps it off, dont remember.
read my post again
 
juanjitos
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Sep 2008
thanks again but I'm a rookie and I have no idea of why I say, anyway thank you very much for your attention, I would like is an app that does that, like the one made to turn the blue LED but for the keys.
Thanks
 
mercianary
Old
(Last edited by benko286; 27th June 2010 at 10:56 PM.)
#6  
mercianary's Avatar
Senior Member
Thanks Meter 68
Posts: 722
Join Date: May 2010
Location: Brum
Thumbs up solution:

Here you go.

1. install gscript lite from market and run it once, this should create a directory gscript on your sdcard

2. put memory card in pc

3. create a text file and put this command in it.

echo 0 > /sys/devices/platform/leds-microp/leds/button-backlight/brightness

4. save the file as "buttonled.sh" not "buttonled.sh.txt" in sdcard/gscript

5. put the card back in your phone, hold your finger on the home screen and select shortcut, gscript lite, menu, add script, load file, buttonled.sh, save, buttonled.

6. press the new icon on your screen.


this will only work on 2.1

everytime you press this icon the button lights turn off.

they will come back on after certain events, ie locking the screen.



if you know adb you could edit the file trigger in the same directory to permanently disable the light, i think. you will have to figure that out yourself.
 
juanjitos
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Sep 2008
Ole Ole, hahahaha very good friend of mine works perfectly, many thanks for your great help, you're a crack mate.
a hug
 
mercianary
Old
#8  
mercianary's Avatar
Senior Member
Thanks Meter 68
Posts: 722
Join Date: May 2010
Location: Brum
no problem.
 
juanjitos
Old
#9  
Junior Member - OP
Thanks Meter 0
Posts: 19
Join Date: Sep 2008
the problem is that when putting a rock video with one player or the act, turn to turn on the lights again, is not likely to be permanent?.
Thanks
 
kingchris
Old
#10  
Senior Member
Thanks Meter 11
Posts: 300
Join Date: Apr 2007
Quote:
Originally Posted by mercianary View Post
Here you go.

1. install gscript lite from market and run it once, this should create a directory gscript on your sdcard

2. put memory card in pc

3. create a text file and put this command in it.

echo 0 > /sys/devices/platform/leds-microp/leds/button-backlight/brightness

4. save the file as "buttonled.sh" not "buttonled.sh.txt" in sdcard/gscript

5. put the card back in your phone, hold your finger on the home screen and select shortcut, gscript lite, menu, add script, load file, buttonled.sh, save, buttonled.

6. press the new icon on your screen.


this will only work on 2.1

everytime you press this icon the button lights turn off.

they will come back on after certain events, ie locking the screen.



if you know adb you could edit the file trigger in the same directory to permanently disable the light, i think. you will have to figure that out yourself.
next time use the "quote"
http://forum.xda-developers.com/show...91&postcount=4

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...