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

Search This thread

denversc

Senior Member
Jul 1, 2012
428
320
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 (which are exclusively reported by international one x and one x+ users) 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.
 

denversc

Senior Member
Jul 1, 2012
428
320
Kitchener
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

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.
 

denversc

Senior Member
Jul 1, 2012
428
320
Kitchener
after using dis now my bttons ligths powers only sometimes how can i fix dis?

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.
 

bubuphonik

Senior Member
Jun 7, 2011
60
3
gurabo
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.

exactly i even unistall it the app and they keep acting weird how do it i do the debug info:?\
 

Genetic517

Senior Member
Nov 2, 2011
1,093
297
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?
 
Last edited:

denversc

Senior Member
Jul 1, 2012
428
320
Kitchener
Any chance to make this app fit for HTC One SV?

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.
 

old.splatterhand

Recognized Contributor
Nov 4, 2010
3,981
2,214
Saturn III
HTC One (M8)
Android Wear
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.

Sad to hear that.
Yeah, of course i tried, but it doesn't even start, cause "device is not supported".
 

denversc

Senior Member
Jul 1, 2012
428
320
Kitchener
Yeah, of course i tried, but it doesn't even start, cause "device is not supported".

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.

  1. Launch the app
  2. Select "Settings" from the menu
  3. Select "Debug Information"
  4. Click the "Copy" button in the top-right corner
  5. Paste the contents into your reply to this post
 
  • Like
Reactions: old.splatterhand

old.splatterhand

Recognized Contributor
Nov 4, 2010
3,981
2,214
Saturn III
HTC One (M8)
Android Wear
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.

  1. Launch the app
  2. Select "Settings" from the menu
  3. Select "Debug Information"
  4. Click the "Copy" button in the top-right corner
  5. Paste the contents into your reply to this post

Here we go:

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

denversc

Senior Member
Jul 1, 2012
428
320
Kitchener

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 :(
 
  • Like
Reactions: old.splatterhand

old.splatterhand

Recognized Contributor
Nov 4, 2010
3,981
2,214
Saturn III
HTC One (M8)
Android Wear
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 :(
Ok, then i know whats fact.
Anyway thanks for spending your time with me :D
 

old.splatterhand

Recognized Contributor
Nov 4, 2010
3,981
2,214
Saturn III
HTC One (M8)
Android Wear
Only for the record:
Code:
/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...
 

Dperks88

Senior Member
Oct 30, 2010
230
30
Point Pleasant
Thank you so much. My one x has a broken home button light and now I have all of my buttons turned off.

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

absinthex

Member
Nov 28, 2012
40
4
Thank you for this! Been looking for this exact thing for a while. Works great, thanks.

Sent from my One X using Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    NOTE: Please use the DevDB thread for all devices instead of this device-specific thread: http://xdaforums.com/showthread.php?t=2496347
    Cap_Butn_Brightness_Title_Banner.jpg


    This small application allows you to change the brightness of the capacitive buttons (back, home, and recent tasks) on many HTC devices and a few non-HTC devices, including the HTC One X (both dual-core and quad-core models), the HTC One X+, and the HTC One. Users have also reported success on other devices, including HTC One V, HTC One S, HTC Desire HD, and Evo 3g. Root is required in order for this application to work. This application works on any ROM, including CleanROM, ViperXL, Cyanogenmod, AOKP, and MIUI.

    App review by Portal Administrator / Editor-in-Chief for XDA-Developers Will Verduzco: http://www.xda-developers.com/android/easily-dim-the-capacitive-buttons-on-many-htc-devices

    Features
    • Intuitive UI to set the brightness of the capacitive buttons to bright, dim, or off
    • Home screen widget to cycle between brightness levels

    Latest Versions
    Latest Pro Version: 1.0.13
    Latest Free Version: 1.0.13

    Download
    Google Play (Pro version): https://play.google.com/store/apps/details?id=org.sleepydragon.capbutnbrightness.pro
    Google Play (Free version): https://play.google.com/store/apps/details?id=org.sleepydragon.capbutnbrightness
    APK (v1.0.13): http://dl.bintray.com/sleepydragon/CapacitiveButtons/CapButnBrightness-1.0.13.apk
    YouTube Video: https://www.youtube.com/watch?v=r9Zj-z02CR8

    Differences in the Pro Version
    The Pro version receives new features and bug fixes 2-4 weeks earlier than the free version. That's it! Oh, and also the free version has a link at the bottom of the main UI to upgrade to pro. The main motivation 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.

    Officially Supported Devices
    • HTC One X (evita and endeavoru)
    • HTC One (m7)
    • HTC One X+ (evitareul)
    • HTC One S
    • HTC Sensation

    Unofficially Supported Devices
    • HTC One V
    • HTC Desire HD
    • HTC Evo 3D
    • HTC Droid MAXX
    • HTC Droid DNA
    • HTC Butterfly S
    • LG Optimus G

    Officially Unsupported Devices (devices that are known not to work)
    • Samsung Galaxy S2
    • Samsung Galaxy S3

    Frequently Asked Questions
    • Which brightness setting is "stock"? It depends. On Sense based ROMs (eg. CleanROM, ViperXL) "Bright" seems to be the default. On AOSP-based ROMs (eg. CM10, AOKP) "Dim" seems to be the default. It all depends on how/if the ROM maintainer tweaked the default setting. The "default default" (ie. if you RUU to stock) setting is "bright". In v1.0.4, a "Default" button was added to allow reverting to stock brightness.
    • How do I get back to the default setting? The most reliable way is to click the "Default" button on the main screen of the application then simply reboot. Or, you can just set the brightness setting that is the default.
    • What happens if I uninstall the app? Nothing. Well, it doesn't change the brightness setting if that's what you're wondering. After a reboot, though, the brightness setting will revert back to the ROM's default setting.

    Known Issues
    • "Dim" does not work on all ROMs and kernels
    • "Off" does not stick when "GV Integation" app installed

    Source
    This application is released under the GPL3 open-source license. Source code is published at https://code.google.com/p/hox-cap-butn-brightness

    Reporting Bugs
    Use the "Bug Reports" feature of this DevDB project or add a post to this thread. Please include the contents of the application's "Debug Information" page (available from the "Settings" screen) when reporting bugs, as it contains invaluable information for developers to use when investigating issues. There is a "Copy" button in the top-right corner of the screen for easy cut & paste.

    Credits
    Turge - for providing a MOD to perform the same task (http://xdaforums.com/showthread.php?t=1694375)
    gridlock489 - for providing higher-resolution images for the buttons in the main UI
    slimdizzy - for testing on the HTC One X+ and letting me borrow his device to try things out
    TToivanen - for testing on the International HTC One X (endeavoru)
    lesscro - for providing the title banner that you see at the top of this post
    skdubg - for testing on the HTC One X+, especially the new "dim" support

    Change Log (brief - see full change log in the next post)
    • 1.0.13 (Nov 14, 2013) Fixed buttons turning off issue, skip dim in widget if not supported, HTC Sensation support added
    • 1.0.12 (Oct 24, 2013) Fixed "default" button error: "Changing permissions of file failed"
    • 1.0.11 (Oct 23, 2013) Fixed long-standing issues with UI lags and superuser permissions usage, animation added to home screen widget
    • 1.0.10 (Sept 10, 2013) Home screen widget added, HTC One brightness levels fixed
    • 1.0.9 (Sept 03, 2013) HTC One support added, support for devices without the "currents" file added
    • 1.0.8 (Jan 02, 2013) dim support for all devices, new home screen icon, debug information and credits screen added, fixed about screen scrolling
    • 1.0.7 (Dec 10, 2012) fixes bug where brightness setting does not persist when turning screen off then back on; only affects endeavoru and evitareul
    • 1.0.6 (Dec 06, 2012) added support for HTC One X+ and International HTC One X (endeavoru); added detected device name at bottom of "About" screen
    • 1.0.5 (Nov 25, 2012) fixed pixelated button images in main UI (thanks to gridlock489 for providing higher-resolution images)
    • 1.0.4 (Nov 03, 2012) visual indication when buttons pressed, better error message if not rooted, "Default" button added, some words translated
    • 1.0.3 (Oct 11, 2012) Brightness setting now sticks across reboots
    • 1.0.2 (Oct 03, 2012) Change theme to Holo (dark), replace button text off/dim/bright with pretty icons
    • 1.0.1 (Oct 02, 2012) Added to Google Play, new application icon, added "About" screen
    • 1.0.0 (Sept 29, 2012) Initial release

    Old APKs:

    Feel free to bake the free version of this app into custom ROMs or publish it in other places. No need to ask permission from me. However, I am quite interested personally in different places that this app is used. So if you do include it in a ROM or whatever feel free to post a note to this thread to let me know! The app is licensed under the GPL, which means you can even take it apart and include it in your own stuff... I just ask that you honor the spirit of the GPL (unlike HTC's 120-day policy... grrr!)

    Threads for this app for other devices (obsolete - please use this thread instead):
    2
    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!!!
    2
    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
    2
    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
    2
    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