[Q] Disable Hardware lights/leds for AOSP Roms??? - AT&T LG Optimus G

Anyone know how to disable the hardware lights for the front buttons? I see two different areas of potential:
1. Modify the following config files located here: /sys/class/leds/button-backlight/ and set the permissions to read only. Issue: will not keep after a reboot.
2. Remove following lib: lights.msm8960.bak. Issue: Kills notification LED as well. Anyone know if this lib is proprietary or open source? Anyone to modify it to only turn off the button backlights?
Thanks in advance.

http://webchat.freenode.net/?channels=lg-optimus-g

adfurgerson said:
http://webchat.freenode.net/?channels=lg-optimus-g
Click to expand...
Click to collapse
Are you using the stock ROM? if then, go to Settings -> Display -> Notification Flash and deselect "Use LED light for notifications" checkbox.

axeman007 said:
Are you using the stock ROM? if then, go to Settings -> Display -> Notification Flash and deselect "Use LED light for notifications" checkbox.
Click to expand...
Click to collapse
He's talking about the lights on the capacitive keys, not the notification led on the power button...
Sent from my Optimus G using Tapatalk 2

dandrumheller said:
He's talking about the lights on the capacitive keys, not the notification led on the power button...
Sent from my Optimus G using Tapatalk 2
Click to expand...
Click to collapse
The front capacitive key lights can be turned off (on stock-based ROMs) in settings > display > Front key light.

Thanks for the replies. Looking for a solution for AOSP based roms. I should have stated that.

sednafx said:
Thanks for the replies. Looking for a solution for AOSP based roms. I should have stated that.
Click to expand...
Click to collapse
Make an init.d script with the code you provided, it'll "fix" the problem of not sticking after a reboot.
I assume that you have a rooted phone. If your kernel doesn't support init.d, you can use any of plenty different solutions to enable it.

sednafx said:
2. Remove following lib: lights.msm8960.bak. Issue: Kills notification LED as well. Anyone know if this lib is proprietary or open source? Anyone to modify it to only turn off the button backlights?
Click to expand...
Click to collapse
It is open source. It should be trivial to modify to disable button backlight, or put a toggle in place. Not saying that I know how. Also, it should be noted that that also controls the lcd backlight, and it will cause it to not be able to be adjusted if deleted / renamed.
EDIT:
Actually, I took a look at it, and you can try replacing the lights.msm8960.so with this file. I am not sure if it will work on any kernel other than the one I compiled it with, but it is worth a shot.
http://dev.h2cycle.com/android/lights.msm8960.so

Related

CM7 soft key backlights

Is there any way to adjust the time frame before the bottom leds go out? I find they go out too fast...
This annoys me as well. Anyone?
I think its under settings, profile, then u can change for each individual profile
Sent from my SCH-I500 using Tapatalk
How about with glitch kernel v13? The device options are greyed out.
nmalready said:
How about with glitch kernel v13? The device options are greyed out.
Click to expand...
Click to collapse
Same. Anyone?
nmalready said:
How about with glitch kernel v13? The device options are greyed out.
Click to expand...
Click to collapse
CM7 stock uses a different bln module. So if you flashed glitch (which uses nelders bln module) you break the cm7 bln options. On another note though "pool party" has key timeout setting integrated within tsm parts.
good day.

Disabling LEDs on kernel level

Is there any mod that can disable notification LED and sensitive buttons LEDs forever? I know there is a few apps that can do that. But I don't wanna use apps, I noticed some custom ROMs ship with that option. I'm using stock ROM. Sorry for creating a new thread for that. But I can't find a solution for EVO 3D that would work for me. Thanks
I'm sure there will be something released like that. Nothing to my knowledge as of yet. Just something to dim the capacitive buttons.
And this goes in the Q&A section. I hope you have thick skin. Pm a mod to have it moved
Sent from the CM powered 3d
It wouldn't be too hard to do. You can see what needs changed in the kernel in my thread here. I have a version that has no capacitive LEDs and the notification LED will shut off after 5 mins or so.
plotnick said:
Is there any mod that can disable notification LED and sensitive buttons LEDs forever? I know there is a few apps that can do that. But I don't wanna use apps, I noticed some custom ROMs ship with that option. I'm using stock ROM. Sorry for creating a new thread for that. But I can't find a solution for EVO 3D that would work for me. Thanks
Click to expand...
Click to collapse
well... not sure about the blinking LED's... but let me ask you this: how will you know when your phone is charged?
and as for the soft keys, if you have root explorer, navigate to...
/sys/devices/platform/leds-pm8058/leds/button backlight/currents
when you select the button backlight directory, the "currents" is a file. long press on this file until a little menu pops up, select "open in text editor" the value there should be default 20. change it to zero, then hit your menu soft key and select "save and exit"
your leds are now off.
EDIT** and before you do all of that, you will need to select the little grey box at the top of root explorer to mount the system files as "RW", otherwise you wont be able to edit the currents file (as it will be read only)
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
it worked but only until the next restart. It restores default value everytime... Why?
plotnick said:
it worked but only until the next restart. It restores default value everytime... Why?
Click to expand...
Click to collapse
because the LED is controlled by the kernel... so, although you can manually fix it for a moment to the value you want, every time the phone boots, the phone resets the value.
the only way to make it permanent is to have a kernel with disabled LEDs
plotnick said:
it worked but only until the next restart. It restores default value everytime... Why?
Click to expand...
Click to collapse
If you just don't want the bottom buttons to light up, use the kernel I linked in my earlier post (assuming you are using a 2.3.4 ROM). If you're still using a 2.3.3 ROM, you can find a kernel call nolights made by joe85 (which is where I found the changes to make in the kernel for 2.3.4).
Yay! Now i will finally be able to sleep at night!

Turn on button leds after tuning off.

Cant remember for the life of me how i did it, but I turned off my capacitive button leds. Could have been via a patch or changing some file or something, but I cant find the thread that it was in.
Anyone remember where to find it?
I'm on a stock ROM, and yes I have searched high and low already. Id rather not have to flash a stock ROM over what I already have if possible.
Settings > Display > Touch key light duration
Sent from my GT-I9300 using xda premium
There's no need a patch, just enable/disable it via settings, can't remember where but check display settings.
Edit: isadora was quicker.
Thanks guys, there I was over complicating things again.

Capacitive Buttons not working

So I think the capacitive buttons on my Rezound have bit the dust. I was having trouble with CM 10.2, and thought that was the cause. I have since tried various roms that had worked in the past and have tried going back to a stock rom to no avail. I now believe I just have a good old fashioned hardware failure.
I'm trying to figure out a work around, as I can't really afford a new phone currently. Does anyone know if we have any ROMs that have the home and back buttons on them like a Nexus device, (where they are the black and white softkeys at the bottom)?
YTHero said:
So I think the capacitive buttons on my Rezound have bit the dust. I was having trouble with CM 10.2, and thought that was the cause. I have since tried various roms that had worked in the past and have tried going back to a stock rom to no avail. I now believe I just have a good old fashioned hardware failure.
I'm trying to figure out a work around, as I can't really afford a new phone currently. Does anyone know if we have any ROMs that have the home and back buttons on them like a Nexus device, (where they are the black and white softkeys at the bottom)?
Click to expand...
Click to collapse
All CM10.2 based roms have em, just need to enable the buttons. Using PIE controls is an option also.
To enable the Nav bar, try adding this to your build.prop and reboot.
qemu.hw.mainkeys=0
Edit: Just noticed a typo, cut it from another site, it's fixed now.
Thanks for your reply. I've never edited any build.prop before, I knew you could do that but didn't know why you would or what it did.
I installed CarbonRom to get the nav bar and it seems to work pretty well.
Edit: can I turn off the lights for the capacitive buttons with a build.prop?
YTHero said:
Thanks for your reply. I've never edited any build.prop before, I knew you could do that but didn't know why you would or what it did.
I installed CarbonRom to get the nav bar and it seems to work pretty well.
Edit: can I turn off the lights for the capacitive buttons with a build.prop?
Click to expand...
Click to collapse
You can use kernel tuner and slide the slider to 0. That'll disable the lights.
Sent from my ADR6425LVW using Tapatalk
YTHero said:
Thanks for your reply. I've never edited any build.prop before, I knew you could do that but didn't know why you would or what it did.
I installed CarbonRom to get the nav bar and it seems to work pretty well.
Edit: can I turn off the lights for the capacitive buttons with a build.prop?
Click to expand...
Click to collapse
Check to see if Carbon has a Buttons section under the Settings, if so you can turn the brightness off.
tmanschuette said:
You can use kernel tuner and slide the slider to 0. That'll disable the lights.
Sent from my ADR6425LVW using Tapatalk
Click to expand...
Click to collapse
mjones73 said:
Check to see if Carbon has a Buttons section under the Settings, if so you can turn the brightness off.
Click to expand...
Click to collapse
I added that line to build.prop in CM 10.2, and nothing changed. Also I couldn't find the pie control options, so I dunno.
Carbon had no buttons section, and I couldn't find an option anywhere else to disable the led lights.
Hmm, you may need expanded desktop on also, I'll try it on mine later.
Sent from my Rezound on Tachyon using Tapatalk
I found the error, what you typed earlier was wrong - it's "qemu.hw.mainkeys=0".
I changed that, rebooted and now it works.
Sorry, copied that from another thread, guess they had it wrong also..
Sent from my Rezound on Tachyon using Tapatalk
I can confirm that this works on CM11 too.

Nav Key Backlight

Sorry if I have missed the obvious, but is there any way to change the settings of the backlighting for the nav keys? I am having trouble hitting the keys, and would like them always dimly lit if possible. Lighting them up briefly after you have pressed them seems rather meaningless.
kanagawaben said:
Sorry if I have missed the obvious, but is there any way to change the settings of the backlighting for the nav keys? I am having trouble hitting the keys, and would like them always dimly lit if possible. Lighting them up briefly after you have pressed them seems rather meaningless.
Click to expand...
Click to collapse
With Xposed and gravity box, there is a setting for this behaviour...
Don't know if there is a single Modul only for this (gravity box fires many many other things also)...
Bogeyof said:
With Xposed and gravity box, there is a setting for this behaviour...
Don't know if there is a single Modul only for this (gravity box fires many many other things also)...
Click to expand...
Click to collapse
Shame there isn't a way to do it natively, but I have taken your advice and installed xposed and gravitybox. It's nice not having to guess where the buttons are. Maybe I will turn the light off once my muscle memory of their location has formed, but for now I am happy to have them always lit
I installed Xposed and gravity box and enabled the navigation let's while screen is on. Anyway to dim the navigation keys?
You can do this via settings, accessibility, navigation buttons, always on.
ajoesmith said:
You can do this via settings, accessibility, navigation buttons, always on.
Click to expand...
Click to collapse
No, you can't. At least not on the stock ROM, there's no such a setting.
Hello Guys,
I reactivate this thread because I have a similar problem on my x820 : It's impossible for me to get Nav key backlight turned on.
I've it working, but till a few days impossible...
I've tried to to flash different ROMs (Stock CN 23s and original 19s Indian, lineageOS, Cuoco and more) with no root root, Xposed + gravity box, from playstore : Keyboard backlight controller and Capcitive buttons.
Nothing change : impossible see my buttons.
Hardware failure or what else ?
If someone could light me ...thanks.
If you cannot get them back on with the official unmodified ROM after completely wiping your phone, that means they're most likely physically dead.
ApTeM said:
If you cannot get them back on with the official unmodified ROM after completely wiping your phone, that means they're most likely physically dead.
Click to expand...
Click to collapse
Yes that's what I think, I'll try another full wipe with 5.9.023s (5.8.019s Indian doesn't have this option).
tr0ubles0me said:
No, you can't. At least not on the stock ROM, there's no such a setting.
Click to expand...
Click to collapse
Yes, it's possible with accessibility settings.
I've just turned on and it's always on with the screen, if you use aurel's ROM there's is an extra low brightness patch for soft buttons
arielaco said:
Yes, it's possible with accessibility settings.
I've just turned on and it's always on with the screen, if you use aurel's ROM there's is an extra low brightness patch for soft buttons
Click to expand...
Click to collapse
What's the setting called?
Sent from my LeEco Le Max 2 using XDA Labs
"Settings", "Accessibility", "Navigation Button" section and there's only one item named: "Backlight duration", there's three options to choose, "Light up on touch"(Default setting), "Light up when screen is on"(the one that you need) and the last one "Never light up".
I hope it could help
arielaco said:
"Settings", "Accessibility", "Navigation Button" section and there's only one item named: "Backlight duration", there's three options to choose, "Light up on touch"(Default setting), "Light up when screen is on"(the one that you need) and the last one "Never light up".
I hope it could help
Click to expand...
Click to collapse
Thanks. I'm still on 16s, the US version, and I don't have such a setting. It has probably been added in later versions.
Sent from my LeEco Le Max 2 using XDA Labs
I'm on chinese 23s
tr0ubles0me said:
Thanks. I'm still on 16s, the US version, and I don't have such a setting. It has probably been added in later versions.
Sent from my LeEco Le Max 2 using XDA Labs
Click to expand...
Click to collapse
Yes, was added in 21S I think.
I just got the US version and I have 16s also. This lack of backlight control is very annoying as I love the phone otherwise. Is there any chance of an upgrade to a newer version in the future or am I stuck with this problem.
I don't have any setting like that
No, you can't on stock Rom.
---------- Post added at 07:54 AM ---------- Previous post was at 07:50 AM ----------
No, they're not dead. No such setting nonstick rom. I have 2 of them, one with stock, the other with Google pixel Rom. The setting is there on the pixel Rom, but not the stock.
birdie said:
If you cannot get them back on with the official unmodified ROM after completely wiping your phone, that means they're most likely physically dead.
Click to expand...
Click to collapse

Categories

Resources