Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,793 Members 41,461 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] dim capacitive buttons/leds | fixed | [9/3/12]

Tip us?
 
rsage
Old
(Last edited by rsage; 3rd September 2012 at 06:50 AM.) Reason: fixed flashable zip
#1  
rsage's Avatar
Senior Member - OP
Thanks Meter 165
Posts: 737
Join Date: Jul 2010
Default [MOD] dim capacitive buttons/leds | fixed | [9/3/12]

Flash this mod from custom recovery to dim the red capacitive buttons/leds (home, menu, back, search). This script doesn't change how or when the leds light up, it only controls the brightness when they do light up.

The install script has been fixed to set appropriate permissions - there should no longer be a need to manually set permissions after flashing.

This mod is not needed for ROM's which have this tweak working in Leedroid Tweaks.

Flash like you would flash any other zip. You shouldn't need to wipe cache or dalvik. Nandroid first to be safe. To uninstall, just delete the script from /system/etc/init.d with a root file explorer.


Requirements:
  • ROM with proper init.d support

Credit:
  • fo0you for the idea
  • whoever originally created the script that fo0you posted that gave me the idea
  • Leedroid Tweaks app for being awesome and making me miss this tweak enough to create a script
  • Update: just found that someone already created something very similar to this in the EVO 3D forums (I think), so even though I did this on my own all credit to him for coming up with it first

* Note: The usual caveats apply - I'm not responsible for phone death, please nandroid before flashing, etc.




<------------------------------------------------ information below this line is now mostly obsolete ------------------------------------------------>

UPDATE: This is now flashable from recovery - download dimleds-signed.zip instead of dimleds.zip

For newer Sense 4 ROM's (like Newt's OnE XxX v3.2.1 and ViperRez), there is a minor problem which requires manual intervention. After flashing the zip, you have to use a file explorer to change permissions on the script file in /system/etc/init.d (change permissions to match the permissions of the other script files in the same directory). Alternatively, you can manually copy the script from the zip to /system/etc/init.d and change the permissions. I'll try to get a fixed version up soon.

NOTE: This is no longer needed for Bored's s4 ROM (as of v2.4/2.5)

This is a quick script I threw together to dim the capacitive buttons while running Newt's OnE XxX Sense 4.0 ROM (I'm currently using it on Bored's RezROM S4). I got the idea from another post in Newt's thread (by fo0you) about a script to toggle the capacitive buttons on or off. I prefer them on, but the default brightness is way too bright for me. If you want to toggle the lights on or completely off, get the script fo0you posted. If you just want to dim them, use this one.

This is only a temporary measure until the Leedroid Tweaks app is updated for Sense 4.0 ROMs (this tweak is included in Leedroid Tweaks). This tweak already works in Leedroid Tweaks on some Sense 4.0 ROMs (I think on Joel's BAMF S4 ROM, but I could be wrong), but not others (like Newt's), hence this script. Different Sense 4.0 ROMs seem to have different tweaks working for some reason.

The flashable zip copies a script to /system/etc/init.d

Installation:
  1. Nandroid backup (did I mention that I take no responsibility if your phone implodes, explodes, or you lose data due to this tweak?)
  2. Copy dimleds-signed.zip to root of external SD card
  3. Reboot to recovery and flash like any other flashable zip
  4. Reboot from recovery
  5. New (only for newer Sense 4 ROM's): use a file explorer to change permissions on the script in /system/etc/init.d
  6. New (only for newer Sense 4 ROM's): reboot

If you want to remove the tweak, just delete the 50dimleds script from /system/etc/init.d/ and reboot. You have to use a file manager like ES File Explorer or Root Explorer to do this. The leds will be automatically reset to default brightness when you reboot.
Attached Files
File Type: zip dimleds-signed.zip - [Click for QR Code] (155.5 KB, 317 views)
The Following 20 Users Say Thank You to rsage For This Useful Post: [ Click to Expand ]
 
fo0you
Old
#2  
fo0you's Avatar
Senior Member
Thanks Meter 238
Posts: 585
Join Date: Jul 2010
Location: Portland, Oregon
Hey thanks for this! It's nice to have a "dim" option without going full on/off
Current: LGG2, Stock Rooted KK. Moto Razr M: CarbonRom 4.2 Release
Previous: Droid Eris (R.I.P. Jan 2010-Jan 2012): Retired with Workshed's CM7
 
ruvort
Old
#3  
ruvort's Avatar
Senior Member
Thanks Meter 405
Posts: 1,498
Join Date: Aug 2010
Thank you very much for this

Sent from my HTC Rezound via Tapatalk

MyColorScreen
 
zounduser
Old
#4  
zounduser's Avatar
Senior Member
Thanks Meter 1476
Posts: 4,614
Join Date: Mar 2012
Location: sioux falls SD

 
DONATE TO ME
Worked great! Thanks man

Sent from my s-off rooted htc rezound using Xparent ics blue tapatalk 2
AT&T HTC ONE
VERIZON HTC ONE max
AT&T Galaxy Note 3
BLACKOUT SQUAD MEMBER
TEAM DART TESTER
VIPER ROM TESTER
 
mhkabir98
Old
#5  
mhkabir98's Avatar
Senior Member
Thanks Meter 91
Posts: 151
Join Date: Jan 2012
Location: Kolkata
Gr8 man!

Sent from my HTC Flyer P510e using XDA Premium HD app
Please press THANKS if you like my help,mods,patches or ROMs.

My Work
3G Remover for WiFi Flyer
FlyCs Acidic ICS ROM for HTC Flyer



Tablet:

HTC Flyer S-OFF

Scribe Pen
S-OFF via Revolutionary

ROM:
FlyCS Acidic ROM - AOSP ICS Or
LeeDroid HC 4.3.0
Kernel:
Leedroid Kernel V 3.1.0
Recovery:
DooMLord Touch Recovery CWM 5.00.xx

I am not only a 13 year old Android developer , I am also at Instructables!
 
zounduser
Old
#6  
zounduser's Avatar
Senior Member
Thanks Meter 1476
Posts: 4,614
Join Date: Mar 2012
Location: sioux falls SD

 
DONATE TO ME
This wouldnt work 4 ivysaur rom. Sucks!

sent from my htc rezound using xparent ics tapatalk 2
AT&T HTC ONE
VERIZON HTC ONE max
AT&T Galaxy Note 3
BLACKOUT SQUAD MEMBER
TEAM DART TESTER
VIPER ROM TESTER
 
yojoe600
Old
#7  
yojoe600's Avatar
Senior Member
Thanks Meter 427
Posts: 2,061
Join Date: Jan 2009
Location: Greensboro, NC

 
DONATE TO ME
Quote:
Originally Posted by zounduser View Post
This wouldnt work 4 ivysaur rom. Sucks!

sent from my htc rezound using xparent ics tapatalk 2
Edit I was wrong

Sent from my Dinc... I mean Rezound

My Current Devices:
Blue HTC One


Previous:
HTC Rezound- Turning into a webcam?
Nexus 7 (2013)- Gave it to my Mother
Droid Incredible -Sitting in some drawer
Samsung Omnia SOLD

Follow me!
https://twitter.com/yojoe600
 
aalopez10
Old
#8  
Senior Member
Thanks Meter 113
Posts: 735
Join Date: Sep 2009
Does this work on the new Ivysaur Rom, anyone had jump n flash it n see if it works?

Sent from my ADR6425LVW using Tapatalk 2
 
yojoe600
Old
#9  
yojoe600's Avatar
Senior Member
Thanks Meter 427
Posts: 2,061
Join Date: Jan 2009
Location: Greensboro, NC

 
DONATE TO ME
Quote:
Originally Posted by aalopez10 View Post
Does this work on the new Ivysaur Rom, anyone had jump n flash it n see if it works?

Sent from my ADR6425LVW using Tapatalk 2
Did u not read two posts above you ?

Sent from my Dinc... I mean Rezound

My Current Devices:
Blue HTC One


Previous:
HTC Rezound- Turning into a webcam?
Nexus 7 (2013)- Gave it to my Mother
Droid Incredible -Sitting in some drawer
Samsung Omnia SOLD

Follow me!
https://twitter.com/yojoe600
The Following 2 Users Say Thank You to yojoe600 For This Useful Post: [ Click to Expand ]
 
zounduser
Old
#10  
zounduser's Avatar
Senior Member
Thanks Meter 1476
Posts: 4,614
Join Date: Mar 2012
Location: sioux falls SD

 
DONATE TO ME
Just so u know, im on the most recent leaked firm... And ive tried this numerous times with no luck. I did have it working on my old setup which was previous ics leak, and the same rezrom.

sent from my rooted & s-off rezound using X-parent ics tapatalk 2
AT&T HTC ONE
VERIZON HTC ONE max
AT&T Galaxy Note 3
BLACKOUT SQUAD MEMBER
TEAM DART TESTER
VIPER ROM TESTER

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes