[APP][Nov-13-2013] Capacitive Buttons v1.0.13

*elmo*

Senior Member
Aug 6, 2012
1,514
481
113
Sesame Street
www.mynavi-expert.pl
Great. I can confirm too that this works on Maximus 11. I have been looking for this app since the ICS times. I love how the buttons don't light up because you know where they are anyway and at least in my case when looking at a completely black image, you can see some light on the lower part of the screen from the buttons. Now that is disabled and the screen is gorgeous.
now try to turn it on....
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Denver, this version keeps the lights off when the screen is locked/unlocked like intended.
But I can't keep the lights on. After screen on they are off again.

Did you add chmod commands only to the the lights off script?
Okay, so now the app works as expected when you set the capacitive button backlight brightness to "off". But there is now a new issue where if you set the capacitive button backlight brightness to "on" in the app that the buttons do not turn back on when the screen powers on. Very interesting, and thanks for testing it out.

The workaround that I had implemented in the test version 1 is to chmod 666 the file, write 0 or 255 to the file, then chmod 444 the file. It sounds like I only need to chmod 444 the file if setting the capacitive button brightness to "off". Setting its permissions to 444 when the backlight button setting is "on" actually prevents the backlight from turning back on when the screen turns back on.

I've attached v2 of the test app to this post. In this version, it will only chmod 444 the file when setting the capacitive button backlight brightness to "off"; when setting it to "on" it leaves the permissions as 666. Please test it out and let me know if the setting persists for both "on" and "off" when the screen turns on and off. Thanks!
 

Attachments

  • Like
Reactions: TToivanen

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Doesn't work :thumbdown: not possible to turn on...
Performs like clockwork. You're the man! :thumbup:
These seem to be conflicting reports :)

Just so I make sure that I am understanding the behaviour... can you answer these 4 questions:

  1. Do you have v1.0.6-ScreenOnFixTest2 installed (check the "About" screen to confirm)
  2. Which ROM are you running?
  3. When you select "off" for the capacitive button brightness in the app, does the backlight remain off, even after turning the screen off then back on? If "no" please explain what happens with the capacitive button backlight when you turn the screen back on.
  4. When you select "on" for the capacitive button brightness in the app, does the backlight turn back on after turning the screen off then back on? If "no" please explain what happens with the capacitive button backlight when you turn the screen back on.
Sorry for being kind of a pain with these questions. I don't have an endeavoru (quad-core) HTC One X to test it on, as I am in Canada and only have an evita (dual-core) HTC One X. But in order to understand what you are seeing it helps a lot to get very specific information. Thanks for testing out the app for me!
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
1. Yes
2. Latest CM10 nightly
3. Yes, remains off
4. Yes, turns back on

It's all good.
Great. Thanks for this info! I'll let this test version #2 soak for another day or so to see if any more issues come up, and to wait for elmo's response to the same set of questions. If no more issues, v1.0.7 will be coming out with this fix :)
 

omar302

Senior Member
Feb 15, 2006
1,481
553
143
Doha
denversc;

Great work. Is there a way to make the button lights go off after some time?
For example, whenever you touch the screen or buttons, lights come on, then after 5 seconds buttons lights go off. Touching again would turn on the lights again for 5 seconds.
 

TToivanen

Senior Member
May 16, 2012
2,923
1,850
0
denversc;

Great work. Is there a way to make the button lights go off after some time?
For example, whenever you touch the screen or buttons, lights come on, then after 5 seconds buttons lights go off. Touching again would turn on the lights again for 5 seconds.
On CM10 it does exactly like that.

Sent from my HTC One X
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Great work. Is there a way to make the button lights go off after some time?
For example, whenever you touch the screen or buttons, lights come on, then after 5 seconds buttons lights go off. Touching again would turn on the lights again for 5 seconds.
Interesting idea, but I'm not sure. According to TToivanen,

On CM10 it does exactly like that.
So if I or someone else can figure out how CM10 does it perhaps it would be possible to integrate that same functionality into the app. My instinct tells me that it would require some cooperation from the OS so may not be possible from purely a userspace application.

I've created a defect report for this feature request so that it doesn't get forgotten: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=4. I'm afraid I'm not sure when I'll have a chance to investigate though.
 
  • Like
Reactions: omar302

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
denversc 1. Yes
2. Latest ARHD 17.1

some explanation:
3. working with delay about 3/4 seconds
4. working with delay about 3/4 seconds
Thanks for this information. Just so I understand correctly, when you say "working with delay about 3/4 seconds" do you mean that if you select "off" in the application then when you turn the screen off then back on the capacitive buttons backlight turns on for about 3/4 second then turns off? And if you select "on" in the application then when you turn the screen off then back on the capacitive buttons backlight turns on for about 3/4 second then turns off? Finally, is this 3/4 second delay "acceptable" to you or is it annoying? Thanks!
 

Vcek

Senior Member
Aug 27, 2011
1,167
338
0
Alexandria
I made a personal app long time ago with Tasker, which sets the brightness to 3%(backlight is too bright in bed) unfortunately all leds are affected.
it echoes % into the "lut_coefficient" file instead of "brightness" file, can you look into this and integrate it ? im a noob in making apps :D

note: im on a test hboot and have dead autobrightness.
 

*elmo*

Senior Member
Aug 6, 2012
1,514
481
113
Sesame Street
www.mynavi-expert.pl
Thanks for this information. Just so I understand correctly, when you say "working with delay about 3/4 seconds" do you mean that if you select "off" in the application then when you turn the screen off then back on the capacitive buttons backlight turns on for about 3/4 second then turns off? And if you select "on" in the application then when you turn the screen off then back on the capacitive buttons backlight turns on for about 3/4 second then turns off? Finally, is this 3/4 second delay "acceptable" to you or is it annoying? Thanks!
For me is OK :)
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
I made a personal app long time ago with Tasker, which sets the brightness to 3%(backlight is too bright in bed) unfortunately all leds are affected.
it echoes % into the "lut_coefficient" file instead of "brightness" file, can you look into this and integrate it ? im a noob in making apps :D
Do you happen to have the source code for this app? I don't have an endeavoru HTC One X so unfortunately I cannot run the app and test it out. Also, does this app affect the backlight brightness for the screen and the capacitive buttons or just the capacitive buttons? Finally, when you say "unfortunately all leds are affected" why do you say "unforunately"? If I understand correctly the behaviour you describe is desired behaviour, and is actually quite fortunate! Thanks.
 

TToivanen

Senior Member
May 16, 2012
2,923
1,850
0
I made a personal app long time ago with Tasker, which sets the brightness to 3%
Sorry but I can't get it to work.
Asks for root permissions but does not affect the lights, because I don't have an file called lut_coefficient. Perhaps only sense roms come with it?

Denversc: I'll take a look at cm10 source to see if I can find anything regarding the lights timeout.

Edit: The code controlling led timeout may be in /system/framework/services.jar/LightsService. So you were right: not possible using an app.
 
Last edited:

Tabtoub

Senior Member
Aug 3, 2011
1,000
520
0
Tunis
hey denversc, so no way to only dim the cap buttons on One X like we used to do in sensation? it's a hardware restriction or what? coz I thought it's a problem with my phone but it seems it's impossible to dim them with all one x handsets!
 

TToivanen

Senior Member
May 16, 2012
2,923
1,850
0
hey denversc, so no way to only dim the cap buttons on One X like we used to do in sensation? it's a hardware restriction or what? coz I thought it's a problem with my phone but it seems it's impossible to dim them with all one x handsets!
Dim option only works on evita.
Dim-button has been disabled on endeavor because dim and full brightness were the same brightness level.

Sent from my HTC One X