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

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
I'm also experiencing the issue of the settings not sticking on boot. Was this ever resolved?
Yes, it was resolved. Which version of the application are you running? And which of the 3 brightness settings are you finding do not stick? And by "stick" do you mean across reboots?
 

cell30

Senior Member
Jan 28, 2012
139
87
58
Yes, it was resolved. Which version of the application are you running? And which of the 3 brightness settings are you finding do not stick? And by "stick" do you mean across reboots?
I'm using version 1.07 and the "off" setting is not sticking across reboots. I narrowed the problem down to an app called GV Integration. Disabling the notification icon (service) in GV Integration's settings resolves the reboot sticking issue, but it also stops GV Integration from functioning consistently.
 

Rampage

Senior Member
Jul 5, 2012
1,137
632
0
Bremen
Thanks very much for this app.
It works on the HTC one s.
Only the dim option does not work (it is hidden).
And it says: detected device: HTC one x+

Gesendet von meinem HTC One S Special Edition mit Tapatalk 2
 
Last edited:

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
I'm using version 1.07 and the "off" setting is not sticking across reboots. I narrowed the problem down to an app called GV Integration. Disabling the notification icon (service) in GV Integration's settings resolves the reboot sticking issue, but it also stops GV Integration from functioning consistently.
Ahh. "GV Integration" is probably "Google Voice Integration". Are you using Google Voice on your phone? If so, it might be that Google Voice and the app are both trying to configure the capacitive buttons backlight brightness.

If you don't mind, could you try installing the v1.0.7-DimTest1 test version of the app from this post and see if it fixes the off-not-sticking-across-reboot issue you are experiencing: http://forum.xda-developers.com/showthread.php?p=35531968#post35531968. That test version of the app includes some internal code refactoring which will be included in the next official version. It runs "chmod 444" (read-only) on the file to which the brightness is written, which should prevent GV from turning the backlight back on.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Thanks very much for this app.
It works on the HTC one s.
Only the dim option does not work (it is hidden).
And it says: detected device: HTC one x+
First of all, you're welcome. This app has been a fun hobby development project.

The app does not "officially" support the HTC One S but since The One S is "similar" to the HTC One X+ it assumes that the commands to control the backlight are the same as the One X+. Back when v1.0.7 was written there was no known way to control the brightness of the capacitive buttons on the One X+ (other than on and off) and therefore the "dim" option was removed from the UI.

Since v1.0.7 was written, I found a way to control the brightness setting on the One X+, and I created a test version of the app to see if it actually works. If you want, could you try installing the v1.0.7-DimTest1 test version of the app from this post and see if the dim setting works for you on your One S: http://forum.xda-developers.com/showthread.php?p=35531968#post35531968. That test version of the app includes some internal code refactoring which will be included in the next official version and also an attempt to support a "dim" setting, which may work on the One S.
 
  • Like
Reactions: Rampage

cell30

Senior Member
Jan 28, 2012
139
87
58
Ahh. "GV Integration" is probably "Google Voice Integration". Are you using Google Voice on your phone? If so, it might be that Google Voice and the app are both trying to configure the capacitive buttons backlight brightness.

If you don't mind, could you try installing the v1.0.7-DimTest1 test version of the app from this post and see if it fixes the off-not-sticking-across-reboot issue you are experiencing: http://forum.xda-developers.com/showthread.php?p=35531968#post35531968. That test version of the app includes some internal code refactoring which will be included in the next official version. It runs "chmod 444" (read-only) on the file to which the brightness is written, which should prevent GV from turning the backlight back on.
No change with DimTest1, unfortunately. Removing or disabling GV Integration / Google Voice Integration fixes the issue, so that app definitely seems to be the culprit, as opposed to Google Voice itself. Is it possible to delay the Capacitive Button Brightness startup on either my end or yours? Regardless, great work on the app. The lack of the settings sticking on reboot in my unique case is just a minor inconvenience. :D
 

Rampage

Senior Member
Jul 5, 2012
1,137
632
0
Bremen
First of all, you're welcome. This app has been a fun hobby development project.

The app does not "officially" support the HTC One S but since The One S is "similar" to the HTC One X+ it assumes that the commands to control the backlight are the same as the One X+. Back when v1.0.7 was written there was no known way to control the brightness of the capacitive buttons on the One X+ (other than on and off) and therefore the "dim" option was removed from the UI.

Since v1.0.7 was written, I found a way to control the brightness setting on the One X+, and I created a test version of the app to see if it actually works. If you want, could you try installing the v1.0.7-DimTest1 test version of the app from this post and see if the dim setting works for you on your One S: http://forum.xda-developers.com/showthread.php?p=35531968#post35531968. That test version of the app includes some internal code refactoring which will be included in the next official version and also an attempt to support a "dim" setting, which may work on the One S.
This is what happens when trying any option

Gesendet von meinem HTC One S Special Edition mit Tapatalk 2
 

Attachments

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
No change with DimTest1, unfortunately. Removing or disabling GV Integration / Google Voice Integration fixes the issue, so that app definitely seems to be the culprit, as opposed to Google Voice itself. Is it possible to delay the Capacitive Button Brightness startup on either my end or yours? Regardless, great work on the app. The lack of the settings sticking on reboot in my unique case is just a minor inconvenience. :D
The delay option that you suggest is certainly possible to implement, but it probably will only fix the issue intermittently as there will always be a "race" between the Capacitive Buttons Brightness app and the GV Integration app. For now I will add a note about this issue to the known issues list in the OP.

I've also created an issue in Google Code to track this: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=7

Would it be possible to get a copy of the GV Integration APK file? With it I could decompile it and try to figure out which mechanism it is using to set the capacitive button backlight. If you get it, you can attach the APK file to this thread, PM it to me, email it to me, or attach it directly to the issue in Google Code.

Thanks for your help in tracking this issue down.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
This is what happens when trying any option
Ahh... the lut_coefficient file is the one that controls the brightness (on a scale of 0 to 100). Since that file does not exist on your HTC One S there may not be a way to set the brightness level, other than on and off. I'm going to put investigation of this issue on hold for now and will revisit when I add official support for the One S. Thanks for your help investigating this issue though.
 

cell30

Senior Member
Jan 28, 2012
139
87
58
The delay option that you suggest is certainly possible to implement, but it probably will only fix the issue intermittently as there will always be a "race" between the Capacitive Buttons Brightness app and the GV Integration app. For now I will add a note about this issue to the known issues list in the OP.

I've also created an issue in Google Code to track this: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=7

Would it be possible to get a copy of the GV Integration APK file? With it I could decompile it and try to figure out which mechanism it is using to set the capacitive button backlight. If you get it, you can attach the APK file to this thread, PM it to me, email it to me, or attach it directly to the issue in Google Code.

Thanks for your help in tracking this issue down.
I'm not sure of the rules for redestributing APKs, so here's a link to the app in the play store:
https://play.google.com/store/apps/details?id=com.mdrtools.apps.gvintegration.free
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Version 1.0.8-Beta1 APK is attached. If no serious issues arise with this beta then it will become the official v1.0.8 release.

Changes in v1.0.8-Beta1 (since v1.0.7)
  • "dim" support added for the International (quad-core) HTC One X and HTC One X+ (note: does not work on all ROMs/kernels/hboots)
  • "Debug Information" screen added, from the "Settings" screen
  • New application icon (thanks to XDA user lesscro)
  • "Credits" screen added, accessible from "About" screen
  • Complete re-write of code that sets capacitive buttons brightness, to allow it to support multiple devices
  • Fixed scrolling in "About" screen
  • Fixed crash when device is rotated in the "Settings" screen

Note that the newly-added "dim" support for the quad-core Tegra3 devices has been reported to work by some users and others have reported no difference between "dim" and "bright". Unfortunately, the root cause of the issue is unknown but I still plan to release this in v1.0.8 since some users report success. "Dim" fully works for the dual-core S4 North American HTC One X (a.k.a. "XL").

Please reply to this post with your feedback. If reporting issues, please go to the new "Debug Information" screen, press the "copy" button, and paste its contents. This will immensely help me investigate issues. You can also attach a screenshot of this screen if that is easier.

If anyone is willing, I've created a set of "regression tests" that can be executed manually in about 20 minutes to ensure that the entire application works correctly. Any of these test case failures is a legitimate issue. If you would like to run these tests, please see them at https://code.google.com/p/hox-cap-butn-brightness/wiki/ReleaseTests

Reminder: This "beta version" of the app is signed with a developer key so it will fail to install if you have an official version of the app installed. So you must first uninstall any official versions of the app before installing this test version.

Finally, HAPPY NEW YEAR!!!
 

Attachments

carbon5000

Member
Dec 23, 2012
31
6
0
Version 1.0.8-Beta1 APK is attached. If no serious issues arise with this beta then it will become the official v1.0.8 release.

Changes in v1.0.8-Beta1 (since v1.0.7)
  • "dim" support added for the International (quad-core) HTC One X and HTC One X+ (note: does not work on all ROMs/kernels/hboots)
  • "Debug Information" screen added, from the "Settings" screen
  • New application icon (thanks to XDA user lesscro)
  • "Credits" screen added, accessible from "About" screen
  • Complete re-write of code that sets capacitive buttons brightness, to allow it to support multiple devices
  • Fixed scrolling in "About" screen
  • Fixed crash when device is rotated in the "Settings" screen

Note that the newly-added "dim" support for the quad-core Tegra3 devices has been reported to work by some users and others have reported no difference between "dim" and "bright". Unfortunately, the root cause of the issue is unknown but I still plan to release this in v1.0.8 since some users report success. "Dim" fully works for the dual-core S4 North American HTC One X (a.k.a. "XL").

Please reply to this post with your feedback. If reporting issues, please go to the new "Debug Information" screen, press the "copy" button, and paste its contents. This will immensely help me investigate issues. You can also attach a screenshot of this screen if that is easier.

If anyone is willing, I've created a set of "regression tests" that can be executed manually in about 20 minutes to ensure that the entire application works correctly. Any of these test case failures is a legitimate issue. If you would like to run these tests, please see them at https://code.google.com/p/hox-cap-butn-brightness/wiki/ReleaseTests

Reminder: This "beta version" of the app is signed with a developer key so it will fail to install if you have an official version of the app installed. So you must first uninstall any official versions of the app before installing this test version.

Finally, HAPPY NEW YEAR!!!
Hi, first of all, great app. I have been tracking this thread over the last few days and have tried several of the test versions, and am happy to say that 1.0.8 beta actually does work for me (HTC One X International running ARHD). The dim setting is marginally dimmer than full brightness, but noticable.

The original reason I wanted to install your app is that I feel HTC increased the brightness between ICS and JB, and now on JB the button light bleeds onto the lower edge of the screen, especially on dark images. Your app has reduced this issue.

However, I was wondering if you would consider adding in the functionality of having the dim setting AS WELL AS the dim lights to come on and off with the light sensor - that would make this complete for me.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Hi, first of all, great app. I have been tracking this thread over the last few days and have tried several of the test versions, and am happy to say that 1.0.8 beta actually does work for me (HTC One X International running ARHD). The dim setting is marginally dimmer than full brightness, but noticable.

The original reason I wanted to install your app is that I feel HTC increased the brightness between ICS and JB, and now on JB the button light bleeds onto the lower edge of the screen, especially on dark images. Your app has reduced this issue.

However, I was wondering if you would consider adding in the functionality of having the dim setting AS WELL AS the dim lights to come on and off with the light sensor - that would make this complete for me.
Thanks for the feedback, carbon5000. Let me just make sure I understand your feature request correctly. You would like for the capacitive buttons backlight brightness to automatically be set to "bright" when the light sensor detects that there is a lot of light in the surrounding environment and then automatically go to "dim" when the light sensor detects a low surrounding light level, such as in a dark room. Am I understanding your feature request correctly?
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Version 1.0.8 released. You can either install the APK from the link below (and in the OP), or wait for a few hours for the new version to become active in the Google Play Store.

Changes in v1.0.8 (compared to v1.0.7)
  • "Dim" support added for the International (quad-core) HTC One X and HTC One X+ (note: does not work on all ROMs/kernels/hboots)
  • New application icon (thanks to XDA user lesscro)
  • "Debug Information" screen added, accessible from the "Settings" screen
  • "Credits" screen added, accessible from the "About" screen
  • Complete re-write of code that sets capacitive buttons brightness, to allow it to support multiple devices
  • Fixed scrolling in "About" screen
  • Fixed crash when device is rotated in the "Settings" screen

APK Download URL for v1.0.8: http://code.google.com/p/hox-cap-butn-brightness/downloads/detail?name=CapButnBrightness-1.0.8.apk

NOTE: If you have installed a "test" or "beta" version of this application then you must uninstall it before installing this official version. The reason is that the "test" versions are signed with a developer key where v1.0.8 is signed with the "official" key. If you forget to uninstall the test version first then installation of the official version will fail. If you have a previous official version installed (eg. v1.0.7) then you do not need to uninstall it first
 

Attachments

carbon5000

Member
Dec 23, 2012
31
6
0
Thanks for the feedback, carbon5000. Let me just make sure I understand your feature request correctly. You would like for the capacitive buttons backlight brightness to automatically be set to "bright" when the light sensor detects that there is a lot of light in the surrounding environment and then automatically go to "dim" when the light sensor detects a low surrounding light level, such as in a dark room. Am I understanding your feature request correctly?
No, what I would like is:

In a bright room/daylight, no button lights on
In a dark room/night, dim button lights

So effectively, buttons should never be on full brightness ever

Currently on the dim setting, the lights are on dim regardless of room lighting, i.e. not using the light sensor. Don't know if that's how its meant to be, or is a problem on my device
 
  • Like
Reactions: Simba501

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
No, what I would like is:

In a bright room/daylight, no button lights on
In a dark room/night, dim button lights

So effectively, buttons should never be on full brightness ever

Currently on the dim setting, the lights are on dim regardless of room lighting, i.e. not using the light sensor. Don't know if that's how its meant to be, or is a problem on my device
The app currently has no logic to automatically adjust the brightness of the capacitive buttons backlight, so the behaviour you are experiencing is indeed expected. Although I like your suggestion and I've recorded it so that I don't forget about it: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=20. This feature may be included in a future release.
 

ECEXCURSION

Senior Member
Aug 20, 2010
2,262
521
0
Minneapolis, MN
www.lego.com
Thanks for the app. I just noticed however that my dimmed cappacitive lights are no longer on. I let the phone sleep for an hour or so and it seems the lights have turned themselves off by themselves.

Code:
Application Version: 1.0.8

Detected Device: HTC One X (evita)
Supports Setting Capacitive Buttons Backlight Brightness: Yes
Setting Capacitive Buttons Backlight Brightness Possible: Yes

/sys/class/leds/button-backlight/currents
File Exists: Yes
File Permissions: Read-Only
File Contents: 1

/sys/class/leds/button-backlight/brightness
File Exists: Yes
File Permissions: Read-Only
File Contents: 0

/sys/class/leds/button-backlight/lut_coefficient
File Exists: No

Build.BOOTLOADER: 1.09.0000
Build.DEVICE: evita
Build.DISPLAY: JRO03C
Build.MANUFACTURER: HTC
Build.MODEL: HTC One XL
Build.PRODUCT: evita
Build.VERSION.RELEASE: 4.1.1
Sent from my HTC One XL
 
Last edited:

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Thanks for the app. I just noticed however that my dimmed cappacitive lights are no longer on. I let the phone sleep for an hour or so and it seems the lights have turned themselves off by themselves.

Code:
Application Version: 1.0.8...
Thanks for reporting this, and providing the debug information :) I've created a high priority issue in google code for this: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=23

Can you take a look at it and make sure I've understood the issue correctly?