Post Reply

Button Leds Switch for CWM Recovery/xRecovery

OP zorglub08

9th August 2011, 05:53 PM   |  #1  
OP Member
Thanks Meter: 61
 
73 posts
Join Date:Joined: Aug 2008
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.
Last edited by zorglub08; 19th July 2013 at 11:06 PM.
The Following 10 Users Say Thank You to zorglub08 For This Useful Post: [ View ]
9th August 2011, 08:03 PM   |  #2  
EddyLe's Avatar
Senior Member
Thanks Meter: 5
 
123 posts
Join Date:Joined: Jul 2011
thanks :P but i prefer to keep them ON
9th August 2011, 08:23 PM   |  #3  
Junior Member
Thanks Meter: 3
 
4 posts
Join Date:Joined: Dec 2010
Not working
noled.zip + Script Manager working!
Last edited by AlgerK70; 9th August 2011 at 09:14 PM.
9th August 2011, 08:46 PM   |  #4  
OP Member
Thanks Meter: 61
 
73 posts
Join Date:Joined: 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.
9th August 2011, 09:04 PM   |  #5  
Member
Thanks Meter: 15
 
42 posts
Join Date:Joined: Oct 2010
More
and who's supposed to execute the script at boot?

Sent from my X10i using XDA App
9th August 2011, 09:18 PM   |  #6  
OP Member
Thanks Meter: 61
 
73 posts
Join Date:Joined: Aug 2008
Quote:
Originally Posted by speig

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.
Last edited by zorglub08; 9th August 2011 at 09:26 PM.
9th August 2011, 09:46 PM   |  #7  
Z3US911's Avatar
Senior Member
Flag Delhi
Thanks Meter: 121
 
981 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Which bottom led u r talking about...??
I can't see!!

Sent from my X10 TripNMiUI-Iris using Tapatalk
9th August 2011, 09:58 PM   |  #8  
iridaki's Avatar
Retired Forum Moderator / Recognized Themer
Flag Edinburgh, Scotland
Thanks Meter: 4,659
 
3,692 posts
Join Date:Joined: Feb 2007
Donate to Me
More
Quote:
Originally Posted by zorglub08

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.
9th August 2011, 09:59 PM   |  #9  
OP Member
Thanks Meter: 61
 
73 posts
Join Date:Joined: 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
9th August 2011, 10:08 PM   |  #10  
Member
Thanks Meter: 15
 
42 posts
Join Date:Joined: Oct 2010
More
Quote:
Originally Posted by My_Immortal

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

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

Advanced Search
Display Modes