5,598,542 Members 44,912 Now Online
XDA Developers Android and Mobile Development Forum

Button Leds Switch for CWM Recovery/xRecovery

Tip us?
 
zorglub08
Old
(Last edited by zorglub08; 19th July 2013 at 11:06 PM.)
#1  
Member - OP
Thanks Meter 61
Posts: 73
Join Date: Aug 2008
Default Button Leds Switch for CWM Recovery/xRecovery

Here's a convenient way to turn off (and then back on) the button leds on our X10 from recovery.
Those are the leds at the bottom of your X10, not the notification led.
Thanks to Adolf1994 for the original script.

It can also be done by copying/deleting a single file instead, but it's more convenient to use this from recovery after installing a new rom.

The new version is for the CWM Recovery
It installs in init.d and includes a solution for roms using Fera Engine v10. On those roms permissions of the brightness file are changed after anything in init.d is run so the nobuttonleds script is also run at the end of hw_config.sh.

CWM version
Should work on any rom with working /etc/init.d or /etc/init.d and hw_config.sh
Tested on:
DiXperia X/10 with DXEngine

Xrecovery version
The /etc/init.d folder needs to be properly working on the rom you use. (thanks to My_Immortal for pointing that out!)
tested on:
- WB-XPERIA TW Gingerbread
- ThJap's 2.3 ThGo2 v1.3

If it doesn't work on the rom you use and you have root, try this:
- add this line to /etc/install-recovery.sh (check first if busybox is in xbin or bin):
/system/xbin/busybox run-parts /system/etc/init.d
or
/system/bin/busybox run-parts /system/etc/init.d
- another way is to use the Script Manager way explained here.


Installation
- copy on your SD card
- start CWM Recovery or xRecovery, install as custom zip
The change is permanent: the button leds will be turned off everytime you boot until you install another rom or you decide to turn them on.
The Following 10 Users Say Thank You to zorglub08 For This Useful Post: [ Click to Expand ]
 
EddyLe
Old
#2  
EddyLe's Avatar
Senior Member
Thanks Meter 5
Posts: 123
Join Date: Jul 2011
thanks :P but i prefer to keep them ON
 
AlgerK70
Old
(Last edited by AlgerK70; 9th August 2011 at 09:14 PM.)
#3  
Junior Member
Thanks Meter 3
Posts: 4
Join Date: Dec 2010
Not working
noled.zip + Script Manager working!
 
zorglub08
Old
#4  
Member - OP
Thanks Meter 61
Posts: 73
Join Date: Aug 2008
AlgerK70, could it be that you already copied noled.sh as 50-noled in /etc/init.d ? If so you need to delete it first, or else the leds will stay "on".
After booting, turn the screen on then off to see if it works.
 
speig
Old
#5  
Member
Thanks Meter 15
Posts: 42
Join Date: Oct 2010
and who's supposed to execute the script at boot?

Sent from my X10i using XDA App
 
zorglub08
Old
(Last edited by zorglub08; 9th August 2011 at 09:26 PM.)
#6  
Member - OP
Thanks Meter 61
Posts: 73
Join Date: Aug 2008
Quote:
Originally Posted by speig View Post
and who's supposed to execute the script at boot?
The little green Android in your phone!

Edit:
The script is executed by the system, it's installed in /etc/init.d, a folder pretty much like the Startup folder on your computer.
 
Z3US911
Old
#7  
Z3US911's Avatar
Senior Member
Thanks Meter 113
Posts: 943
Join Date: Jan 2011
Location: Delhi

 
DONATE TO ME
Which bottom led u r talking about...??
I can't see!!

Sent from my X10 TripNMiUI-Iris using Tapatalk
GOOD POSTS: THANKS

Bad Posts : REPORT
 
iridaki
Old
#8  
iridaki's Avatar
Retired Forum Moderator / Recognized Themer
Thanks Meter 4621
Posts: 3,675
Join Date: Feb 2007
Location: Athens

 
DONATE TO ME
Quote:
Originally Posted by zorglub08 View Post
The little green Android in your phone!

Edit:
The script is executed by the system, it's installed in /etc/init.d, a folder pretty much like the Startup folder on your computer.
No, it's not.
init.d folder doesn't work on the latest stock SE kernel.
We need to wait for custom kernels to run scripts at boot from init.d.
 
zorglub08
Old
#9  
Member - OP
Thanks Meter 61
Posts: 73
Join Date: Aug 2008
It's the 2 white leds between the hardware buttons. The ones that are so annoying when reading an ebook in the dark on low luminosity because they keep turning on
 
speig
Old
#10  
Member
Thanks Meter 15
Posts: 42
Join Date: Oct 2010
Quote:
Originally Posted by My_Immortal View Post
No, it's not.
init.d folder doesn't work on the latest stock SE kernel.
We need to wait for custom kernels to run scripts at boot from init.d.
exactly or you put it in your install-recovery.sh


Sent from my X10i using XDA App

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes