yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] GermainZ:
I did my best to keep as low as possible: the sensor is only checked when the notification is triggered and every 30 cycles after that.

I did some testing and the drain was around 6.5% per hour on my device (tested for around 7 hours). Note that was before I fully implemented the battery saving features, so it will probably be less. The used settings were: 1s on, 1s off. (current default is 1s on / 4s off)

But then again, it all depends on your device. Obviously, having a kernel that supports underclocking (e.g. setting your frequencies to 156Mhz-1Ghz with a governor that doesn't lock the frequency to the max) helps, since your device will always be awake if ButtonLED is active (active as in turning the LED on and off, not just running in the background).
[Android Apps and Games] .xxx.:
Thanks a tonne man.. I was waiting for such an app for like months now.. glad it came and yeah fyi I have subscribed to the thread and waiting for more features and updates..

Sent from Hell!!

---------- Post added at 11:08 AM ---------- Previous post was at 10:52 AM ----------

Resizing for hdpi phones is needed hehehe..

And May I ask where the brightness file is generally located ? Because I wasn't able to make the app work for some reason :/

Sent from Hell!!
[Android Apps and Games] GermainZ:
Autolocate didn't work?

It depends on the device and ROM used, really. In the first post, I posted two examples (S5830 and S5830I).

Judging from your signature, I'm guessing you're using the Galaxy S3. After some googling, I think this file will work:

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

If not, well... Try asking on your device's forum and report back once you find it :)
[Android Apps and Games] .xxx.:
Auto locate did not work man. When I tried the test, it gave me this reason.

My decide is LG optimus sol with cm7.

I would glad to see a reply soon. Eager to make it work.

Sent from Hell!!
[Android Apps and Games] GermainZ:
Try this:

Tap the "Browse for the button brightness file" button

Go to /sys/class/leds/button-backlight/

Tap the "brightness" file

Test

If that doesn't work, try the same with /sys/class/leds/button-backlight/device/leds/button-backlight/ in step 2.
[Android Apps and Games] .xxx.:
Man!!!!!! You are a life saver.. Thanks a lot.. I got the file.. tested the button led light.. and now looking forward for real time notification. :)

Sent from Hell!!

---------- Post added at 12:12 PM ---------- Previous post was at 12:05 PM ----------

Okay. So, here is the deal.

In test mode it works like a charm. But in real time notification, it won't glow the soft key light. :(

Sent from Hell!!
[Android Apps and Games] GermainZ:
Did you enable ButtonLED in Accessibility?

If you did, check ButtonLED's logs. Do note that ButtonLED will only work if your display is off, and will stop notifying you once you turn the screen on.
[Android Apps and Games] .xxx.:
I have enabled it in accessibility.

Buttonled log looks normal to me. It catches the going processes.

Yeah, the display was off for a long.time and there were missed calls but soft keys never glowed :/

Sent from Hell!!
[Android Apps and Games] GermainZ:
What do the logs say

Normally, it would be something like this:

14:57: Stopped (screen turned on; battery: 87%)
14:56: Sleeping for 300 s (proximity detected; battery: 87%)
14:51: Sleeping for 300 s (proximity detected; battery: 87%)
14:51: Missed Call (processed; battery: 87%)
14:51: Missed Call (detected)

Also try setting a higher "on" delay, just to make sure it's not turned off too fast.
[Android Apps and Games] Typooni:
Thanks for great application!

Sadly I cant get it to work on my rooted stock 4.0.4 Galaxy Note. Also manually searching files is painfully slow, because everytime after "Loading" it displays only black screen and I have to press back and then open manual search again to continue...

These are the "brightness" results ButtonLED finds automatically:

/sys/devices/platform/s5p-dsim.0/s6e8aa0/backlight/panel/brightness

-obviously panel backlight brightness setting, ButtonLED makes the screen brighter and then back to normal when tested, doesnt really help :D

/sys/devices/platform/s3c-sdhci.2/leds/mmc1::/brightness

-doesnt do anything when tested

/sys/devices/platform/s3c-sdhci.3/leds/mmc2::/brightness

-doesnt do anything when tested

/sys/devices/platform/leds-max8997/les/leds-sec/brightness

-when tested ButtonLED turns camera flash on and off, doesnt really help :D

/sys/devices/virtual/sec/sec_touchkey/brightness

-doesnt do anything when tested

I can find some more "brightness" settings from sys-folder using Terminal Emulator but none of them work. Maybe it has something to do with how the program works. Maybe it doesnt support flashing capasitive buttons on Galaxy Note?
[Android Apps and Games] GermainZ:
It's required to be able to detect notifications.

Thanks. One user actually PMed me and after checking the logcat I told him to add READ_CALL_LOG but it didn't do any good for him, so I suppose it was something on his side.

Also, can you try with just READ_CALL_LOG? The logcat says one of the two permissions should be enough, and considering it doesn't write anything, READ_CALL_LOG should work alone. Thanks again.

EDIT: The normal APK, if it doesn't FC, won't be able to detect notifications because Accessibility settings were changed from ICS- to JB. Exporting the app again using Tasker for JB (SDK Version: 16) makes it work.

Try:

echo x > /sys/devices/i2c-0/0-0040/leds/button-backlight-rgb1/brightness

Replace x by 0, 100, 255, etc (anything between 0 and 255). Do you see a difference in the light's intensity?

The brightness file could be named differently, or you might have installed a BLN Kernel (not sure if the Note has one).

Manual search is slow indeed, I'll try seeing if using shell commands instead of the built in Tasker actions to list files is faster.
[Android Apps and Games] claireth:
hello.

found this app,and i wanted to give it a try in my Samsung SIII mini (cause of lack of notification led) but it seems that i cannot get it to work...

automatically it does not detect any path like the examples,so i started to search it manually,but no luck till now!!

anyone else with the same phone that knows,what is the correct path?

thank you in advance.
[Android Apps and Games] Keland44:
nice workkkk since getting a sgs3 coming from a sgs1 i always missed bln even though i do have a led notification on my phone now. Can't wait to see the progress of this app keep up the good work.
[Android Apps and Games] gabling23:
does it affect much the battery duration?
[Android Apps and Games] GermainZ:
Does the FAQ on the first post help?

Thanks :)

Your phone doesn't go into deep sleep when the LEDs are flashing. That's all.

It's hard to say how much it affects the battery, as it depends on your device, kernel (and kernel frequencies), how many notifications you get and how many of them you ignore, etc.

The best answer is: try it.
[Android Apps and Games] afwolfpacked:
Just installed on my cm10 linero optimized galaxy exhibit 2 4g and works flawlessly. Many thanks.
[Android Apps and Games] doctor1991:
I've installed in my Lg Optimus Black with ICS stock ad root but don't find the path for the led, don't exist sys/devices/platform/bcm...... wer's the adress? thanks
[Android Apps and Games] KaylordTheuZ:
Tried the latest beta build for jb on my Nexus S (jellyShot + marmite kernel)... And... it doesn't work. So far, it seems it auto-binds to a wrong brightness file but cannot change it manually as every time I try to browse from ButtonLED, I get a "Loading..." screen, then the correct screen for a fraction of second and then... black screen and a message: Error:List Files: File not found: /storage/sdcard0/ %DIR_PATH

Any idea?

Thanks, and keep up with the good work :good:
[Android Apps and Games] GermainZ:
That was only an example.

If Auto Locate fails to find anything, try reading the last few pages for more examples. Also read the FAQ on the first page.
[Android Apps and Games] doctor1991:
Auto Locate don't work i try with manual but don't work too, any suggestion?
[Android Apps and Games] kaarburo:
Sorry, there is a version for Galaxy S CM 9.1?

Inviato dal mio GT-I9000 con Tapatalk 2
[Android Apps and Games] mrakattack:
Noticed that this app works, but causing other apps like browser xda etc to fc
[Android Apps and Games] Dillby777:
I added in "READ_CALL_LOG" initially when exporting and i still got the error so i re-exported it adding in "android.permission.READ_CALL_LOG"

as well as "WRITE_CALL_LOG" and "android.permission.WRITE_CALL_LOG" and it worked for me, and i was exporting it as ver. 16.

the normal apk did work for me just fine, although it didn't detect the notification until i woke up the phone first then it was able to detect it.

I tried the normal apk once i was able to get my exported version working.
[Android Apps and Games] andresv3:
looks promising

to expect it to work in JB: Crying:: Crying:: Crying:
[Android Apps and Games] Dillby777:
what phone are you trying to run it on?
[Android Apps and Games] UnholySpirit:
Hi guys, i'm trying to get it work on my nexus s JB stock (with root access obv). But i can't find the brightness file. Any advice?
[Android Apps and Games] Dillby777:
did the auto locate find any brightness files?
[Android Apps and Games] UnholySpirit:
No.
[Android Apps and Games] Dillby777:
have you tried to find the file manually using say droid explorer for pc or a root explorer on the phone?

it'll be easier to locate it instead of using the app's file browser function.
[Android Apps and Games] lilmikey201:
can we see a video
[Android Apps and Games] GermainZ:
Not sure. %DIR_PATH is a global variable. Wait for the next release, I'm working on fixing manual browsing.

Read above :)

Did you try the APK linked to in the first three lines?

Works fine here. A logcat might be helpful.

True :D Fixing it soon.

Of the LEDs blinking? Maybe.
[Android Apps and Games] SREEHARI.NAIR:
Thank You

Thank YOu :good:
[Android Apps and Games] plvigo:
Galaxy S3 Mini

I installed you excelent software on a Galaxy S3 Mini (I8190); I followed carefully your istructions, enabling buttonled in accessibility.

I tested the file brightness and it works without any problem.

In the log file, it has been detected the notifications.

I also increased duration of the led to 10s.

Nevertheless buttonled doesn't react to my notifications.

Many thanks for your kind help.
[Android Apps and Games] chachoi:
Has anyobe tried this yet on a samsung nite running on stick ics?
[Android Apps and Games] claireth:
where is the /path of led?can you please post it,so to see if its the same i've found?

i also tried in my SIII mini and it doesnt work...guess we have to wait a little bit!
[Android Apps and Games] ILoveAndroid77:
Battery drain

Hi... what about the battery drain? Does anybody else experience this?

https://www.dropbox.com/s/rsemn4kbw09ll8v/Screenshot_2013-01-16-14-10-05.jpg

https://www.dropbox.com/s/hxecr8r93lpmyxt/Screenshot_2013-01-16-14-14-08.jpg
[Android Apps and Games] GermainZ:
In the logs, can you see ButtonLED processing the notification? It will show something like:

11:14: Notification (detected)
11:14: Notification (processed; battery: 87%)

(this is kinda stupid but just to make sure... your screen is off when you receive the notifications, right?)

It keeps your phone awake while the LEDs are blinking, so it all depends on how long it takes you to notice, how many notifications you receive, and so on.

Also, I just finished testing a new method to browse files. It still looks the same but is now as fast as my other file explorers (e.g. FX, Solid Explorer, Root Explorer, etc).

It does require busybox, but it shouldn't be a problem.

I'll try getting it all ready by Friday.
[Android Apps and Games] ILoveAndroid77:
I thought so. But for sure, the LEDs were not blinking for nearly 3h (or about 50% of the time on battery).

I think about 15min could be possible..

That's why I wrote. Maybe the keep awake lock is not released fast enough, or not at all...?

No offense, just wondering :)
[Android Apps and Games] GermainZ:
It's actually not released, but I don't think much battery is used while it's waiting. I'll look into some alternate ways. :)
[Android Apps and Games] plvigo:
/sys/devices/plattform/i2c-gpio.7/i2c-7/7-0020/leds/button-backlight/brigtness

---------- Post added at 09:00 AM ---------- Previous post was at 08:40 AM ----------
[Android Apps and Games] GermainZ:
And you don't see anything? The only thing I could think of is that your device's capacitive buttons only light up when the screen is on...

Try running this script (in a terminal emulator, or even better, using ADB) (only choose one method):

=> Terminal emulator:

First of all, type this and hit enter:

su

Then run this:

while:; do echo 255 > /sys/devices/plattform/i2c-gpio.7/i2c-7/7-0020/leds/button-backlight/brightness; done;

And turn off your screen. What do you see? (after a bit, turn your screen on again and break the script)

=> ADB:

Turn off your screen after connecting it to your PC & launching adb. Type:

adb shell "su; echo 255 > /sys/devices/plattform/i2c-gpio.7/i2c-7/7-0020/leds/button-backlight/brightness"

Do the LEDs light up?
[Android Apps and Games] plvigo:
I couldn't be able to do this job! I attached the screenshot. By the way, when I tested the light inside the software all the button were working fine!

Many thanks for your kind help.
[Android Apps and Games] GermainZ:
I made a slight mistake (forgot a space), but you made two.

This should work:

while :; do echo 255 > /sys/devices/platform/i2c-gpio.7/i2c-7/7-0020/leds/button-backlight/brightness; done;

Notice the difference between : and ;.

I can't check if the path is actually correct, I just copied/pasted the one you posted (and corrected a grammatical error :D), so please make sure you're writing everything correctly.

Also, you only need to type su once at the beginning, not every time.
[Android Apps and Games] kaarburo:
Hello, I tried it all. I hope it will work, I use CM 9.1 and Semaphore kernel. If you can not, thanks anyway.

Inviato dal mio GT-I9000 con Tapatalk 2
[Android Apps and Games] vonuzu:
I tried this with my galaxy s3 mini and the button leds light up and stay that way as long the screen is on, when i lock the screen the button leds aren't on and when i unlock the screen they are on again. And just to be clear, i have stock jb 4.1.2 rooted on this device.
[Android Apps and Games] ldeleeuw:
Confirmed working on LG L5 (E610), which has no notification LED.

It wasn't easy to get it working, but now it's working. (I'm not saying this to attack the developer, but because my way to get this working may help others)

I had to search manually for the brightness file. The file is located at "/sys/devices/platform/pmic-leds/leds/button-backlight/brightness".

* Manually search was working very well. This is how I found the file:

1. I had to select a dir, wait for a 'new' window to open

2. Then press back button

3. Open the manual file browser again to explorer the just selected directory.

4. Select the next dir from the path and repeate these steps untill the brightness file is found. (I hope the explanation is clear enough).

To enable ButtonLED in accessibilty I had to do reboot after pressing enable, because the setting woudn't stick otherwise.

'Permanent notification' needs to be set 'on', in order to work on this device.
[Android Apps and Games] gerardarmando:
thanks

Thanks a lot..
[Android Apps and Games] mrakattack:
When installed it kills browser and xda, after uninstalling apps work fine, can I get the debug apk to see why these apps are fcing?
[Android Apps and Games] plvigo:
+1

I am using a JB JZO54K.I8190DXALL3 rooted.
[Android Apps and Games] GermainZ:
Looks like there's some sort of kernel level lock.. Can't do much about it, sorry.

I'll try uploading it along with the rest. ROM?

Ah, you're using CM9. Thought you were using CM10. The regular version should work fine; what is working, and what isn't working?
[Android Apps and Games] ekoandrew:
Can this app add screen resolution of 1280x720 for Padfone 2 on 4.1.1

Currently there are blank gap area plus can't get passed beyond first area which ask to select path for brightness.

Hopefully this screen resolutions can be implemented.

Thank you
[Android Apps and Games] GermainZ:
Doesn't checking ButtonLED under aspect ratio correction fix that?
[Android Apps and Games] Yezariael:
too much power consumption

I would really like this app, but uses much too much battery :(

100 % 2 hours ago, nothing done with the smartphone but in standby.... HTC One X+
[Android Apps and Games] GermainZ:
In 2 hours, around 5% of your battery was consumed.

ButtonLED is responsible for ~1.4%. So that's ~16% of your battery over 24 hours, if ButtonLED is active all the time.

How is that bad?
[Android Apps and Games] mrakattack:
Rom is stock deodexed 4.0.4
[Android Apps and Games] Yezariael:
My HTC uses about 20 % to 30 % in 24 hours without this app, with this app it would be more than 40 %... quite a difference! And all of this time the app does nothing at all.... if it's been used and it starts using the LEDs it will use more than this... instead of 5 days of standby I would get 2....

sorry, but no way :( notification of missed calls doesn't help if I can't call back because the battery is empty ;)

I would really love this app if the power consumption can be reduced :good:
[Android Apps and Games] GermainZ:
Wait, it's not supposed to do anything at all except for when notifications come in (does a simple check), and when the screen turns on and off (also does simple checks).

When the LEDs are actually blinking, then it would consume battery/CPU usage.

So unless you received ~5000 notifications (that's a random number :)), I think you should compare that app's stats with something else (the stock Battery usage screen).
[Android Apps and Games] Yezariael:
That's correct, it works absolutely without any problems :) It's just started and works with icon displayed (so it's not going to be killed automatically), if I miss a call it starts blinking until I unlock the screen...

Attached the stock power consumptions, there it is even worse...
[Android Apps and Games] GermainZ:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

I don't know how battery consumption is measured by the android system but on my device, making a 1-2m Viber voice call shows its battery consumption around 90% when my battery is at ~33% (and was at ~35% when I made the call), so I'm guessing it's not very accurate and only takes into consideration major CPU usage/wake locks.

If you click on ButtonLED's name on that screen, you should see more detailed results. Can I see them? If it's not only CPU usage and wake locks, then there might be a problem.
[Android Apps and Games] Yezariael:
That's right, but I can see which app uses the most battery... and if any installed app uses more than 2 to 5 % it uses too much, system tasks should have used most if only in standby and screen off...

Another problem: Last night ButtonLED turned on because of "new updates available" notification by play store. I think this should not be the case! So Button LED was blinking the whole night from 23:30 to 6:30 this night it killed about 35 % from my battery (85 % down to 50 %) :(
[Android Apps and Games] alirezaafkar:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

Some one tried it on SGS ll ?

It doesn't work for me
[Android Apps and Games] tribual:
Has someone testet in on Galaxy S+ (i9001)?

Can't get it working.

ROM: 4.1.2

Greetz

tribual
[Android Apps and Games] Bubble-be:
On LSJ I can't locate a brightness file other than the backlight. And any of the other led files don't work.

So no, not yet.
[Android Apps and Games] xeGox:
R: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

+1

Device: Samsung Galaxy S Plus (I9001)

ROM: PAC-man rom 18.0.0 by camcory

Kernel: TWRP TeamWin Recovery Project 2.2.1

USING XDA-APP
[Android Apps and Games] pilotn:
R: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

+1
[Android Apps and Games] GermainZ:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

It works for all notifications. You should be able to add "Update Found" or something like that in the exceptions (checks the logs).

Sleep hours should take care of battery drain over the night.

Also, I've read a bit about how Android distributes battery usage in that screen, and ButtonLED, because it keeps your device awake, will actually get a 50% additional share of whatever other apps consume (considering the apps may not have been working of the device was asleep).

For those who can't find the brightness file, does the FAQ help?
[Android Apps and Games] Yezariael:
Ah, thanks for the hint! Maybe that is my problem: I thought it would only notify me about missed calls (and messages if on), but in fact it is turned on with every single task (even if it's without notification). So I use LUX for brightness control and ButtonLED reacted with the lux brightness check (stupid, but lux does this check even if the screen is off, can only be seen in ButtonLED logs... :silly: )... I now configured it as exception, hope it will help battery drain :)

How can i configure sleep hours? Can't find this option in ButtonLED...
[Android Apps and Games] saboture:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

1.3.1 hdpi is working without issue on my HTC EVO 4G LTE, running super jelly 4.1.2 jb. This is pretty awesome!

Sent from my HTC EVO LTE
[Android Apps and Games] Bogdanorigami:
Best app ever!!!!!!!!!!!!!!!

This app is incredibly useful and i could uninstall all my other apps , but not this one .

it runs perfect on my Galaxy gio AOSP ics

All :good: for you
[Android Apps and Games] GermainZ:
It's not implemented yet. I just finished adding it and trying to test it for a bit.

Just to know, are you using the normal APK or the one posted in the beginning of the post?

Glad you like it :D

V1.4 Current Changes (just a teaser; I'll try uploading it in the next few hours):

Manual search is as fast as other file explorers now; busybox must be installed.

Sleep start/end added (ButtonLED will not react to notifications during that time).

Confirmation added before removing exceptions.

Sometimes ButtonLED used to keep blinking the lights after the screen is turned on. Fixed.

I tried focusing on urgent issues.
[Android Apps and Games] Komsung:
Does this app work for someone on Sony Xperia Miro under Android 4.0.4?

I can't find correct brightess file. I found some, but during test my screen goes black and flashes central (red) led- not the two on sides. Later I can't wake up my phone.
[Android Apps and Games] GermainZ:
You probably selected your screen's brightness and ButtonLED set it to 0. Rebooting should fix it.
[Android Apps and Games] Yezariael:
Mea culpa!

I take back everything about battery drain! My own fault (as in most cases I guess...)

I took a close look to the log and excluded every notification I saw, now it works fine and doesn't drain the battery more than needed :good:

GREAT! :victory:

For convenience it would be great if there could be a list of logged notifications to choose from for exlucions list...
[Android Apps and Games] cdzo72:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

OK running an SGS II with Neat ROM XXLSJ (JB leaked) and havent found the file for the led buttons. Only reason I'm really using DorimanX kernel is for BLN...

So anyone with the same setup had any luck?
[Android Apps and Games] GermainZ:
Good to know :D

I actually thought about that before. It's pretty easy to add.

If you're using a kernel with BLN support, you don't have a button backlight brightness file. At least that's what someone said, quoting his kernel developer.
[Android Apps and Games] chokitodopoder:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

Working great on my Galaxy Tab P1010, going to try on my phone when I root it. Only feature I ask for is that it doesn't stop blinking when I turn the screen on and off again if there are still notifications left. Thank you very much and congratz on your amazing work!