[Q] How to disable "Slide to Turn Off/On" with Capacitive buttons - HTC EVO 3D

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:

Related

[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

[Solved] Is there a script or a command to permanently turn off capacitive lights?

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!

[Q] Capactive button lights dim but never turn off

Hi all,
Im rooted and running viper rom, with netarchy.
the bottom lights (home, menu, back, search) never turn off, even when i press the power button and put the phone to sleep. The lights dim but never turn off. I have tried led hack, and screen filter with no luck. I tried going back to my nandroid backup of stock and it still the same. Is this a hardware problem? obviously a battery pull leads to the lights going out but as soon as i reboot its the same problem. Anyone have any ideas?
thanks again
heatbball said:
Hi all,
Im rooted and running viper rom, with netarchy.
the bottom lights (home, menu, back, search) never turn off, even when i press the power button and put the phone to sleep. The lights dim but never turn off. I have tried led hack, and screen filter with no luck. I tried going back to my nandroid backup of stock and it still the same. Is this a hardware problem? obviously a battery pull leads to the lights going out but as soon as i reboot its the same problem. Anyone have any ideas?
thanks again
Click to expand...
Click to collapse
haven't heard of anybody having this issue and i'm also on netarchy's kernel with stock rom and haven't experienced it.
i think you're on the right path, load up the stock rom and stock kernel, if you still experience the issue, it would appear to be more hardware related and i'd take it back to sprint.
if you don't experience the issue then you know it was probably triggered somewhere along the lines of customization. i'd customize again step by step checking along the way.
if you're technically inclined and feel adventurous, i'm pretty sure the backlight leds can be controlled thru the sysfs space and adb shell.
/sys/class/leds/button-backlight
all the control files are in there and you can experiment echo'n values to see if it turns them on/off and/or controls the brightness ...
best of luck!
Look in the market for an app called covedesign. It will allow you to turn off the bottom lights. Hope this helps.
Locked & Loaded
"" Shooter on Deck""
Everytime i try to edit the button backligjt file the file is empty with nothing in it
R.I.P. HD2 hello EVO 3D!!
laie1472 said:
Look in the market for an app called covedesign. It will allow you to turn off the bottom lights. Hope this helps.
Locked & Loaded
"" Shooter on Deck""
Click to expand...
Click to collapse
Thank you! Been looking for something to turn off the button lights off!
joeykrim said:
if you're technically inclined and feel adventurous, i'm pretty sure the backlight leds can be controlled thru the sysfs space and adb shell.
/sys/class/leds/button-backlight
all the control files are in there and you can experiment echo'n values to see if it turns them on/off and/or controls the brightness ...
!
Click to expand...
Click to collapse
jyazzie110 said:
Everytime i try to edit the button backligjt file the file is empty with nothing in it
R.I.P. HD2 hello EVO 3D!!
Click to expand...
Click to collapse
you don't "edit" the files in a text editor ... you echo values to them.
example: echo 50 > brightness
dumasauce said:
Thank you! Been looking for something to turn off the button lights off!
Click to expand...
Click to collapse
No prob hopefully it helps you out
Locked & Loaded
"" Shooter on Deck""
anyway you can provide me some step by step to turn them off via that method? (i am a relative noob)
thanks again

[Q] Disable Hardware lights/leds for AOSP Roms???

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

[MOD] [KERNEL MODULE] [July 26] Sweep2sleep

Sweep2sleep
This is a kernel module for sweep2sleep. The new motion gestures are nice, but there is no way to put the phone to sleep with gestures. To make it worse, the power button placement is awkward. It bothered me so much, I've built this module. It is based on @show-p1984's sweep2wake2.
Swipe your finger from right to left over the navbar and your phone will go to sleep.
I will update this soon, with some improvements and also to work with GPE ROMs.
Download:
Sweep2sleep module for Sense 4.4.4 stock kernel (thanks @lyapota)
http://forum.xda-developers.com/attachment.php?attachmentid=2970798&d=1413289508
Sweep2sleep module for Sense 4.4.3 stock kernel (2.22 base)
Sweep2sleep module
Older version:
s2w_mod
Installation:
Flash zip in recovery
Un-installation:
While in recovery, do:
Code:
adb shell rm /system/lib/modules/s2w_mod.ko /system/etc/init.d/40s2w
Requirements:
In order to load automatically at boot, you need init.d support and busybox. If you have a custom ROM it should work.
For stock users, you'll need to insert the module manually:
Code:
su
insmod /system/lib/modules/s2w_mod.ko
Source:
Module was compiled against Nexus 5 kernel source with m8_defconfig. Some symbol CRC checks had to be hexedited in the compiled module.
s2w_mod.c
Thanks for mod
Out of interest, has it changed since the previous version? Will keyboard swipe still turn screen off?
Nice mod! Downloading now. Will test shortly
Basil3 said:
Out of interest, has it changed since the previous version? Will keyboard swipe still turn screen off?
Click to expand...
Click to collapse
I changed it, now it's only active directly over the navbar. Before it was almost the whole bottom third of the screen.
flar2 said:
I changed it, now it's only active directly over the navbar. Before it was almost the whole bottom third of the screen.
Click to expand...
Click to collapse
Great. Thanks for this, awesome mod!
Nice work flar, thank you.
Did you have any luck with RW protection?
Hell yes, glad to see you here flar :good:
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Great work as always mate!
Looking forward to getting this loaded up tomorrow when I get my m8!
Sent from my HTC One using XDA Premium 4 mobile app
My issue with swipe to sleep on the m7 was that the home button minimised the app you had open. And I didn't always want to do that. This has basically increased my love for this handset 10x over. No need to touch that damn stupidly placed power button... AT ALL.
Thanks!!
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Ah man that's awesome it works still on the nav bar! Was just wondering if there would be a good option for shuttin off the screen. Get mine tomorrow! This should work on sprint m8 right? OneXL kernel still working great btw haha
~S-Off LTEvo; Always Solid Viper4G Latest;
cpu0/1: 1.5ghz ¦ 384mhz
Just want to say the Google play edition kernel has released on HTCDev a few moments ago
Let the development rocks!
I know on the N5 this slide/tap to wake features drained the battery? Does this implementation drain the battery as well. But the way, Love your work.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Curious about that too, since NiN was saying he didn't like it in n5 because of that, but said n5 handles it different in some way.
~m8whl modded stock
2.265 Max ¦ 300 Min
ondemand
row
This doesn't drain battery, the gesture is used when the screen is on.
The N5 has bad drain from sweep2wake, not sweep2sleep. The lcd panel has to stay powered on to recognize touches when the phone is sleeping.
Thanks, makes sense.
Sent from my Nexus 5 using XDA Premium 4 mobile app
flar2 said:
This doesn't drain battery, the gesture is used when the screen is on.
The N5 has bad drain from sweep2wake, not sweep2sleep. The lcd panel has to stay powered on to recognize touches when the phone is sleeping.
Click to expand...
Click to collapse
So how does HTC's implementation of dt2w work, screen off, moves, like at all, in pocket even, the screen is on to respond to tap or gestures?
MassStash said:
So how does HTC's implementation of dt2w work, screen off, moves, like at all, in pocket even, the screen is on to respond to tap or gestures?
Click to expand...
Click to collapse
That seems to be it. You have to move the phone before the gestures work.
I actually don't like that, because I can't doubletap when it's sitting on my desk. That's how I'm used to checking my phone.
flar2 said:
That seems to be it. You have to move the phone before the gestures work.
I actually don't like that, because I can't doubletap when it's sitting on my desk. That's how I'm used to checking my phone.
Click to expand...
Click to collapse
Yea, I like the idea.... But not sure if it works out. Cuz then it's on anyway when moving around in your pocket wasting battery life yea? and could be turned on by your leg if you have some thinner workout shorts on, or in a breast pocket of your favorite flannel tee haha. I've heard that complaint already, I just grab from sides, raise a lil/giggle, then dt2w
Should this work on the Gpe version? Just tried it but nothing happened.
Sent from my HTC One_M8 using Tapatalk

Categories

Resources