[Solved] Is there a script or a command to permanently turn off capacitive lights? - HTC EVO 3D

I rather not have them turn on at all. I don't like using screen filter because it disables randomly or when the brightness is adjusted either manually or from another app.

LEDs hack in the market. You can use to disable them, but I don't know if it will stay after reboot.

Didn't work that's the first thing I tried.

I have a script I got from somewhere on here that I just run the command in terminal emulator. One command, and it turns off when on or turns off when on.
#!/system/bin/sh
ws=255
exec < /sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
read s
ks=$((s^ws))
echo $ks > /sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
Click to expand...
Click to collapse
Sent from my PG86100 using XDA App

arrgh couldn't get it to work, says 0 not found in adb and 255: not found in terminal emulator

Use screen filter in the market

mattfmartin said:
Use screen filter in the market
Click to expand...
Click to collapse
Re-read post #1

I have to admit this would be very nice. No need for the lights and should help battery.

I'm ready to take the phone apart and remove/cut the leds for them.
I dislike them too

NewZJ said:
I'm ready to take the phone apart and remove/cut the leds for them.
I dislike them too
Click to expand...
Click to collapse
I was thinking of just maybe coloring the LED's with a black Sharpie. But im sure there's a easy way without taking the phone apart.

Here, download this then
adb remount
adb push leds /system/bin
Now, in adb shell or terminal, type leds
http://db.tt/4Bx7sRs
Sent from my PG86100 using XDA App

Is it possible to just dim them?
I would like them as dim as possible so that I can only see them lit in complete darkness.

you can set up profiles in tasker to disable them
http://forum.xda-developers.com/showthread.php?t=1185127
/self plug

DomSim said:
you can set up profiles in tasker to disable them
http://forum.xda-developers.com/showthread.php?t=1185127
/self plug
Click to expand...
Click to collapse
Thanks. I don't have tasker, but looked at this from your tut: For capacitive leds,
@! echo X > sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
0 = OFF
1 = ON
I was able to use Root Explorer, and navigate to "/sys/devices/platform/leds-pm8058/leds/button-backlight/brightness" When I got to the 'brightness' file, I long pressed it, and cliicked 'open in text editor'. It opened and the number 255 was there. I deleted it, and added a 0, then hit menu and chose 'save and exit'. Not sure if i did it right, but as soon as I hit save and exit the capacitive lights turned out, and I've had no issues so far.
EDIT: NVM, they came back on and the 0 changed back to 255. Lights are back on after the screen shuts off and turns back on.

Tasker is $7, kinda pricey for me. Im a cheap bastard when it comes to adding to my $200+ phone bill.

Noticed they came back on with the script too. So I modified the script to make it stick.
http://db.tt/4Bx7sRs
Sent from my PG86100 using XDA App

man my adb is not working, will this work in the script manager?

Pushed it using root explorer then typed leds in the terminal. LED's turned off. Nice!
Also worked after reboot. Thanks alot!

Glad it worked for ya. Do you get that bug with the half a search light lit though? It's a hardware problem but damned annoying
Sent from my PG86100 using XDA App

danaff37 said:
Glad it worked for ya. Do you get that bug with the half a search light lit though? It's a hardware problem but damned annoying
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
It's leakage. Any way to make the leds turn off at screen dimmed?
Sent From My HTC Evo 3D Using Tapatalk On The Now Network From Sprint!

Related

Turning off LED button back lights

Hello,
Anyone have an idea of how to simply turn off LED button back lights?
It seems it could be done as there is already at least one app that uses them for notification.
Here is what I am trying to do:
I've downloaded a desktop alarm clock app that turns the screen back light WAY down so it is not disruptive in a completely dark room while sleeping. But, the buttons remain illuminated.
Basically 8 want to use tasker to launch those clock and turn off the button back lights if the phone is charging and the time is after a certain hour.
I am thinking I could fire off a script with tasked to do thwarting back lights portion of this as well, but I don't even know where to begin.
Any ideas? Thanks!
Sent from my Dell Streak using XDA App
I'm rooted, and use an app called AdjBrightness. Works wonders, and also via menu, you can totally turn off the LED lights.
Hope that helps.
Cool, I will check it out. Ideally I would like to do it automatically, without having to open another app, but this tells me it ostensibly at least doable.
Thanks!
Sent from my Dell Streak using XDA App
If you want the code, just do this from adb or from your phone's terminal.
echo "0" > /sys/class/leds/button-backlight/brightness
Thanks! I think that is getting pretty close to what I need. Any idea if/how this could be written or saved as a SL4A script that could be fired off with tasker?
Also, I'd need to configure an exit task as well for morning, so I will need to know how to set all the buttons back to normal.
I know this is kinda minor, but I am excited about it nonetheless. Looking forward to having a nice, super dim clock to check the time late at night.
Thanks again!
Sent from my Dell Streak using XDA App
Spleisher said:
Thanks! I think that is getting pretty close to what I need. Any idea if/how this could be written or saved as a SL4A script that could be fired off with tasker?
Also, I'd need to configure an exit task as well for morning, so I will need to know how to set all the buttons back to normal.
I know this is kinda minor, but I am excited about it nonetheless. Looking forward to having a nice, super dim clock to check the time late at night.
Thanks again!
Sent from my Dell Streak using XDA App
Click to expand...
Click to collapse
You could always leave your computer on overnight and make a macro that executes the adb command to dim the leds and then executes another that makes them bright again at a certain time.
There must be something similar you can do on the phone though.
Thanks for the thoughts Meltus.
Well, I did it! I actually created a solution that is, at least to me, the first thing I have done that might actually be worth it to others and might be worth sharing.
I'll post this in more detail in the Apps/Themes forum as I am not sure it belongs here, but the short version is that you can use a plug-in called "Locale Execute" that allows you run SU commands in Tasker.
So, I created a profile in Tasker so that when the phone is plugged in to AC power between certain hours (I may add some other contexts to tweak it, like maybe say it has to be in landscape orientation), it launches my desk clock app, turns the screen down to the very lowest setting (not the "low" setting allowed at the user level), and turns the button lights off using the command you gave me.
Then, when the AC power is pulled, It automatically goes to my default home screen, returns the screen brightness to normal, and turns the button back-lights back on.
It really is pretty cool!
Spleisher said:
Thanks for the thoughts Meltus.
Well, I did it! I actually created a solution that is, at least to me, the first thing I have done that might actually be worth it to others and might be worth sharing.
I'll post this in more detail in the Apps/Themes forum as I am not sure it belongs here, but the short version is that you can use a plug-in called "Locale Execute" that allows you run SU commands in Tasker.
So, I created a profile in Tasker so that when the phone is plugged in to AC power between certain hours (I may add some other contexts to tweak it, like maybe say it has to be in landscape orientation), it launches my desk clock app, turns the screen down to the very lowest setting (not the "low" setting allowed at the user level), and turns the button lights off using the command you gave me.
Then, when the AC power is pulled, It automatically goes to my default home screen, returns the screen brightness to normal, and turns the button back-lights back on.
It really is pretty cool!
Click to expand...
Click to collapse
Good job, sounds pretty cool
I'm sure many people will find this useful!
Does the louder volume app work with the streak?
SeanH said:
Does the louder volume app work with the streak?
Click to expand...
Click to collapse
No i'm afraid it doesn't. Also, send me a pm next time rather than ask in someone else's thread
I did turne off button's back-light by adjusting the context of "/sys/class/leds/button-backlight/brightness" file from 255 to 0, it works great, but it gets back to normal after phone restart, I even went to properties of the file and removed all the "write" rights, but it won't give in.

[Script]Toggle Button Leds off/on/off/on....

I wrote a script that runs in g script (lite), from market.
It runs on my 3d and toggles the button leds from on to off and back.
Each time the script is run it toggles the leds.
http://db.tt/sY7zGUo
I am rooted and it does require it.
It's quick except for the Gscript 20 second rule....
Note:
To run this, download it, then move it to the gscript folder on the root of the sdcard.
Next run gscript and > Menu add new script. Choose load file "led toggle 2"
You can also use the screen filter app. Set the filter to 100% and disable/unchecked "enable soft-key backlight".
I find it easier but that just me.
Sent from my smartphone IN 3D!
Hey. That's kindof awesome.
I personally use screen filter and tasker. I have it set so whenever I enter a game, game, movie it will turn screen filter on, turning off the buttons. And when I exit any of those it will turn then back on. Perfect.
Sent from my PG86100 using Tapatalk
This is cool, I'd like them permanently off.
And who needs screen filter when you can do it the geek way and run a script?
phatmanxxl said:
This is cool, I'd like them permanently off.
And who needs screen filter when you can do it the geek way and run a script?
Click to expand...
Click to collapse
Screen filter you don't need root. Pluss screen filter has added benefit to lower screen brightness vs the "geek way". I think its an easy choice.
Mine won't toggle at 100%. Has to be lower then that for some reason or else nothing happens.
Sent from my PG86100 using XDA Premium App

Controlling LED's with tasker

I take no credit for this, but just got it working with the evo 3d, this is mearly copied work of sw99's from the og evo forum found here
I cannot find screen brightness controls but everything else seems to work with a tiny change from the og evo to the e3d.
Also found that you can turn both the green and red led on at the same time and get orange.
You just need to download the Locale Execute Plug-in and obviously have Tasker
In tasker set up a new action and choose plugin then the execute plugin and click edit
replace X with option you want
For amber led on/off,
@! echo X > sys/devices/platform/leds-pm8058/leds/amber/brightness
0 = OFF
1 = ON
For amber led blink,
@! echo X > sys/devices/platform/leds-pm8058/leds/amber/blink
0 = Solid
1 = Blink
For green led on/off,
@! echo X > sys/devices/platform/leds-pm8058/leds/green/brightness
0 = OFF
1 = ON
For green led blink,
@! echo X > sys/devices/platform/leds-pm8058/leds/green/blink
0 = Solid
1 = Blink
For capacitive leds,
@! echo X > sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
0 = OFF
1 = ON
For Flash leds,
@! echo X > sys/devices/platform/flashlight.0/leds/flashlight/brightness
0 = OFF
125 = Low power
127 = High Power
129 = High Power Single Flash
You must "Test" the task several times and wait for the Superuser permissions to trigger, otherwise the task will not execute. You will need to do this for each task you create using this plugin.
Pretty cool stuff here man. Thanks for a info. Now I have to find a way to implement this. Maybe I can find a way for the LED to blink when I am in a 4G zone. That would be amazing in itself.
Very nice, kudos
akiradavis said:
Pretty cool stuff here man. Thanks for a info. Now I have to find a way to implement this. Maybe I can find a way for the LED to blink when I am in a 4G zone. That would be amazing in itself.
Click to expand...
Click to collapse
If you ever find that out let me know. That would make my life.
Nice
Works cool
Sent from my PG86100 using XDA Premium App
Great stuff, wish I weren't colorblind.
A.Priori said:
Great stuff, wish I weren't colorblind.
Click to expand...
Click to collapse
That blows!
Sent from my PG86100 using XDA Premium App
Thanks for the kudos. I was kind of waiting for full root before I messed with this.
I also kind of miss the extra led on the OG EVO. The charge led is being used by the system, and as such, if a system event occurs it will override your settings.
sw99 said:
Thanks for the kudos. I was kind of waiting for full root before I messed with this.
I also kind of miss the extra led on the OG EVO. The charge led is being used by the system, and as such, if a system event occurs it will override your settings.
Click to expand...
Click to collapse
welcome! and yeah sucks we only have the one led this go around
lame, moved to general. was in development with the og evo. oh well, hope i helped someone
DomSim said:
lame, moved to general. was in development with the og evo. oh well, hope i helped someone
Click to expand...
Click to collapse
This was incredibly helpful. I use my phone at night and the capacitive LEDs at the bottom were blinding me. I've now got tasker profile to automatically turn them off when the display comes on.
Has anyone had any problems running these commands with the latest version of Android?
WillJitsu said:
Has anyone had any problems running these commands with the latest version of Android?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1198622
And
http://forum.xda-developers.com/showthread.php?t=1176607
I use the script from the second link on my 2,3,4 ROM
phatmanxxl said:
http://forum.xda-developers.com/showthread.php?t=1198622
Click to expand...
Click to collapse
That's not really what I was asking. I think my problem is due to the latest version of Superuser that was included in the ROM I downloaded.
I don't know why your having issues with super user, I use root explorer to place the script in system/bin then activate it in the terminal.
I haven't tried it using tasker
phatmanxxl said:
I don't know why your having issues with super user, I use root explorer to place the script in system/bin then activate it in the terminal.
I haven't tried it using tasker
Click to expand...
Click to collapse
I was just able to fix it by downgrading to Superuser 2.3.6.3. Thanks.
great tip - thank you very much!

Soft Key Brightness

How do I go about changing this? I know its possible.
Sent from my EVO LTE using xda premium
navigate to
/sys/class/leds/button-backlight
and /sys/class/leds/button-backlight/device/leds/button-backlight
I can get them to be temporarily disabled but they come back on after I turn the screen off then on
screen filter app isn't working at all
I actually want to see if I can make them brighter. Mine seem very dim.
Do I decompile it?
Sent from my EVO LTE using xda premium
You can echo to it with an app like gscript lite, and then make a shortcut to it if you want.
echo 255 > /sys/class/leds/button-backlight/device/leds/button-backlight/brightness
That should be max brightness, 0 would be off.
I used to do this on my OG Evo to turn off the capacitive button backlights. My LED notification light seems to get stuck On whenever I tried to turn off the backlights on this phone though. I don't remember under what circumstances, been a while since I tried it, might have been when unplugging from a charger, and only rebooting would fix it.
Philosuffer said:
You can echo to it with an app like gscript lite, and then make a shortcut to it if you want.
echo 255 > /sys/class/leds/button-backlight/device/leds/button-backlight/brightness
That should be max brightness, 0 would be off.
I used to do this on my OG Evo to turn off the capacitive button backlights. My LED notification light seems to get stuck On whenever I tried to turn off the backlights on this phone though. I don't remember under what circumstances, been a while since I tried it, might have been when unplugging from a charger, and only rebooting would fix it.
Click to expand...
Click to collapse
Ill try it now. Ill let you know.
But to keep it that way without running a script, I would have to decompile?
Sent from my EVO LTE using xda premium
I'm getting fc issues with the gscript. It also said script failed when I had it working.
Sent from my EVO LTE using xda premium
eyeisdasteve said:
I'm getting fc issues with the gscript. It also said script failed when I had it working.
Sent from my EVO LTE using xda premium
Click to expand...
Click to collapse
Hmm, gscript definitely worked for me, but then I also ran into the problem that NewZJ ran into anyway - they would come back on after waking the device. I was trying to disable them though, not make them brighter.
Also, I just looked at the file again and when they're on I think the brightness is set to 255 anyway. Maybe it is already set to max brightness by default when they're on.

[Q] How to disable "Slide to Turn Off/On" with Capacitive buttons

I am using CoolSense 14a.
I noticed that when the screen is turned off, the capacitive buttons are still active.
And if I slide my finger from left to right on those buttons, the screen will turn on. If i slide it from right to left, the screen will turn off.
I never noticed this feature before, so I dont know if its from CoolSense only.
But I would like to disable this feature, so that the capacitive buttons don't respond anymore when the screen is off, how can I do it?
thanks
I dont think you can toggle that just yet. coolexe posted that hes gonna release an update that will have sweep2wake enabler/disabler
coolexe said:
Plz check ur mail...bt hci still in testing process...
btw bt working fine here.
new kernel on the way with cmdline sweep2wake enabler/disabler and cmdline sweep2wake start/end keys
Click to expand...
Click to collapse
Ok Thanks, I flashed the latest Cool Sense Kernel, there is indeed a new option to turn that feature off when installing it with Aroma.
Or you could have tried this app to toggle it ----> http://forum.xda-developers.com/showthread.php?t=1919965
It works with every cool kernel, also has options to toggle the backlight on/off in Sweep2Wake
There's an option in the kernel tuner app that let's you completely disable it or have it with the lights out too.
Jsparta26 said:
There's an option in the kernel tuner app that let's you completely disable it or have it with the lights out too.
Click to expand...
Click to collapse
That's what I said....
My bad. I guess I didn't look through your post all the way. My mistake. It happens
Thanks for your answers,
I ll take a look at Kernel Tuner, looks very useful.
If you open up terminal emulator, and type the following bash commands, it'll go away
Su
Echo 0 >/sys/android_touch/sweep2wake
Sent from my PG86100 using xda app-developers app
beneath-a-burning-turtle said:
If you open up terminal emulator, and type the following bash commands, it'll go away
Su
Echo 0 >/sys/android_touch/sweep2wake
Sent from my PG86100 using xda app-developers app
Click to expand...
Click to collapse
Nice one I will remember this for in case I have this problem and I can feel all smart :laugh:

Categories

Resources