yashsingh1/xdaforums huggingface dataset:
[HTC One X] denversc:
Attached is another (sorry for posting so many!) test version of the app, v1.0.7-DimTest5, that perfectly supports the "dim" setting across screen power off then back on, at least on the HTC One X+, which has the same quad-core Tegra3 chipset as your endeavoru International One X. Thank you TToivanen for testing all these test versions and providing your feedback! If you or anyone else can load this test version of the app and run the two quick tests below that would be very useful:

Click each of the 3 brightness buttons in the main UI; verify that the brightness level immediately changes accordingly

Click each of the 3 brightness buttons in the main UI, press the power button to turn off the screen, then press the power button again to turn the screen back on; verify that the capacitive button backlight is the same brightness that was selected prior to turning the screen off

Reminder: This "test 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.
[HTC One X] TToivanen:
You're welcome dude!

Thank you for providing us apps like this. ;)

Works 100% :good:
[HTC One X] vcrp94:
Doesnt work on my One X if i select dim it still keeps the brightness high, and somehow the notification LED stays ON when i select a brightness. :(

Edit: Tried with Dim_test4 and still the same, no diference i brightness between on and dim and the notification LED stays on.

BTW i'm on ARHD 17.1 JellyBean...
[HTC One X] denversc:
Thanks for testing this out so quickly!

If no other errors come up, expect an official v1.0.8 app update within the next week. I have a few other minor fixes to squeeze into v1.0.8 (see the issues list on Google Code if interested).

If anyone else tests out

please report your findings. The more people that say it works, especially on various ROMs, the more confident I will feel to release v1.0.8 and say "it works!".
[HTC One X] denversc:
It changes the notification LED?? :confused: That's odd... I'll have to think about that one. The notification LEDs are controlled in a very similar manner as the capacitive buttons backlight but I cannot see how it would "accidentally" affect the notification LED instead of the backlight brightness.

A couple of questions for you, just to make sure I understand what you are experiencing:

1. Does "off" and "bright" immediately set the capacitive buttons backlight brightness to the expected level?

2. Does "dim" immediately set the capacitive buttons backlight brightness to on, but not as bright as the "bright" setting?

3. After setting the brightness to "off" or "bright", does the brightness level persist when the screen is turned off then back on?

4. When you set the brightness to "dim" then turn the screen off then back on the brightness is actually set to "bright" instead of "dim"?

If you get curious, you can try and experiment with what the app does. Just start a terminal, run "su", then "cd /sys/class/leds/button-backlight". Then, try the following:

Set brightness to "off":

chmod 666 brightness currents
echo 0 > currents
echo 0 > brightness
chmod 444 brightness currents

Set brightness to "dim":

chmod 666 brightness currents
echo 1 > currents
echo 1 > brightness

Set brightness to "bright":

chmod 666 brightness currents
echo 2 > currents
echo 1 > brightness

Thanks!
[HTC One X] vcrp94:
1- Yes "off" and "bright" work as expected and immediately (although when i select bright the notification LED also comes on).

2-"dim" turns the capacitive buttons on as bright as the "bright" setting.

3-Yes when i turn off the screen and turn it back on it does persist but always "bright" and the notification LED doesn't turn on anymore :good:

4-It seems always "bright" to me doesn't matter if i select "dim" or "bright".. :confused:
[HTC One X] denversc:
Okay, thanks for clarifying the behaviour you are experiencing. That is absolutely bizarre that the notification LED is affected by changing the capacitive buttons backlight! Are you able to run any of those "echo" commands to see what happens? You can do it either by connecting your device to your PC via the USB cable and running "adb shell" on the PC or by installing "Android Terminal Emulator" from the play store.

Here is the specific command sequence of interest to me. I'm especially interested to see if this affects the notification LED as well. First turn off the capacitive buttons backlight from the app, then start your shell and run these commands:

su
cd /sys/class/leds/button-backlight
chmod 666 brightness currents
echo 3 > currents
echo 1 > brightness

I understand if you are unable to do this, but if you can it would be incredibly useful information :)
[HTC One X] vcrp94:
Just did those commands and the notification LED wasn't affected and the buttons turned on. (I also tried echo 2 < brightness and same brightness as echo 1)

Edit: I just tried the previous commands that you sent to me (off, dim and bright) and i can say there is no difference between dim and bright whatsoever :/
[HTC One X] denversc:
Okay, thanks for testing that. Now how about the sequence of commands below. It's slightly different than the previous one and is *exactly* what the app is doing:

su
cd /sys/class/leds/button-backlight
chmod 666 brightness currents
echo 1 > currents
echo 60 > brightness
echo 1 > currents

Note that the integer written to the "brightness" file, as far as I understand, does not matter: it's either 0 for off or any other value for on. On the contrary, the value written to "currents" controls the brightness: 1 is dim, 2 is brighter, 3 is brighter still, and so on and I'm not sure what the maximum value is.

Could you try putting these 6 commands into a .sh shell script named "script.sh" then run "sh script.sh" from the terminal? Maybe it makes a difference if they are run in rapid succession as opposed to typing each one in and running them manually. Thanks!
[HTC One X] vcrp94:
Sorry but i have no experience in making .sh shell scripts nor do i know how to make one :( (It seems the notification LED turning on is random.. It hapenned again a while ago while selecting "dim" i turned off the screen turned it back on and it disapeared)
[HTC One X] denversc:
No problem. I created the sh script for you and attached it. Simply do the following:

Download the attached ZIP file

Extract the one file from the ZIP file, setbright.sh, into the root folder of your SDCard

Start Terminal Emulator

run this command: cd /sdcard (I think... could be slightly different)

run this command: sh setbright.sh 1

You can try replacing "1" with "2", "3", and so on to set the brightness level.
[HTC One X] vcrp94:
Strange nothing happens.. :eek:
[HTC One X] *elmo*:
For me working OK :good: Good job mate
[HTC One X] DutchDanny:
Will test..

and add it to my BinDroid rom if it feels good.

Tnx for your work
[HTC One X] denversc:
Thanks for testing it out :)
[HTC One X] denversc:
Very cool! Nobody's ever included the app in a ROM before :o
[HTC One X] denversc:
Is there any output from the command when you run it? Especially, are there any errors reported?
[HTC One X] TheJoker79:
Great app, have tested dimtest5 as well:

1. off, dim and on work directly

2. off, dim and on work after turning screen off and on again

3. I expect the settings to stick after reboot as the market version works like a charm

4. unfortunately there is no difference in brightness between dim and on :(

5. no issues with the notification led whatsoever. It stays off as it's supposed to be

I'm on ARHD 17.1, with no special mods except battery% and a blue theme.
[HTC One X] BBs19:
I don't really know for what I need this :D but i tested it, it's working fine.

Thanks :)
[HTC One X] denversc:
Thanks for these detailed test results. Does (3) mean that the brightness setting is not sticking after reboot for you? If so, which brightness settings did you observe not sticking after reboot?
[HTC One X] denversc:
Thanks for testing it out! For me, the app is more for aesthetics than practicality. For example, when watching a YouTube video in full screen in a dark room the button backlight is so bright, screaming in your face. Also, I find that the default brightness setting in general is a bit too bright for my liking, so I like to use "dim" for daily use.
[HTC One X] TheJoker79:
Sorry, should have explained that one better.

I meant I haven't tested a reboot.

The market version works perfectly on boot, so I didn't see any need for testing reboots with this version :)
[HTC One X] DutchDanny:
There is the default option, what keeps the stock settings.

The 2 other options are: ON & OFF

There is no dim, or something in between.

To be usefull I would like more options between ON & OFF

If you can manage, I'll help you with design (If you like)

Cheers,

Keep it up
[HTC One X] TToivanen:
The latest test version already has that feature. :D
[HTC One X] denversc:
Another test version of the app, v1.0.7-DimTest9, is attached. It is another attempt at getting the "dim" setting to work correctly. You may notice the buttons backlight studder a bit when powering on the screen, but it should settle into "dim" or "bright", as selected in the app.

If able, please load it and test the following scenarios:

Click between the "bright" and "dim" buttons repeatedly; ensure that "bright" is indeed brighter than "dim".

Select "off" in the app; power screen off; power screen on; ensure that the buttons backlight is off

Select "bright" in the app; power screen off; power screen on; ensure that the buttons backlight is on at full brightness

Select "dim" in the app; power screen off; power screen on; ensure that the buttons backlight is on, but dim

If you've been following this thread, you know that there have been a lot of conflicting reports as to the "dim" setting working and not working. Keep 'em coming... cuz I REALLY want it to work 100% of the time for everyone! Please be sure to mention the version of the app you have loaded (ie. v1.0.7-DimTest9) and the name of the ROM you are running.

Thanks everyone for all this help testing the app out! It is very much appreciated.

Reminder: This "test 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.
[HTC One X] Tabtoub:
no hardware hack possible to dim buttons on endevourU ? :p it makes me mad to not be able to dim the cap buttons :/
[HTC One X] denversc:
In theory, and based on the kernel source, it is definitely possible. I've been posting test app after test app trying to find just the right combination of actions to make it work reliably. I don't have a device myself to test on (I'm in Canada with the dual-core model, which is completely different under the hood from the quad-core model) so I'm 100% reliant on feedback in the forum. That being said, if anyone has some Android dev skills and doesn't mind messing with the source code and testing it out, I'd be glad to work with you... pm me :)

You could be the first to report your results from testing v1.0.7-DimTest9 if you want ;)
[HTC One X] Tabtoub:
Thanks for ur hard work; yes I tested the dimtest9 version and there is no problem when turning off the screen and turning it back on, the buttons state dosen't change (if they are off they stay off and same thing for 'on' state) but the dim feature isn't working, it's the same level of brightness on the dim and bright state :/ when hitting the dim icon, they just blink and return to full bright.. I'm on endeavourU running Sense JB Rom with stock kernel (which source is not yet released..) hope it helps
[HTC One X] denversc:
Thanks for that info. I was hoping the tegra3 international one x worked the same as the tegra3 one x+ (on which the dim setting of this test app *does* work) but that is proving to not be the case... a least not for everyone.
[HTC One X] TheJoker79:
Still on ARHD 17.1, might give ordroid a try this weekend. Will test on ordroid as well if I install it...

1. I see no difference between dim and bright

2, 3 and 4. All the settings stick after screen off and on again: off stays off, dim stays dim and bright stays bright. Keep in mind though that i cannot see any difference between dim and bright.

Kudos for trying mate, hope you'll find the right combo for dim eventually :)
[HTC One X] Tabtoub:
I will flash a one x+ based rom like maximus 5.0 and test this last version, just give me 10 minutes

---------- Post added at 11:44 PM ---------- Previous post was at 11:16 PM ----------

Dim not working also with one x+ based rom, on one x international variant! tested the dimtest9 version! :( :(
[HTC One X] denversc:
All right. Too bad. Thanks so much for checking. This is very useful info. I guess I will just have to think about this some more...
[HTC One X] Tabtoub:
yes, there is surely a workaround to dim buttons because when you switch off the screen, the buttons didn't go off suddenly, they dim gradually until they go off, so physically there is no problem, it's only a software matter and I'm sure u will find how to dim them ! :p
[HTC One X] MikeS.:
Still not working, but if you connect external power and press the dimm button, the red and green light are activ at the same time, so it shines light orange. LOL :D
[HTC One X] TToivanen:
Dimtest9 works fine for me.

Sent from my HTC One X
[HTC One X] *elmo*:
For me also :thumbup:

Sent from HOX with ARHD 17.x
[HTC One X] Tabtoub:
The dim feature works?? you can see the light dimmed? u are lucky

On which rom are you?
[HTC One X] TToivanen:
'official' CM10 along with NCX kernel. :good:
[HTC One X] Tabtoub:
Hummm, so the problem is with Sense roms or with Stock Kernels!

I'lll try now an ICS sense rom with Ncx kernel and let u know if it works.

EDIT: I tried official cm10 with ncx kernel and Slimbean 3.1 with Bricked 0.7 kernel with No Luck :/

I think I know the reason, I'm on new hboot (1.36) which needs a repack for the kernel with Mdj's ramdisk in order to boot aosp roms, maybe that could be the reason?!

On which hboot you are TToivanen ? because I installed exactly the same configuration as you and it didn't work, and we both have HOX international variant (endeavouru) so the only difference I think is the hboot, so the repacked kernel..
[HTC One X] TToivanen:
I'm on 1.12.

Let's just hope we get the kernel sources quickly, so these kernel difficulties will be history. :)

Edit: Confirmed working on AOKP 4.2.1 also. :D

Sent from my HTC One X
[HTC One X] TheJoker79:
Just tested dimtest 9 on ordroid 12.0 with hboot 1.39.

unfortunately no difference between dim and bright :(

other than that the app works fine.
[HTC One X] Tabtoub:
I wish I could return back to old hboots :/ dimming capacitive buttons is way more important for me than using sense JB Roms (the reason why I upgraded my hboot)
[HTC One X] TheJoker79:
yeah... pray that Santa talks some sense into HTC so they give us s-off
[HTC One X] denversc:
Thanks everyone for your feedback on v1.0.7-DimTest9. There are obviously some people for whom the "dim" setting works and others for whom it doesn't. Furthermore, there doesn't seem to be any pattern, such as a specific ROM or kernel, which causes this non-behaviour.

So my plan is to release the current "dim" behaviour in official v1.0.8, even though it doesn't work for everyone. To help further investigate issues with people for whom dim doesn't work I'm going to add a "Report Issues" screen that gathers together useful info, such as app version, ROM and kernel versions, and whether or not certain relevant files exist. Then, users can either take a screenshot or save it to a file and send that info to report issues in a standard way.

I had originally hoped to have v1.0.8 ready in a few days from now, but due to the Christmas holidays and other personal commitments in the new year, the first or second week of January is a more likely eta. In the meantime, if v1.0.7-DimTest9 works for you... there's no reason not to stick with it :)
[HTC One X] Tabtoub:
The difference between ppl for whom it works and those for whom it doesn't, is the hboot version and of course the kernel. So when the source code of the kernel will be released, I think it will work for everyone..
[HTC One X] denversc:
It seems so strange to me that hboot would make any difference at all. But you're right that the evidence supports that theory. Kernel source will indeed help :)
[HTC One X] 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!!!
[HTC One X] *elmo*:
Working ok on new hboot and ARHD. Thanks

Sent from HOX with ARHD 18.x
[HTC One X] TToivanen:
Works fine.

Sent from my HTC One X
[HTC One X] Tabtoub:
the dim function is working on new hboot? are you sure there is a difference between full bright and dim functions?
[HTC One X] tessut:
On my one X there is no change on maximus 12
[HTC One X] denversc:
Thanks for your replies. The "dim" brightness setting does not work for all users. For some, both "bright" and "dim" set the brightness to "bright". I have not been able to figure out why... could be ROM, kernel, hboot, or even hardware.
[HTC One X] *elmo*:
I'm SURE :)
[HTC One X] lesscro:
I have a maXimus 12... and work on this rom !
[HTC One X] Tabtoub:
Hope it's not a hardware problem, but I doubt it could be, because when switching off the screen, I can see the buttons dimming until turning off so from hardware side I think there is no problem.. could be wrong of course
[HTC One X] 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
[HTC One X] TToivanen:
Hi. Sorry to say this so late, but you mis-typed xda-developers in the credits.
[HTC One X] denversc:
Haha whoops! Thanks for pointing that out! I will fix that in the next release.
[HTC One X] shree.cse:
Thanks for the update mate. Just updated to 1.0.8, when I try any other option other than complete dim I.e, first one, the notification led was also on. Am I doing something wrong.
[HTC One X] harshalkatakia:
I seem to have just two dim options.
[HTC One X] A380:
Yeah, there seems to no difference between full or half brightness. Endeavoru with Sense based rom. Hboot 1.39.
[HTC One X] denversc:
Very strange. You are actually the 2nd person to report this behaviour to me. It is very puzzling! I've created an issue in Google Code to track its investigation: https://code.google.com/p/hox-cap-butn-brightness/issues/detail?id=18

In the meantime, could you add the following information either to the issue in Google Code (preferred) or reply to this thread:

1. The contents of the application's Settings -> Debug Information screen

2. A link to the ROM you are currently running

3. A link to the kernel you are currently running (only if you are using a custom kernel)

Thank you.
[HTC One X] denversc:
Which version of the app do you have installed (check the application's "About" screen)? Dim was added in v1.0.8 and if you are running v1.0.7 you will only have "off" and "bright" buttons on the main UI of the application. If you are indeed running v1.0.8 could you copy the contents of the application's Settings -> Debug Information screen and post it in your reply? Thank you.
[HTC One X] denversc:
Thanks for reporting. Could you reply with the contents of the application's Settings -> Debug Information screen (you can use the "copy" button in the screen's top-right corner)? I'd like to gather information from as many users that experience this issue as possible in order to make some guesses on the root cause.
[HTC One X] TToivanen:
Reporting that the app also works on hboot 1.39 and ARHD 18.0, but the green notification light also lights up when setting brightness to either "bright" or "dim".

"Dim" and "bright" settings have a difference and the settings persist through screen off and also reboot.

Some feature suggestions:

Ability to select if the app echoes to "brightness" or "lut-coefficient"

Setting custom values for the "bright" and "dim" buttons.

Application Version: 1.0.8-Beta1

Detected Device: HTC One X (endeavoru)

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

/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: Yes

File Permissions: Read-Only

File Contents: 0

Build.BOOTLOADER: 1.39.0000

Build.DEVICE: endeavoru

Build.DISPLAY: JRO03C

Build.MANUFACTURER: HTC

Build.MODEL: EndeavorU

Build.PRODUCT: endeavoru

Build.VERSION.RELEASE: 4.1.1
[HTC One X] Tabtoub:
So the problem is hardware problem unfortunately.. unlucky me
[HTC One X] nemer12:
also works on insert coin 15.0.1
[HTC One X] shree.cse:
I am on Renovate 13.2.0 on stock kernel, just click on my banner for the link. I am attaching the screenshot. Thanks for the reply mate.