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

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
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.
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.
 
  • Like
Reactions: cecilyen

jkel777

Senior Member
Apr 10, 2012
260
22
0
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.
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.

Sent from my One X using Tapatalk 2
 

denversc

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

Scott

Retired Recognized Developer
Feb 20, 2007
29,233
66,256
263
Fargo
www.scottcrosler.com
This small application allows you to change the brightness of the capacitive buttons (back, home, and recent tasks) on the HTC One X. Root is required in order for this application to work. This application works on any ROM, including CleanROM, ViperXL, Cyanogenmod, AOKP, and MIUI.

Feel free to bake 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!)

@sleepydragonsw
Very good! I plan on using this in my next build of CleanROM!
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
Very nice. How well does this affect battery life?
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.
 
  • Like
Reactions: xGIBRALTERx

xGIBRALTERx

Senior Member
Oct 27, 2012
110
30
0
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.
Ah hah. Thanks for sharing this is pretty cool.
 

denversc

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

Attachments

slimdizzy

Senior Member
Sep 2, 2008
782
233
0
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
New images look way better. Thnx!

Sent from my One X using xda premium
 

denversc

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

didopicha

Senior Member
Aug 8, 2006
53
8
0
Varna
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.
 

denversc

Senior Member
Jul 1, 2012
428
320
0
Kitchener
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.
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://forum.xda-developers.com/showthread.php?p=35234848#post35234848.
 
  • Like
Reactions: didopicha

didopicha

Senior Member
Aug 8, 2006
53
8
0
Varna
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.
 

denversc

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

cell30

Senior Member
Jan 28, 2012
139
87
58
I'm also experiencing the issue of the settings not sticking on boot. Was this ever resolved?

Sent from my One X using xda premium