[SCRIPT] Permanent disabling hardkeys backlight

Search This thread

m0narx

Recognized Developer
Jun 5, 2008
262
7,315
Moscow
uhdrom.net
This is a simple init.d script for permanent disabling hardkeys backlight on any desire rom, without additional software.
Just
rename 54DisableKeybLight.txt in 54DisableKeybLight
adb push 54DisableKeybLight /system/etc/init.d/
adb shell chmod 755 /system/etc/init.d/54DisableKeybLight
OR
flash zip
 

Attachments

  • DisableKeybLight.zip
    4.2 KB · Views: 749
  • 54DisableKeybLight.txt
    244 bytes · Views: 573

vnvman

Senior Member
Oct 31, 2009
2,166
245
Alba
This is a simple init.d script for permanent disabling hardkeys backlight on any desire rom, without additional software.
Just
rename 54DisableKeybLight.txt in 54DisableKeybLight
adb push 54DisableKeybLight /system/etc/init.d/
adb shell chmod 755 /system/etc/init.d/54DisableKeybLight
OR
flash zip
Nice, i'm pretty interested ;)
Which roms has it been tested with?
 

Sylde

Senior Member
Jul 2, 2010
92
14
Don't work on Redux 1.0.0

Edit: but I guess it depends on the kernel, isn't that aimed to sense kernel ?
 

Bingley

Senior Member
Jan 6, 2011
1,071
186
Netherfield
Changed to '/sys/devices/i2c-0/0-0066/leds/button-backlight/brightness' and works on Oxygen & Redux gb roms :)

attached gb/oxygen 54DisableKeybLight.txt &.zip - follow instructions in OP.

Thank if works; reply/pm if not! I'd love to know if it works or not on which rom.


Reattached files, should work 100% fine now.
 

Attachments

  • DisableKeybLight.zip
    4.2 KB · Views: 317
  • 54DisableKeybLight.txt
    226 bytes · Views: 189
Last edited:

Jameswgm

Senior Member
Jan 23, 2011
183
17
Tunbridge Wells
Tried pushing both init scripts via adb, neither have an effect on GingerVillain 2.4. Also, the .zip files aren't compatible with the 3.x.x.x releases of CWM.

Edit: It's Cyanogen based so there seems to be some agreement that it does not work with yreham's experience.
 
Last edited:

Fizzerr

Member
Jul 30, 2010
41
19
Why don't you just use "LEDs Hack" available on the Market?

Sent from my GT-P1000 using XDA App
 

Bingley

Senior Member
Jan 6, 2011
1,071
186
Netherfield
Settings->CyanogenMod settings->User interface->Automatic backlight->"Light Level"->"Use Custom"->"Edit other levels" does that work?

If no, try attached 54DisableKeybLights class.txt and/or 54DisableKeybLights platform.txt (rename each to 54DisableKeybLights [no .txt, no class/platform] and adb as per OP)

I don't have CM7 so just going by what I've found online concerning the leds brightness values.

Report back if either/both/non work please.
 

rubyglow

Member
Dec 31, 2010
23
4
Copenhagen
Changed to '/sys/devices/i2c-0/0-0066/leds/button-backlight/brightness' and works on Oxygen & Redux gb roms :)

attached gb/oxygen 54DisableKeybLight.txt &.zip - follow instructions in OP.

Thank if works; reply/pm if not! I'd love to know if it works or not on which rom.


Reattached files, should work 100% fine now.

Thanks a bunch! Works great on my Desire with Oxygen 2.1.3.
 

nikosrs4

Senior Member
Nov 17, 2006
1,470
510
www.thelenscape.com
Xiaomi Poco F3
Changed to '/sys/devices/i2c-0/0-0066/leds/button-backlight/brightness' and works on Oxygen & Redux gb roms :)

attached gb/oxygen 54DisableKeybLight.txt &.zip - follow instructions in OP.

Thank if works; reply/pm if not! I'd love to know if it works or not on which rom.


Reattached files, should work 100% fine now.
that works on Oxygen 2.1.6, thanks ;)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    This is a simple init.d script for permanent disabling hardkeys backlight on any desire rom, without additional software.
    Just
    rename 54DisableKeybLight.txt in 54DisableKeybLight
    adb push 54DisableKeybLight /system/etc/init.d/
    adb shell chmod 755 /system/etc/init.d/54DisableKeybLight
    OR
    flash zip
    3
    In CM7 (and roms based on it) LED backlight values are in /sys/class/leds/button-backlight/brightness
    ie:
    echo 0 > /sys/class/leds/button-backlight/brightness
    or
    echo 255 > /sys/class/leds/button-backlight/brightness
    2
    Changed to '/sys/devices/i2c-0/0-0066/leds/button-backlight/brightness' and works on Oxygen & Redux gb roms :)

    attached gb/oxygen 54DisableKeybLight.txt &.zip - follow instructions in OP.

    Thank if works; reply/pm if not! I'd love to know if it works or not on which rom.


    Reattached files, should work 100% fine now.
    1

    Even better way posted @ http://xdaforums.com/showthread.php?p=38058751#post38058751
    Basically, change backlight file to '0' then lock it by chmod 644 :)

    ------------
    bleh, doesn't survive reboot