Now Gesture Tweaks Replaces Google Now with Custom Action

On most modern Android devices with software navigation keys, swiping up from the … more

ToqAN Fixes Android 5.0 Notification Bug on Qualcomm Toq

The Qualcomm Toq is probably one of the lesser known smartwatches on the market … more

How to Root and Unlock the Google Nexus 6 on a Mac – XDA TV

In the past, XDA Developer TV Producer droidmodd3rx has shown you how to … more

Set Up Your MediaTek Device with Comprehensive Beginner’s Guide

As can be seen with the use of MediaTek chips in Android One devices … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD] Turn off the light on the keys

OP juanjitos

27th June 2010, 04:58 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Sep 2008
More
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.
Last edited by juanjitos; 30th June 2010 at 11:01 PM. Reason: New method
27th June 2010, 06:13 PM   |  #2  
mercianary's Avatar
Senior Member
Flag Brum
Thanks Meter: 71
 
722 posts
Join Date:Joined: May 2010
More
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.
Last edited by mercianary; 27th June 2010 at 06:17 PM.
27th June 2010, 06:17 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Sep 2008
More
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
27th June 2010, 06:25 PM   |  #4  
mercianary's Avatar
Senior Member
Flag Brum
Thanks Meter: 71
 
722 posts
Join Date:Joined: May 2010
More
Quote:
Originally Posted by mercianary

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
27th June 2010, 06:28 PM   |  #5  
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Sep 2008
More
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
27th June 2010, 07:16 PM   |  #6  
mercianary's Avatar
Senior Member
Flag Brum
Thanks Meter: 71
 
722 posts
Join Date:Joined: May 2010
More
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.
Last edited by benko286; 27th June 2010 at 11:56 PM.
27th June 2010, 07:49 PM   |  #7  
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Sep 2008
More
Ole Ole, hahahaha very good friend of mine works perfectly, many thanks for your great help, you're a crack mate.
a hug
27th June 2010, 07:53 PM   |  #8  
mercianary's Avatar
Senior Member
Flag Brum
Thanks Meter: 71
 
722 posts
Join Date:Joined: May 2010
More
no problem.
27th June 2010, 09:10 PM   |  #9  
OP Junior Member
Thanks Meter: 0
 
19 posts
Join Date:Joined: Sep 2008
More
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
27th June 2010, 10:29 PM   |  #10  
Senior Member
Thanks Meter: 11
 
300 posts
Join Date:Joined: Apr 2007
More
Quote:
Originally Posted by mercianary

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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes