yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers HTC One X, Telstra One XL] ECEXCURSION:
Re: [APP][Jan-03] Capacitive Button Brightness v1.0.8

For anyone wondering, kernel tuner supports this functionality in the app itself.
[AT&T, Rogers HTC One X, Telstra One XL] bubuphonik:
exactly i even unistall it the app and they keep acting weird how do it i do the debug info:?\
[AT&T, Rogers HTC One X, Telstra One XL] Genetic517:
Re: [APP][Jan-03] Capacitive Button Brightness v1.0.8

I used to use the currents file to manually change my brightness. I still have this file in viper but when I change the brightness the lights end up staying on even after locking the phone. There must be a new file somewhere that I'd be able to edit?
[AT&T, Rogers HTC One X, Telstra One XL] old.splatterhand:
Any chance to make this app fit for HTC One SV?
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Have you tried the app on your One SV? There have been many reports of this app working on phones that are not "officially" supported. I have not been actively developing the app since February of this year (life just got too busy!), so I don't have plans to add support for additional phones.
[AT&T, Rogers HTC One X, Telstra One XL] old.splatterhand:
Sad to hear that.

Yeah, of course i tried, but it doesn't even start, cause "device is not supported".
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Can you reply to this post with the contents of the "Debug Information" screen? With that, I can tell you if it has any hope of working at all.

Launch the app

Select "Settings" from the menu

Select "Debug Information"

Click the "Copy" button in the top-right corner

Paste the contents into your reply to this post
[AT&T, Rogers HTC One X, Telstra One XL] old.splatterhand:
Here we go:

Application Version: 1.0.8

Detected Device: Unknown Device (k2u)
Supports Setting Capacitive Buttons Backlight Brightness: No

Build.BOOTLOADER: 2.00.0000
Build.DEVICE: k2u
Build.DISPLAY: JZO54K
Build.MANUFACTURER: HTC
Build.MODEL: HTC One SV
Build.PRODUCT: k2u
Build.VERSION.RELEASE: 4.1.2
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Unfortunately, this proves that this app will not be supported on your device. The reason it works on several is that they all basically use the same mechanism to set the brightness of the capacitive buttons backlight. Your One SV must use a different technique altogether, and thus is not supported by the app.

The app works by writing "0" or "1" to the files /sys/class/leds/button-backlight/currents and /sys/class/leds/button-backlight/brightness to turn the backlight off and on, respectively. If those files do not exist then the app will not work. They are "virtual" files created by the kernel, so you can't just "copy them over" from another device or anything like that. You need a kernel that supports this, and likely the One SV does not have such a kernel. Sorry for the bad news :(
[AT&T, Rogers HTC One X, Telstra One XL] old.splatterhand:
Ok, then i know whats fact.

Anyway thanks for spending your time with me :D
[AT&T, Rogers HTC One X, Telstra One XL] old.splatterhand:
Only for the record:

/sys/class/leds/button-backlight/brightness

This one i have and when i change it with text editor it does exactly, what i'm looking for.

But after puting device in sleep and waking up, it is reseted to default value.

After reboot it is again at the value i edited until it goes to sleep...
[AT&T, Rogers HTC One X, Telstra One XL] Mystic_Portal:
This app is freaking great! Thanks man :p
[AT&T, Rogers HTC One X, Telstra One XL] Dperks88:
Thank you so much. My one x has a broken home button light and now I have all of my buttons turned off.
[AT&T, Rogers HTC One X, Telstra One XL] absinthex:
Thank you for this! Been looking for this exact thing for a while. Works great, thanks.
[AT&T, Rogers HTC One X, Telstra One XL] y0yerrj0sh:
Great app, thanks.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Then you're (somewhat) in luck. I created a one-off version of the app that will work on devices that do not have the "currents" file and only have the "brightness" file. It's attached to a bug report about the issue: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=25

Try sideloading the APK file attached to that defect report and it should work perfectly for you. Note that you will need to first uninstall the app since it is signed with a different key and will fail to install overtop of the one you currently have on your device.
[AT&T, Rogers HTC One X, Telstra One XL] bearnakedbrew:
Whenever I flash a rom this is one of the first apps I install, thanks.
[AT&T, Rogers HTC One X, Telstra One XL] cvostu:
pres

i installed this app and like it alot,,, however,, when i pit my HTC One to sleep.. the capacitive buttons still stay lit... is there a fix for this???? kind of annoting to have to turn it down all the time.... Thanks Stuart
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Thank you for reporting this issue. I have a partial fix, in that it now turns off the backlight when the screen turns off. There is, however, a new issue with this fix in that the button backlight fails to turn back on when the screen turns on. I'm looking into a fix for this new issue. If you'd like to test the partial fix, please install the test apk attached to this issue report: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=26

CapButnBrightness-1.0.8-m7Test02-1.apk
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
To any HTC One owners... I am looking for a bit of help fixing the issue where the capacitive buttons' backlight does not turn off with the screen in v1.0.8 and where it fails to turn back on with the screen in v1.0.8-m7Test02. If you can reproduce this issue and are willing, I would really benefit from one or both of the following:

1. logcat - set the desired capacitive buttons brightness, reproduce the issue a few times, then capture a logcat log; if possible, include the contents of the Debug Information screen of the app when posting the logcat.

2. video - although I've received several reports of this issue the descriptions are somewhat vague and I do not fully understand what the actual behaviour is; if you could capture a video of your phone exhibiting this issue and post it that would be VERY helpful. A picture speaks 1000 words. If possible, capture the Debug Information screen of the app in the video too.

Thanks!
[AT&T, Rogers HTC One X, Telstra One XL] tyraelasd:
[YOUTUBE]eFMkvCFkXnA[/YOUTUBE]

On my HTC One, I installed this app because my backlight buttons never turn on when needed, guess this app doesn't do that ( they still doesn't light up when needed if you left them on default behavior ) but well here is what happens when you turn off the screen. Hope it helps.

EDIT: Just noticed that with medium brightness in the video it seems like it doesn't light up, but it does indeed.

Application Version: 1.0.8

Detected Device: HTC One X+ (enrc2b)

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: 3

/sys/class/leds/button-backlight/brightness

File Exists: Yes

File Permissions: Read-Only

File Contents: 1

/sys/class/leds/button-backlight/lut_coefficient

File Exists: Yes

File Permissions: Read-Only

File Contents: 100

Build.BOOTLOADER: 1.44.0000

Build.DEVICE: m7

Build.DISPLAY: JDQ39

Build.MANUFACTURER: HTC

Build.MODEL: HTC One

Build.PRODUCT: m7

Build.VERSION.RELEASE: 4.2.2
[AT&T, Rogers HTC One X, Telstra One XL] tyraelasd:
Update:

I just installed the test 02 apk and now the lights go off once you turn the screen on ( one problem fixed ) BUT they do not light up again when you turn on the screen :S
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Thank you for posting this video. Sorry for not responding sooner... I did not receive the email notifications that I usually do. But when I try to watch the video it says it is "private". Can you change the video's setting to be "public"? Thank you!
[AT&T, Rogers HTC One X, Telstra One XL] tyraelasd:
Didn't know that was private, now it's public.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
HTC One owners, please test out the latest test version v1.0.8-m7Test03 (attached), which should fix the capacitive buttons backlight failing to turn on when the screen turns back on, and report back your findings.

You must first uninstall any official versions of the app before installing this test version. The reason is that this version is signed with a developer key so it will fail to install if you have an official version of the app installed.

This HTC One issues are being tracked by the following defect report in Google Code: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=26

[edit: apk file is now attached]
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Have any HTC One owners had a chance to test out v1.0.8-m7Test03? I don't have a device to test on so I cannot test the fix myself. If this fix works, I plan to update the official version on the play store.
[AT&T, Rogers HTC One X, Telstra One XL] old.splatterhand:
Can you also make this updated version for phones without /sys/class/leds/button-backlight/currents file?
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Good idea. I'll do that.
[AT&T, Rogers HTC One X, Telstra One XL] makbil:
Good thing I decided to read first before asking a question :D

I have the same issue on my HTC One running ARHD Google Edition ROM (4.2.2)

Although you said that you are no longer actively developing this application, I'll keep an eye here hoping the issue gets resolved for HTC One. If there are any logs etc. you need from me please let me know.

Edit: Just installed the test file from post #91 and can confirm that the capacitive buttons now do turn off when the screen is turned off and they do come back when the screen is turned on. Good work, thanks. It was bugging me for a while and was too lazy to look into editing framework-res, not even sure if it would work in this Android version :)
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
If you have a chance, could you test the v1.0.8-m7Test03 version of the app attached to this previous post in this thread: http://xdaforums.com/showpost.php?p=43806603&postcount=91. I'm just looking for feedback if the fix for the HTC One works. When I get a chance, I'll update the version in the Google Play store if the fix works. Thanks!
[AT&T, Rogers HTC One X, Telstra One XL] makbil:
You must have responded while I was editing my post.

The fix works, so you can update the version in Play store. I am on a Google Edition ROM now and it might be a good idea to try the solution on a Sense ROM as well, although I don't see any reason why it wouldn't work.

I can test on the Sense ROM tomorrow if you want.
[AT&T, Rogers HTC One X, Telstra One XL] zarch1972:
HTC One owner here running stock HTC Sense 4.2.2 ROM.

v1.0.8-m7Test03.apk appears to work great.

Full brightness whilst screen on, they go off when I turn the screen off, then come back on when I turn screen on again.

Great work. :good:
[AT&T, Rogers HTC One X, Telstra One XL] makbil:
Working perfectly on the Sense ROM too. ARHD 12.1 with stock kernel.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Thanks everyone for testing v1.0.8-m7Test03. There is one more minor fix I've been asked to get in before releasing the new version in the play store. It's for some phones that don't have the "currents" file and thus only support "on" and "off" (but do not support "dim"). Right now the app doesn't work at all on such devices but I can easily fix that so they can at least turn the buttons backlight on and off.

As you can probably tell from how long it's taken me to implement the fix for HTC One, I don't have a lot of time these days to devote to the app. So I have no ETA for the fix to go out to the play store. But in the meantime, you can safely continue using the "test" version that work for you since there is really no advantage to using the "official" version other than automatic updates. I will post to this thread once it's released.
[AT&T, Rogers HTC One X, Telstra One XL] zarch1972:
Not sure if its something with my stock HTC One build, but v1.0.8-m7Test03.apk seems hit and miss as to whether it springs into life after switching the screen on.

Any ideas? :confused:
[AT&T, Rogers HTC One X, Telstra One XL] makbil:
I'm having a similar problem on 4.3 but works fine on 4.2.2
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
No ideas spring to mind offhand. If possible, try to capture a logcat right after the problem occurs in the future, and attach it here in the forum or create a defect report at https://code.google.com/p/hox-cap-butn-brightness/issues/list. If you could copy & paste the contents of the app's "Debug Information" screen that may also prove useful. Every ROM seems to be a little different, and some work better than others. I cannot explain it. There may be a workaround though.
[AT&T, Rogers HTC One X, Telstra One XL] jkel777:
I'm not quite sure if this request would fall in the capabilities of this app, but here goes:

I was just wondering if it would be possible to have some sort of an "auto" setting, where the capacitive lights will turn on and stay on in a dimly lit room, and turn off and stay off in a bright or well-lit room. This is how stock Sense handles the capacitive buttons, and I was wondering if there was any way to add it into your already fantastic app. :o

Thanks, and keep up the good work!
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
A new beta version of this app is available: v1.0.9-Beta01. This is primarily a bug fix release compared to v1.0.8, but also adds support for the HTC One. Please test the attached CapButnBrightness-1.0.9-Beta1.apk and reply with your experiences, good or bad. The "major" changes are support for HTC One devices and a fix for devices that lack the "currents" file. The full list of changes is included below.

EDIT: HTC One owners: please leave your comments in the newly-created thread in the HTC One forum: http://xdaforums.com/showthread.php?t=2402153

Changes in v1.0.9-Beta1 (since v1.0.8)

HTC One (m7) support added

Fix for devices that are missing the "currents" file (https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=25)

app name changed to "Capacitive Buttons" (was "Capacitive Buttons Brightness")

fix spelling of "xda-developers" in res/xml/credits.xml (was "xda-develeopers")

show process UID in "Debug Information" screen

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 with investigation of 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.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
This is a frequently requested feature that I will keep in mind. Thanks for the feedback!
[AT&T, Rogers HTC One X, Telstra One XL] old.splatterhand:
Can confirm, its working for device without "currents" file.

Use it to keep the button lights always on, when device is awake and it works like i want.

Great work!
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Thanks for the confirmation
[AT&T, Rogers HTC One X, Telstra One XL] myself11:
I've just flashed Maximus Rom Sense 5 (4.2.2) on One X (Tegra 3). Capacitive Button Brightness v1.0.8 seems to work without issues.

Thanks for such an useful app.
[AT&T, Rogers HTC One X, Telstra One XL] Frankie1588:
Is there any way to get this to work with tasker? I use NoLED for notifications while the phone is charging. Unfortunately, the hard keys light up at night when a notification arrives. I would like to set up a tasked profile to disable to backlight let's when the phone is charging and then enable them when the phone is no longer charging.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
A new version of this app is available: v1.0.9. The "major" changes are support for HTC One devices and a fix for devices that lack the "currents" file. There are also some minor cosmetic changes and a renaming of the app to "Capacitive Buttons" (was "Capacitive Buttons Brightness") just to be a little shorter. The full list of changes is included below.

The new version of the app will be available from the Google Play store in the next 24-48 hours. For the impatient, the APK can be downloaded from http://dl.bintray.com/sleepydragon/CapacitiveButtons/CapButnBrightness-1.0.9.apk and installed manually.

*HTC One owners*: please see the newly-created thread for this app in the HTC One forum: http://xdaforums.com/showthread.php?t=2402153

Changes in v1.0.9 (since v1.0.8)

HTC One (m7) support added

Fix for devices that are missing the "currents" file (https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=25)

app name changed to "Capacitive Buttons" (was "Capacitive Buttons Brightness")

fix spelling of "xda-developers" in res/xml/credits.xml (was "xda-develeopers")

show process UID in "Debug Information" screen

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 with investigation of issues. You can also attach a screenshot of this screen if that is easier.

Reminder: If you have a beta (or any non-release) version of this app installed then you will need to first uninstall it before installing this official version. Failing to do so will result in attempts to install the release version failing due to the non-release versions being signed with a developer key and the release versions signed with a release key.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
It may be possible to get this to work with Tasker even without this app installed. See the suggestion here: http://xdaforums.com/showpost.php?p=40996474&postcount=73. I don't have any personal experience with Tasker so I'm not sure I can help too much.
[AT&T, Rogers HTC One X, Telstra One XL] xp8246:
Is it must be running in background? If not i use it is better than using init.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
No, you do not need to keep the app running in the background. After selecting the desired button brightness, simply exit the app and the brightness setting will not change.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
Effective immediately, I am making available a "Pro" version of the Capacitive Buttons application. The free and pro versions will be exactly the same, with the only difference being that the pro version will receive bug fixes and new features before the free version.

https://play.google.com/store/apps/details?id=org.sleepydragon.capbutnbrightness.pro

I'm making this change for several reasons:

Make a little bit of extra money (I'm saving up to buy a new bass guitar)

Provide motivation to continue developing and improving the app

Give people a monetary way to say "thanks man for making this awesome app!"

There will be a promotional price of USD $0.99 for 2 weeks, with the price rising to USD $2.00 on Sunday September 22. Hopefully this will quell any anger that people may feel about the new pricing model.

If you are unable or unwilling to pay for the Pro version, there are still ways that you can get access to the latest features for free, all of which I fully support and encourage:

Continue using the free version; it will be updated with the exact same features and bug fixes as the pro version 2-4 weeks later

Use beta versions posted in xda-developers.com forum threads, versions which contain the new features and often are identical to the official app released on the Google Play Store

So the main motivation for someone to pay for the pro version is to get official app updates easily and automatically via the Google Play Store. If you're happy with waiting for updates or using beta versions then you can live a full and happy life with the free version.

Speaking of new features...
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
A new beta version of this app is available: v1.0.10-Beta01. The new feature is a home screen widget. Please test the attached CapButnBrightness-1.0.10-Beta1.apk and reply with your experiences, good or bad.

EDIT: A newer beta version is available: http://xdaforums.com/showthread.php?p=45420157#post45420157

Changes in v1.0.10-Beta1 (since v1.0.9)

Home screen widget

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

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.
[AT&T, Rogers HTC One X, Telstra One XL] denversc:
A new beta version of this app is available: v1.0.10-Beta02. The APK file is attached.

EDIT: A newer beta version is now available: http://xdaforums.com/showthread.php?p=45437803#post45437803

Changes in v1.0.10-Beta2 (since v1.0.10-Beta1)

Fix turning buttons backlight back on when the screen turns on if the backlight is exclusively set via the widget

Potential fix for the widget not showing up in the launcher's list of widgets (ie. setting android:installLocation="internalOnly")

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

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.[/QUOTE]