Go Back   Android Forums > Android Phones > LG Spectrum
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old April 9th, 2013, 02:03 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2013
Location: Wichita, KS
Gender: Male
Posts: 21
 
Device(s): VS 920
Carrier: Verizon

Thanks: 9
Thanked 6 Times in 3 Posts
Default Hardware Keys Backlight

I was just wondering of there is anyway to manually turn off the back light for hardware keys in cm 10.1. Thanks ahead of time for any assistance.

Sent from my VS920 4G using Xparent Green Tapatalk 2

lakota_wolf is offline  
Reply With Quote
Sponsors
Old April 9th, 2013, 06:41 AM   #2 (permalink)
Senior Member
 
Join Date: Sep 2011
Location: Virginia, USA
Gender: Male
Posts: 716
 
Device(s): LG Spectrum
Carrier: Verizon Wireless

Thanks: 58
Thanked 284 Times in 213 Posts
Default

Quote:
Originally Posted by lakota_wolf View Post
I was just wondering of there is anyway to manually turn off the back light for hardware keys in cm 10.1. Thanks ahead of time for any assistance.

Sent from my VS920 4G using Xparent Green Tapatalk 2
This method works fine with a couple fixes...

http://forum.xda-developers.com/showthread.php?t=2205998

Summary and fixes:
Connect with adb to you phone (you could do this through a local terminal as well)
Quote:
adb shell
echo 0 > /sys/class/leds/button-backlight/max_brightness
chmod 755 /sys/class/leds/button-backlight/max_brightness
It says to reboot on the linked page, but it begins working immediately.

If you want to disable the buttons completely? You'll have to edit the keymaps either manually or using a app.
Yoinx is online now  
Reply With Quote
The Following User Says Thank You to Yoinx For This Useful Post:
lakota_wolf (April 9th, 2013)
Old April 9th, 2013, 09:33 AM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2013
Location: Wichita, KS
Gender: Male
Posts: 21
 
Device(s): VS 920
Carrier: Verizon

Thanks: 9
Thanked 6 Times in 3 Posts
Default

Thank you. That's exactly what I was looking for. Just wanted the LEDs off. They are blinding at night and unneeded.

Sent from my VS920 4G using Xparent Green Tapatalk 2
lakota_wolf is offline  
Reply With Quote
Old April 9th, 2013, 10:00 AM   #4 (permalink)
Senior Member
 
Join Date: Sep 2011
Location: Virginia, USA
Gender: Male
Posts: 716
 
Device(s): LG Spectrum
Carrier: Verizon Wireless

Thanks: 58
Thanked 284 Times in 213 Posts
Default

Quote:
Originally Posted by lakota_wolf View Post
Thank you. That's exactly what I was looking for. Just wanted the LEDs off. They are blinding at night and unneeded.

Sent from my VS920 4G using Xparent Green Tapatalk 2
No problem. I just rebooted though and the change didn't persist. May need to make an init script to effect the changes on boot.

Alright, so here's what I've got... and I'm hitting a bit of a snag. Maybe someone can offer some insight.

In /system/etc/init.d/S99Button_Backlight_Disable (permissions 777) I have:

Quote:
#!/system/bin/sh
echo 0 > /sys/class/leds/button-backlight/max_brightness
chmod 755 /sys/class/leds/button-backlight/max_brightness

This doesn't work during boot like I would expect that it should.

However, running this file from script manager manually disables my button backlight. Would S99 not be the right runlevel to try running this at? I figured trying to run it last would be the best bet so that if something else was setting the max brightness beforehand, I could overwrite it.

Any Ideas?

*edit*

Alright, So I figured it out... I didn't have init.d support enabled, usually I do. Apparently, it isn't enabled in the PACman Rom by default. The setup above works fine to persist the lights once init.d support is enabled. Most custom kernels/roms have this enabled already. *shrug* You can use an app like PimpMyRom to enable init.d or any of the other methods out there.

Either way, creating that file with those contents works.

Sent from my VS920 4G using Tapatalk 2
Yoinx is online now  
Last edited by Yoinx; April 9th, 2013 at 12:15 PM. Reason: Figured it out.
Reply With Quote
Old April 9th, 2013, 10:00 PM   #5 (permalink)
Senior Member
 
Join Date: Sep 2011
Location: Virginia, USA
Gender: Male
Posts: 716
 
Device(s): LG Spectrum
Carrier: Verizon Wireless

Thanks: 58
Thanked 284 Times in 213 Posts
Default

I went ahead and made this a flashable zip that should work to add the script to disable the buttons backlights to init.d (so that you can add it easily after flashing new roms).


I didn't test this zip, but I don't see why it shouldn't work... It's configured to /dev/block/mmcblk0p26 to be system. VS920 on VZW. Not sure if it's the same for other carries as I saw that on the quatrimus roms some were p27.

Anyway. Good luck, enjoy!

*edit*
Finally updated my rom, so I had a use for this zip. worked fine. Just keep in mind that this does not enable init.d and wont do anything until it is.
Attached Files
File Type: zip Disable_Buttons_Backlight.zip (139.1 KB, 8 views)
Yoinx is online now  
Last edited by Yoinx; April 16th, 2013 at 04:52 PM.
Reply With Quote
Reply

LG Spectrum
Current Rating:
Rate this Phone:

The LG Spectrum for Verizon Wireless is the sucessor to the LG Revolution. Surely, LG did not want to stay behind, so this device packs some great specs and features. The Spectrum sports a 4.5-inch HD IPS display, a 1.5 GHz dual-core processor and ... Read More



Go Back   Android Forums > Android Phones > LG Spectrum
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:15 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.