Post Reply

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

21st April 2012, 01:10 AM   |  #1  
rsage's Avatar
OP Senior Member
Thanks Meter: 166
 
742 posts
Join Date:Joined: Jul 2010
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, 321 views)
Last edited by rsage; 3rd September 2012 at 06:50 AM. Reason: fixed flashable zip
The Following 20 Users Say Thank You to rsage For This Useful Post: [ View ]
21st April 2012, 01:17 AM   |  #2  
fo0you's Avatar
Senior Member
Portland, Oregon
Thanks Meter: 238
 
585 posts
Join Date:Joined: Jul 2010
Hey thanks for this! It's nice to have a "dim" option without going full on/off
21st April 2012, 08:16 AM   |  #3  
ruvort's Avatar
Senior Member
Thanks Meter: 405
 
1,498 posts
Join Date:Joined: Aug 2010
More
Thank you very much for this

Sent from my HTC Rezound via Tapatalk

MyColorScreen
1st May 2012, 02:59 AM   |  #4  
zounduser's Avatar
Senior Member
Flag sioux falls SD
Thanks Meter: 1,500
 
4,653 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Worked great! Thanks man

Sent from my s-off rooted htc rezound using Xparent ics blue tapatalk 2
1st May 2012, 03:02 AM   |  #5  
mhkabir98's Avatar
Senior Member
Flag Kolkata
Thanks Meter: 92
 
151 posts
Join Date:Joined: Jan 2012
More
Gr8 man!

Sent from my HTC Flyer P510e using XDA Premium HD app
3rd May 2012, 08:58 AM   |  #6  
zounduser's Avatar
Senior Member
Flag sioux falls SD
Thanks Meter: 1,500
 
4,653 posts
Join Date:Joined: Mar 2012
Donate to Me
More
This wouldnt work 4 ivysaur rom. Sucks!

sent from my htc rezound using xparent ics tapatalk 2
3rd May 2012, 09:22 AM   |  #7  
yojoe600's Avatar
Senior Member
Flag Greensboro, NC
Thanks Meter: 433
 
2,077 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by zounduser

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
3rd May 2012, 10:14 AM   |  #8  
Senior Member
Thanks Meter: 113
 
735 posts
Join Date:Joined: 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
3rd May 2012, 05:29 PM   |  #9  
yojoe600's Avatar
Senior Member
Flag Greensboro, NC
Thanks Meter: 433
 
2,077 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by aalopez10

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
The Following 2 Users Say Thank You to yojoe600 For This Useful Post: [ View ]
5th May 2012, 03:28 PM   |  #10  
zounduser's Avatar
Senior Member
Flag sioux falls SD
Thanks Meter: 1,500
 
4,653 posts
Join Date:Joined: Mar 2012
Donate to Me
More
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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in Rezound Android Development by ThreadRank