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

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

  • Like
Reactions: 1882kg and skdubg

bikerhammer

Senior Member
Aug 19, 2009
129
16
38
On my HOX+ with rooted stock-rom it works sometimes and sometimes not. When I wake it up from sleeping mode I have to start the app again.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
On my HOX+ with rooted stock-rom it works sometimes and sometimes not. When I wake it up from sleeping mode I have to start the app again.
Thanks for reporting this issue. I have created an issue on the Google Code page to track its investigation: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=16

Could you copy the contents of the app's Settings -> Debug Information page using the "copy" button in the screen's top-right corner and paste it into a reply to this post? This information may help the investigation.
 

maharadja

Senior Member
Oct 31, 2010
66
14
38
Detmold
On my HOX+ with rooted stock-rom it works sometimes and sometimes not. When I wake it up from sleeping mode I have to start the app again.
I had tust issue in 1.0.7 but after i flashed the Beta 9 i was gone^^
And with 1.0.8 it isnt their either.

Gesendet von meinem HTC One X+ mit Tapatalk 2
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
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 are:
  1. Issue 18: Notification LED turns on with capacitive buttons backlight
  2. Issue 19: "Dim" and "Bright" are the same brightness on some devices
  3. 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.
 

Molotovski

Member
Jan 7, 2013
5
1
0
I created an account for saying this: THANK YOU VERY MUCH FOR CREATING THIS APP! But seriously, I have been looking a long time for an app like this, it's working just fine on my HTC One X+ with Elegencia 4.4 and stock kernel.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
I created an account for saying this: THANK YOU VERY MUCH FOR CREATING THIS APP! But seriously, I have been looking a long time for an app like this, it's working just fine on my HTC One X+ with Elegencia 4.4 and stock kernel.
You are very welcome :) Thanks for going through all the trouble just to say that.
 

holmes5518

Member
Apr 17, 2011
23
3
0
Seems to be working fine on this AT&T One X+, running Elegancia 3 Rom. Thanks!

Sent from my HTC One X+ using xda app-developers app

Nice app! I hate that my buttons stay lit during bedside docking mode. This may be the answer.

Is there a way to use an automation app such as tasker or another to use your app to turn the lights off when I dock my phone? I currently have an NFC tag on the dock to set everything to 'night mode' and would love to somehow integrate your app...But not sure how, since off has to physically be clicked.
 

aardappel12

Senior Member
Dec 9, 2010
383
164
0
Nice app! I hate that my buttons stay lit during bedside docking mode. This may be the answer.

Is there a way to use an automation app such as tasker or another to use your app to turn the lights off when I dock my phone? I currently have an NFC tag on the dock to set everything to 'night mode' and would love to somehow integrate your app...But not sure how, since off has to physically be clicked.
I believe Lumos can do that, made by nik3r from the elitekernel :)
it's in the play store I believe

Sent from my HTC One X+ using xda premium
 

holmes5518

Member
Apr 17, 2011
23
3
0
I believe Lumos can do that, made by nik3r from the elitekernel :)
it's in the play store I believe

Sent from my HTC One X+ using xda premium
Thanks for the suggestion. This app looked like it would do the trick, but it doesn't disable the capacative buttons. I emailed the developer hoping he will reply with a solution.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Thanks for the suggestion. This app looked like it would do the trick, but it doesn't disable the capacative buttons. I emailed the developer hoping he will reply with a solution.
Try doing something like this from tasker (note that I'm not personally familiar with tasker so this is just what I've gathered from other posts)

To turn the capacitive buttons backlight on:

Code:
echo 1 > /sys/class/leds/button-backlight/currents
echo 1 > /sys/class/leds/button-backlight/brightness
To turn the capacitive buttons backlight off:

Code:
echo 0 > /sys/class/leds/button-backlight/currents
echo 0 > /sys/class/leds/button-backlight/brightness
This is derived from the source code for the app itself: https://code.google.com/p/hox-cap-b...on/capbutnbrightness/devices/HtcOneXPlus.java
 

Onweed

Member
Apr 1, 2012
8
1
23
nice!

I will test it soon cuz when its dark and i wake up the phone i see bleeding on the corner where are the buttons, thanks for this tweak:)
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Is possible that you apps run on other kind of phone!
like samsung or others phone?
Unfortunately, this app is specific to HTC devices. I think some Samsung phones actually have the ability to control the buttons backlight right in the OS from the manufacturer though. Check the settings. Otherwise, I'm afraid this app won't help you.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
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://forum.xda-developers.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.
 

Attachments

Last edited:

metzner

Member
Jul 13, 2012
40
4
0
Hi,

do you think you can support Mediatek (MTK) based phones in the future? I´m willing to pay and test :)

Kind reagrds,
Floris


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.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
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://forum.xda-developers.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.