yashsingh1/xdaforums huggingface dataset:
[Nexus S General] swamp goblin:
Ahh interesting.. but yeah there has to be some way to shut them off, such as in nstools you can set the timeout to 0 and they are almost always off, yet it doesnt affect screen. I can decompile it quick and take a look
[Nexus S General] CrackerTeg:
Link doesn't work.

The mod worked perfectly. Unfortunately, if I set the timeout in NSTools to 0, they actually stay on every time I go to wake the phone. The shortest amount of time I'm able to set the timeout is 250 ms. HTH someone.
[Nexus S General] swamp goblin:
I had to upload from my phone before, here you go:

View attachment Restore_capacitive_keys_NS.zip

I run into this same problem. We are trying to find a way to disable the lights completely ..
[Nexus S General] stumpy352:
Any luck with framework res swamp goblin?

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] christiantailor:
thanks for this guys!

Sent from my Nexus S 4G
[Nexus S General] CrackerTeg:
If we can disable the lights completely, that'd be great. For now I reverted to stock setup because two sets of nav is annoying. I actually had the original nav buttons stay on during a phone call. A little weird.
[Nexus S General] stumpy352:
This has nothing to do with the button mod. It's bln/kernel related. Which kernel are you using. I use GLadOS & the only time i see those lights is when i wake the phone. They occasionally will flash for about 1ms & then they're off until i wake the phone again. It's just that split instant while the kernel settings kick in.

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] bearsblack:
would be soooo nice to have 0 back lights. I can confirm hat setting bld to 0 does not work the way it should. When waking the phone its really laggy and the buttons are off then turn on and stay lit...

Someone pleaseeee come up with a nice complete hard button disablement :D

.kang
[Nexus S General] stu5797:
Same as bearsblack. Bln to 0 is unusable. Looking forward to a fix!
[Nexus S General] CrackerTeg:
It was a setting in the phone app that caused that. Total noob moment on my part. I have the same thing you have but with the kernel in my sig.
[Nexus S General] stumpy352:
Here is a boot script for the backlight dimmer. You still need a bld supported kernel but this will apply the settings at init. instead of at boot completed. Just flash it in recovery.

http://db.tt/20Ga5wAd
[Nexus S General] Nexism:
Giving it a try now. Thank you.

Works perfect. Thanks again.

Sent from my Nexus S 4G using Xparent Blue Tapatalk
[Nexus S General] behmer:
Sadly it still has the problem of the buttons being unable to stay off on the lock screen :/
[Nexus S General] stu5797:
is the problem matrixs kernel? He seems to be super responsive so I am sure he wouls make needed changes
[Nexus S General] CrackerTeg:
I flashed that same zip. Nothing changed for me.
[Nexus S General] stumpy352:
It doesn't do anything different than NSTools, except the lights go out during your boot animation. I've tried it with GLADOS, matr1x 18 & the latest air kernel. All worked perfectly. Although air seemed to be the most responsive for me. Note that the script will override NSTools bld settings on boot. So you'll get a notification. I was only using NSTools for bld, so after using this script, I have uninstalled NSTools.

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] CrackerTeg:
So if same as NSTools, I can pretty much disable that feature in the app but I'll still get the occasional flash each time I hit the soft keys?
[Nexus S General] bearsblack:
Thanks a lot! Only having a problem with it overriding nstools. I would unistal it but I use it for liveOC and voltage.. any ideas?

.kang
[Nexus S General] stumpy352:
It should only override bld setting. Clear the notification, open NSTools & close it again. Everything should be working fine.

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] stumpy352:
You shouldn't get any flash when you touch the soft keys. The button mod should have caused them to produce no input, no vibration nothing. The only flash you should get, if any, is only on wake.

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] CrackerTeg:
I just realized something. I stopped using the on-screen buttons and tried killing the lights with your script and it didn't work. That might be the issue. Am I thinking the right way here?
[Nexus S General] stumpy352:
You're using AOKP? So you turned the nav bar off.... are you using the capacitive buttons like stock? Are you sure your kernel is still installed? Flashing roms will revert all of this mod back to the rom's set up.

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] CrackerTeg:
With the rom that's in my sig, there's flashable mods for those buttons. Either way, I'm not using the on screen buttons. I still have the kernel installed and running and all I would do is restore if something didn't work. In short, my phone is running the setup in my sig with the stock capacitive buttons and not the nav bar.
[Nexus S General] stumpy352:
Ok, now I'm on the same page. I can't see any reason why the boot script wouldn't work. It does the same thing as NSTools, so it should work. It's got nothing to do with button mods or whether your capacitive buttons are functioning or not. It only sets bld to enabled and sets the delay to 0. So I don't know why you're having this issue.

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] bearsblack:
Yup. Same deal. Thanks anyways. We need a legitimate hard button disablement mod. Something that will totally delete lights and usage of the buttons. Along with tablet status bar :D

.kang
[Nexus S General] Nexism:
Mod is working for me...just get a brief flash on wake up or if I press 'em. I like being able to appreciate the AIR boot screen with no lights. Thanks again for the zip.

Sent from my Nexus S 4G using Xparent Blue Tapatalk
[Nexus S General] CrackerTeg:
^ This is what we need.
[Nexus S General] stumpy352:
Well, when someone works it out, let me know. But be careful playing with light files. These are hardware files, and they control screen lights also, so deleting or editing the wrong file could give you an unusable phone.

Sent on neXus from somewhere. Could be anywhere.
[Nexus S General] CrackerTeg:
I don't have the testicular fortitude to try and mess with hardware files. My wallet won't allow me to break my phone. If someone comes up with a surefire fix, then I'll give it a shot.
[Nexus S General] nuuits:
The newest version of AOKP has the option to disable key backlights on your phone, doesn't it? It has that option on my phone running AOKP.
[Nexus S General] stumpy352:
Which version of aokp? And which phone are you using it on. I know with some phones it's easy to disable the lights but for nexus s it seems to be tied together with the screen lights.
[Nexus S General] stumpy352:
Ok. So I tried AOKP build 31. It has the cm9 custom backlight settings, but still doesn't do anything when adjusting values for buttons. Anyone get this to work for nexus s?
[Nexus S General] xuser:
Link to your file is broken. :(

Ive managed to almost completely disable capacitive buttons with the tips on this thread. BUT, I'm still looking for a fix to disable them from lighting up on boot, and screen unlock. Any ideas? Thanks!
[Nexus S General] CrackerTeg:
Like was said in previous posts, it's possibly something in the hardware that needs to be altered. I said it before and I'll say it again, I don't have the stones to do that kind of experimentation. If someone figures it out, I'm game.
[Nexus S General] stumpy352:
Sorry, dropbox changed the link.

http://db.tt/OKLS7yQq

Note that different kernels seem to handle bld differently to others. Using trinity, the lights would stay on until I touched the buttons. Currently using matr1x v19.5. Seems 'pretty' responsive, but I get download issues with it. None are perfect.

....memoirs of a flash addict.
[Nexus S General] xuser:
Thanks. Script works well. I'm using the Air Kernel and everything works great. you should give it it a shot.

http://xdaforums.com/showthread.php?t=1469842
[Nexus S General] stumpy352:
Tried air kernel, but couldn't send mms with it. Glados & trinity were the same. Got mms with matr1x, but like I said, failed download issues. Best kernel I've found is kalim's cm9 kernel, but doesn't support bld. Like I said, none are perfect, unfortunately.

....memoirs of a flash addict.
[Nexus S General] bobspace:
NS4G Bugless 06/04/12 Mart1x 19.0

I would really like to disable the capacitive search button, especially the long press function.

When I delete the line for search, save it and reboot, it doesn't stick and the capacitive search button still works.

Any tips? I like my ROM and Kernel, don't want to change those :)

I am not bothered about them lighting up, that doesn't bother me. I use a touchscreen disable app so my daughter can watch videos, it disables all the capacitive buttons but it doesn't prevent the search long press.
[Nexus S General] kriskovski:
Nope, remember whet it debuted with GB. At first if you not touch the keys the button bl turns off, but this dont affect the screen.

Then google changed the bl and from there on NS is like now.

So there is a chance!
[Nexus S General] bobspace:
Managed to turn it off. Had to wipe user data to get it to stick. Gave me an opportunity to clean up my phone too.
[Nexus S General] Imppy:
this doesn't seem to work fo cyberG rom? please confirm!
[Nexus S General] stumpy352:
Works on any rom. This mod isn't rom specific. Did you do it manually or flash the zip?

....memoirs of a flash addict.
[Nexus S General] Imppy:
i did it both ways doesn't work...rebooted

should I try it again? and just flash the zip at the start?
[Nexus S General] stumpy352:
Did you edit cypresstouchkey.kl also?

....memoirs of a flash addict.
[Nexus S General] Imppy:
I did both...both .bk files are there
[Nexus S General] stumpy352:
Yeah. Go into recovery and flash the zip again.

....memoirs of a flash addict.
[Nexus S General] Imppy:
ok I reflash the rom, and going to do it immediately the zip file...let you know in a second

---------- Post added at 06:27 AM ---------- Previous post was at 06:20 AM ----------

sweet it works now
[Nexus S General] stumpy352:
Awesome. If you're using a kernel with bld, try the script in this thread also. Turns the backlights off. Enjoy.

....memoirs of a flash addict.
[Nexus S General] Imppy:
I tried matrix with the script and it is still the same thing! thanks for your help man

which kernal is the best to take out light?
[Nexus S General] stumpy352:
I'm using matr1x v20. because it's a good all round kernel, but I found that AIR kernel was the most responsive with bld.

....memoirs of a flash addict.
[Nexus S General] Imppy:
v20 made my light go wacky and unstable with the script with 0ms...any others you recommend?
[Nexus S General] stumpy352:
Try them all. See which one works best for you. But remember that there is more to selecting a kernel than bld. Its gotta run your whole phone too.

....memoirs of a flash addict.
[Nexus S General] Imppy:
thanks, going to try matrix again with a fresh install on AOSP 28 this time lol

---------- Post added at 07:33 AM ---------- Previous post was at 07:28 AM ----------

how do I uninstall script?
[Nexus S General] stumpy352:
If you're doing a fresh install, the script will be gone when you flash the rom. If you want to delete it at any other time, go to system/etc/init.d and delete the bld script. And reboot.

....memoirs of a flash addict.
[Nexus S General] Imppy:
thank you man...this mod + the on-screen keys manually fixes the auto back and search key fire in 1920a
[Nexus S General] stumpy352:
Then hit the thanks button my friend. ;)

....memoirs of a flash addict.
[Nexus S General] Imppy:
Done
[Nexus S General] denimjunkie82:
Is anyone using this tweak with a JB rom? I'm using the following:

-OTA JB ROM: http://xdaforums.com/showthread.php?t=1784497

- Any JB kernels I can find

- BLD_Script

The cap buttons still light up when the phone wakes up. I have to touch it to turn it off. It also flashes on for a split second when touch them, even when the BLD is set to 0ms.

Is there any way to disable the cap buttons completely on JB? (I don't know if it was possible on ICS either. From reading this thread, it sounded like it possible, but dependant on the kernel)
[Nexus S General] alen1901:
You cant set bld to 0ms. Bld is to dim keys if you are not touching them for some time, its not ment for disabling key lights. Put bld from 1000 to 3000ms. I would suggest 3000, as newer phones uses bld with about 4000ms (4seconds).

Sent from SpeedMachine i9023
[Nexus S General] Imppy:
I use 500 and its fine!
[Nexus S General] stumpy352:
Actually you can set to 0ms. And if your kernel is responsive they won't light up at all. I would get a very brief flash when I woke from sleep and then nothing. The bld script in the op sets it to zero. I haven't had a chance to pull apart a jb rom for crespo as I'm on gnex now. The files may be different from ics. Idk.

.....memoirs of a flash addict.
[Nexus S General] alen1901:
Well i tried with few kernels on ic, set on 0ms, but its annoying when keys lights up for a milisecond haha. So i put it 1000-3500. And its nice. But maybe in jb its better. Didnt tried yet.

Sent from SpeedMachine i9023
[Nexus S General] NexusS4Life:
Is it possible to do this on jelly bean? Sorry im a complete noob and can't even figure out how to root my nexus s. All help is greatly appreciated.
[Nexus S General] stumpy352:
Moot point. If you haven't got root, you can't do it. Did you get a update to jelly bean on your nexus s?

.....memoirs of a flash addict.
[Nexus S General] NexusS4Life:
Yes but I'm on stock. I've never ever rooted my phone and I can't seem to figure it out. Could you possibly guide me through it? I really want these on screen buttons
[Nexus S General] jayjay3333:
http://xdaforums.com/showthread.php?t=1007782
[Nexus S General] :
Question, can someone point me to a no frills kernel that only has the mods needed to turn off the capcitive buttons as well as use them for notifications?

I'm not really all the interested in the rest of the kernel mods and just want something super stable to go along with my stock rooted rom.
[Nexus S General] stumpy352:
Are you wanting to disable the button functions or just the backlight? This mod disables the function of the buttons so they don't work any more. It doesn't require a custom kernel. If you just want to turn the lights off, go to the dev section and look for a kernel with bld & bln. Download nstools feom play store and play with the settings.

.....memoirs of a flash addict.
[Nexus S General] :
Both functions, I'm going to switch to LMT to for button usage. I'm looking endlessly through kernels, but they're all like super kernels, and I'm not to interested in keeping up with them as stable as they may claim to be.

What does bld and bln mean, btw?
[Nexus S General] stumpy352:
Backlight dimmer & backlight notification. You'll probably have to pick a full house kernel to get these. Maybe Steve Garens kernel. Closest to stock that I can think if that has these features.

.....memoirs of a flash addict.
[Nexus S General] :
Cool, thanks for the info.
[Nexus S General] Agent of Orange:
i just need to disable the search button.. is it the same file for jb

For those who want to do it manually.

1; Using Root Explorer (from market) go to system/usr/keylayout.

2; Mount system as r/w.

3; Long press on the file called mtx224_ts_input.kl.

4; Select 'open in text editor'. Scroll down and you will see these 4 lines:

key 158 BACK WAKE

key 139 MENU WAKE

key 217 SEARCH WAKE

key 102 HOME WAKE

5; Delete these 4 lines. Or alternately, just delete the lines for the buttons you want disabled.)

6; Press menu, save & exit. (Root Explorer will automatically create a backup of this file. It will be called mtx224_ts_input.kl.bk)

7; Now, make the same edits to the 4 lines in the file called cypress-touchkey.kl and save & exit.

8; Reboot.
[Nexus S General] stumpy352:
To be honest, I don't have a nexus s anymore since it got stolen. I'm on gnex now. So i don't even know if the files are named the same. But I guess it should still work. Have you opened the file and had a look? Or, make a nandroid and try it and see. Be sure to post your results so others will know ok.

.....memoirs of a flash addict.
[Nexus S General] xuser:
Yes its basically the same for JB. I also had to delete the keys located in cypress-touchkey.kl to make it work properly. I'm looking into the keys not lighting up on boot as well.

Edit: Your script worked fine on boot. I manually installed it fixing permissions and owner as per other scripts in same folder. /system/etc/init.d. Set perm. to rwxr-xr-x and Owner/Group to 0 - root.
[Nexus S General] stumpy352:
Glad to here it. Not so much different between ics & jb after all. At least on a hardware control level anyway. Enjoy.

.....memoirs of a flash addict.
[Nexus S General] Agent of Orange:
its called " key 217 ASSIST VIRTUAL" in stock JB. And i tried just deleting it in mtx224_ts_input.kl. but still had function-ability and the auto fire issue so i then deleted it in cypress-touchkey.kl and now the search button does not work. i have yet to have auto fire yet but thought the led blinked on it once when i first rebooted.
[Nexus S General] stumpy352:
Thanks for the info. Would you be able to upload both files for me so I can add to thw op & create a restore zip for jb please.

So you've just disabled the search button? Other buttons are working fine? And do you have the backlights working for the other buttons, but not the search key? Did you use my bld script?

.....memoirs of a flash addict.
[Nexus S General] stumpy352:
Have you tried using nstools to set bld to 0? Do the buttons still work? Which rom?

.....memoirs of a flash addict.
[Nexus S General] stumpy352:
Doea your rom have init.d support? Go to system/etc/ & see if there's an init.d folder. If not.....

.....memoirs of a flash addict.
[Nexus S General] stumpy352:
I have no answer for that. If those lines are deleted, they should simply not work. Try flashing again.

.....memoirs of a flash addict.
[Nexus S General] japmeet:
hi, i've set delay in nstools to 0 but the buttons still light up when i'm touching them or waking the phone from sleep. I have tried it with the following kernels:

air

matr1x

marmite

stock kernel of aokp jb build4

I have also tried flashing bld_script.zip but i'm getting the same thing, the lights light up for a split second and then go off. Is there any registry entry for bld ?
[Nexus S General] stumpy352:
What do you mean by registry entry?

.....memoirs of a flash addict.
[Nexus S General] japmeet:
Like editing the delay manually in the registry (or in the file) For example, I read on the forums that one guy was able to turn off the 'blink effect' while tapping the capacitive buttons. He had set the delay to 55 (?)(He's running CM10) In my nstools the delay options are 0, 500, 1000 and so on.
[Nexus S General] stumpy352:
Ok, yeah. Go to sys/class/misc/backlightdimmer & open the file called 'delay' in a text editor. Change the number to whatever you like. In milliseconds. Save & exit. Reboot. Let me know how it goes.

.....memoirs of a flash addict.
[Nexus S General] o0shjn0o:
i can change the number in this but i can't save it :( what should i do now ? the button still light up when i'm waking the phone
[Nexus S General] stumpy352:
If you're using root explorer, don't forget to mount as r/w button at the top.

.....memoirs of a flash addict.
[Nexus S General] japmeet:
I'm using AntTek Explorer, it has a small 'save' button on the top right corner, give it a go
[Nexus S General] stumpy352:
My point is, no matter which file browser you use, the system must be mounted as read/write or you won't be able to save it.

.....memoirs of a flash addict.
[Nexus S General] o0shjn0o:
well, i did mount as r/w . After changing a value in the file 'delay' i hit the button save and exit, no error, i opened it as text and the value still was 0.

It seems the system changed the value to 0 automatically
[Nexus S General] stumpy352:
Try going to system/etc/init.d & deleting the bld script. Also, try uninstalling nstools & try again. It could be a conflict between the script, nstools & your manual settings. Alternately, you could extract the script, change the echo value for delay, zip it with root explorer & flash it. Note that zipping with any other file explorer won't flash.

.....memoirs of a flash addict.
[Nexus S General] o0shjn0o:
i tried to edit the file 'delay' without install bld script and nstools, and it worked perfectly but when i reboot system, it turns to normal.

flashing bldscript only doesn't work so i have to install nstools, but can't edit file ' 99nstool' in folder init.d
[Nexus S General] japmeet:
Hey, I don't have a bld file in the init.d folder , neither I have the 99nstool file in there, something I'm missing?
[Nexus S General] o0shjn0o:
I suppose that you didn't flash bld_script so you don't have it in init.d folder, 99nstool you must check at use ... with init folder, sorry i don't remember but it is at the last tab in NStool, btw i figured out my problem.

Install nstool to have file '99nstool', you can find it in '/etc/init.d' , use root explorer to copy this file to somewhere like sdcard and use Script Manager (free on market) to delete the code of checking version and change the echo value for delay and run it with root and boot.

i couldn't understand why could it run without error while the code in '99nstool' is the same with one in 'bld_script'

sorry for my bad English
[Nexus S General] japmeet:
Okay, I flashed BLD_Script and enabled 'use init.d script' in NSTools, both have the delay value at 0 but the buttons still flash when I tap them :\ I am really frustrated now! :(
[Nexus S General] o0shjn0o:
what kernel do you use ? try flashing others

and you should check the files call 'delay' and 'enable' in /sys/class/misc/backlightdimmer
[Nexus S General] japmeet:
Air Kernel r2 stable build, rom is CNA 3.6.6.

I've tried Matr1x kernel (22.5,23.0, cfs,bfs), marmite, air r224 weekly, tns144 (trinity), vta2-kernel. It's only worse on the other kernels (light stays on when I unlock the device until I touch the keys, and then they blink just like they do in air (when I touch them)

I've tried editing delay & enable files under /sys/class/misc/backlightdimmer as well, tried values from 0-25 in delay (will keep on testing more values) but they don't turn the light off completely.
[Nexus S General] stumpy352:
All these problems are kernel related. It all depends on how efficiently the kernel processes the scripts. Also, all phones are different too. I had no issues & no backlights at all on my phone, just using the bld script, while others had major issues. I've looked for a hard code fix for this, but it has eluded me. The other thing I might suggest is rename the bld script so that it is alphabetically first on the list in init.d folder, since the system will process the scripts in alphabetical order. I also suggest not using nstools init.d option because it will conflict with the bld script & any settings you edit manually. If the system is getting mixed signals or 3 different instructions for the same setting you can expect lagginess or other problems. And keep in mind that I wrote this guide for ics roms, so if you're using jb, there may be other factors that I have no way of testing, because i don't have this device any more.

.....memoirs of a flash addict.
[Nexus S General] 309041291a:
Has anyone tried this on JB AOKP build 5?

Nexus S (GSM i9020a)

AOKP (Build 5 - 4.1.2)

Matrix Kernel (23.5 - CFS)

Ondemmand (Screen On) (800/100)

Ondemmand (Screen Off) (400/100)

Deep Idle (N/A - Deadline)

BLX (N/A - Inverted Apps)

Black Exodus (Stock Voltage)
[Nexus S General] japmeet:
Hm, maybe I'll give it a go on one of the ICS rom/kernel combo. What do you suggest I should go for?
[Nexus S General] stumpy352:
I really have no idea. I haven't had a crespo for about 4 months now. Never got to try jb on it & all the ics roms are probably different now too. Sorry, can't help with that one.

.....memoirs of a flash addict.