yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Okay, fair enough. When you say "It was sticking after boot previously" are you saying that it worked with a previous version of the app (v1.0.2 or older) or earlier in time with the latest version of the app (v1.0.3)? If you muster up the courage to take a logcat, I'll take a look and see if I can help. Otherwise, I'm afraid there's not much I can do since it works for me.
[AT&T, Rogers HTC One X, Telstra One XL] jkel777:
It was sticking previously on v1.0.3. Yesterday, my phone froze on the camera app, and rebooted by itself (I think it still stuck then though). Then, I went back to the camera app, and it froze again, but didn't reboot by itself, so I had to manually hard reset it by holding down the power button for about 5 seconds. Then, when it rebooted after that, I don't think the settings stuck. After I shut down my phone for the night, then turned it back on this morning, the settings didn't stick, even though the option was ticked to have it stick after boot. I need to try shutting down or rebooting again with the option ticked, because this only happened once or twice so far. Yeah, I know I'm being a total noob right now lol. Sorry! I really appreciate your help though. I'll let you know if I end up getting a logcat. But I think it has something to do with the hard reset/reboots.
[AT&T, Rogers HTC One X, Telstra One XL] jkel777:
UPDATE: The camera app froze on me once again (still on the 10-12 nightly) and the phone rebooted by itself. When I unlocked the phone after it had rebooted, I saw text that said "Capacitive buttons brightness has been granted superuser permissions." Then, it shut off the capacitive lights like it should at boot. However, right after they shut off, they immediately came back on. So I believe the app is shutting them off initially (which is the option I have selected; also, it gives the "granted superuser permissions" text), and then somehow they come back on. Hope this helps! I'm still trying to man up to get that logcat haha.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Thanks for the update. I think you're right, that the app is indeed setting the capacitive button brightness on boot, but then something else is setting it to some other value. Perhaps some other app that you've installed is doing it, or there is some CM10 ROM setting that is changing the brightness. I'm currently running CM10, cm-10-20121012-NIGHTLY-evita.zip (which is the same as you), and I don't see any options to control the capacitive button brightness nor do I experience the issue that you are.

Did you by any chance flash Turge's MOD to set the capacitive button brightness: link? If you did then my app and his MOD would be "competing" to set the brightness on boot.

Also, let me know if there is anything "blocking" you from capturing a logcat. A logcat is the most standard log captured by Android developers and is an incredible tool for debugging problems just like this. If you're concerned about posting it publicly, you could even PM it to me.
[AT&T, Rogers HTC One X, Telstra One XL] jkel777:
I didn't download Turge's MOD, so I'm still at a loss for what's causing it. I don't think I installed any apps that would compete with your app... when the next nightly comes out, I'll flash it and then see if everything gets fixed.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
FYI: Just found someone saying they used a Tasker script to flash the capacitive buttons when messages are received: http://xdaforums.com/showthread.php?t=1948808
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Version 1.0.4 released. You can either install the APK from the link in the OP, or wait for a few hours for the new version to become active in the Google Play Store.

Chanes in v1.0.4

provide visual indication when the brightness buttons are clicked

produce better error message if device is not rooted or root permission denied

"Default" button added to enable reverting the brightness setting to the default

images are not as badly pixelated as before (still a bit though)

translations for the words "Settings" and "About" added

contentDescription attribute added to ImageView elements, to improve accessibility
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Very good! I plan on using this in my next build of CleanROM!
[AT&T, Rogers HTC One X, Telstra One XL] franki_667:
Love it
[AT&T, Rogers HTC One X, Telstra One XL] ImagioX1:
Deleted
[AT&T, Rogers HTC One X, Telstra One XL] xGIBRALTERx:
Very nice. How well does this affect battery life?
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
I haven't measured, but it probably has negligible impact on battery life. The capacitive button backlight is on so rarely in the grand scheme of things and is such a small light that I imagine it makes no noticeable difference.

The primary motivation for me personally using this app is aesthetics. For example, when watching a YouTube video in a dark room it is nice to have the backlight buttons off. Also, I prefer the "dim" setting compared to the bright for normal use.
[AT&T, Rogers HTC One X, Telstra One XL] xGIBRALTERx:
Ah hah. Thanks for sharing this is pretty cool.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
That's awesome! Thanks for all your contributions to the One X community. CleanROM is my go-to ROM when I want something simple that works reliably.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Version 1.0.5 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.5

fixed pixelated button images in main UI (thanks to gridlock489 for providing higher-resolution images)

There is a screenshot attached showing the improvements in the button images from v1.0.4 to v1.0.5. No more pixelation!

APK Download URL for v1.0.5: http://code.google.com/p/hox-cap-butn-brightness/downloads/detail?name=CapButnBrightness-1.0.5.apk
[AT&T, Rogers HTC One X, Telstra One XL] slimdizzy:
New images look way better. Thnx!
[AT&T, Rogers HTC One X, Telstra One XL] gridlock489:
Everything looks great :)
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Version 1.0.6 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.6

add support for the International One X (endeavoru) and the HTC One X+

re-architected some of the code to support multiple devices

show detected device type at the bottom of the "About" screen

if all is well, there should be no noticeable difference (other than the device name in the "About" screen) from v1.0.5 for North American HTC One X (evita) users

APK Download URL for v1.0.6: http://code.google.com/p/hox-cap-butn-brightness/downloads/detail?name=CapButnBrightness-1.0.6.apk
[AT&T, Rogers HTC One X, Telstra One XL] didopicha:
Great app but I have a problem with it. I'm using the newly supported endeavoru and it works but after the screen locks it forgets its settings and after I unlock the phone the brightness is restored to default settings. Am I missing something? Thanks in advance.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
No, you're not missing something. It's a legitimate issue with the app that affects endeavoru and evitareul devices (not evita though). I've been working on a fix in conjunction with a couple of users in the endeavoru thread and I think I have a fix. There is a test version of the app with a proposed fix, so I'd encourage you to try it and report your findings: http://xdaforums.com/showthread.php?p=35234848#post35234848.
[AT&T, Rogers HTC One X, Telstra One XL] didopicha:
Works like a charm, thank you :) The app retains its settings both after screen unlock and reboot.

The ROM I'm currently using is Epsilon Project - AOKP 4.1.2.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Version 1.0.7 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.7

fixes bug where brightness setting does not persist when turning screen off then back on; only affects International One X (endeavoru) and HTC One X+ (evitareul) devices

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

NOTE: If you installed one of the two "test" versions that were released while investigating the fix that went into this version 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.7 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.6) then you do not need to uninstall it first.
[AT&T, Rogers HTC One X, Telstra One XL] cell30:
I'm also experiencing the issue of the settings not sticking on boot. Was this ever resolved?
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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?
[AT&T, Rogers HTC One X, Telstra One XL] cell30:
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.
[AT&T, Rogers HTC One X, Telstra One XL] Rampage:
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
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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://xdaforums.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.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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://xdaforums.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.
[AT&T, Rogers HTC One X, Telstra One XL] cell30:
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
[AT&T, Rogers HTC One X, Telstra One XL] Rampage:
This is what happens when trying any option

Gesendet von meinem HTC One S Special Edition mit Tapatalk 2
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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.
[AT&T, Rogers HTC One X, Telstra One XL] cell30:
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
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Got it and attached the apk to the issue in google code: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=7. So now if someone is liable, it is me and not you :)
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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!!!
[AT&T, Rogers HTC One X, Telstra One XL] carbon5000:
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.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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?
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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
[AT&T, Rogers HTC One X, Telstra One XL] carbon5000:
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
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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.
[AT&T, Rogers HTC One X, Telstra One XL] ECEXCURSION:
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.

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
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
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?
[AT&T, Rogers HTC One X, Telstra One XL] ECEXCURSION:
In my case the capacitive buttons turned off only after the screen was turned off and then back on. It wasn't immediate like the bug report shows. However, it probably still falls into that category.

Sent from my HTC One XL
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Thanks to everyone who has given feedback about issues in v1.0.8, especially those who included the "Debug Information" screen contents :)

I have been keeping a list of bug reports and feature requests in Google Code: https://code.google.com/p/hox-cap-butn-brightness/issues/list. So rest assured that even if I don't respond to your post individually your information is being valued highly.

The top 3 priority issues for me at the moment (which are exclusively reported by international one x and one x+ users) are:

Issue 18: Notification LED turns on with capacitive buttons backlight

Issue 19: "Dim" and "Bright" are the same brightness on some devices

Issue 23: Buttons backlight times out after setting brightness, when it did not time out before

These 3 issues are somewhat mysterious to me and I don't have an ETA for a fix. Kernel sources for Jelly Bean might shed some light on this odd behaviour though, so it might be a while before they are fixed completely. There could be some test builds over the next few weeks with fixes to try out.
[AT&T, Rogers HTC One X, Telstra One XL] Eun-Hjzjined:
Re: [APP][Jan-03] Capacitive Button Brightness v1.0.8

Rogers HTC one x running cm10 nightlies, works great.

Thanks.
[AT&T, Rogers HTC One X, Telstra One XL] ozzalbatrozz:
Doesn't work for me anymore :(

Using CM10 nightlys and 4.2.1. Maybe it's because the folder "currents" doesn't exist?

rom: http://xdaforums.com/showthread.php?t=1786696
[AT&T, Rogers HTC One X, Telstra One XL] bubuphonik:
after using dis now my bttons ligths powers only sometimes how can i fix dis?
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
There have been several reports of the "currents" file not being present on 4.2.x ROMs. I built a special build for another user that reported this issue which works around the lack of "currents" file. It's attached to this bug report on Google Code: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=25. Note that the "dim" function does not work in this build; only "on" and "off". So if you just want to turn the capacitive buttons backlight off, give this build a try. Some day, when I set aside time to develop this app more, I'll fix this in the official version.

If you're able, could you post the contents of the "Debug Information" screen of the app? Even better, attach it to the Google Code report just so I have a record of it. Thanks for reporting this.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
If I understand you correctly, the issue is that the capacitive buttons backlight only turns back on sometimes when you expect it to turn on all of the time. I'm not familiar with this particular issue. Could you post the contents of the "Debug Information" screen (Settings -> Debug Information in the app itself), captured immediately following seeing this incorrect behaviour? I might be able to take a guess at the root cause from that information.