yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] m0d:
The path for Samsung Galaxy Note is "/sys/devices/virtual/sec/sec_touchkey/brightness"

It switches on in part 2, but does not switch on when screen turns off.

I guess Note and SII - read this.
[Android Apps and Games] android_xcuj28:
works great on "Star B92M" Jelly Bean //Galaxy S3 Clone
[Android Apps and Games] dgaralon:
and EUSQue

OK. Now I undertsand better the app. I installed Tasker in my phone I took a look on the project after importing your xml. I will do some testing to check some "wait" alternatives. Tell me if I could help you to check something that you have in mind in my phone. If the battery drain problem is resolved it would be the best alternative for me. Thanks.
[Android Apps and Games] GermainZ:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Remove the second wait from the shell command (in the backlight task), as well as the goto action. Make a new task that does this:

- wait for %OFF_TIME

- perform task: backlight, if %RUNNING = 1

- call it 'wait'.

In the backlight task, add this at the end:

Perform task, 'wait', stop: yes.

Basically, the backlight task holds a wake lock, but calls the wait task when it's not blinking the LEDs (which doesn't hold a wake lock).

Considering Tasker sets an alarm to resume after the wait action, it shouldn't cause any problems. And it will probably greatly reduce battery usage.

I've been flashing test ROMs for the last few days and have been busy before that, so I didn't have much time to test it.
[Android Apps and Games] gerstavros:
Doesn't work on MTK6577 with Jelly Bean 4.1.1
[Android Apps and Games] android_xcuj28:
lie, works great on mtk6577 chip.. with jelly bean 4.1.2 or ics 4.0.4

my post here "works great on "Star B92M" Jelly Bean //Galaxy S3 Clone"

edit:

please update it GermainZ... cause its rly annoying when u get 1 sms and 3 hour later if u dont look at it.. battery is empty
[Android Apps and Games] GermainZ:
Does the FAQ help?

I'll try doing that in the next few days. Probably today or tomorrow.

So far, here's what I've added, unless I'm forgetting something:

Wakelock should now be released while the LEDs are off and ButtonLED is waiting;

Sleep timer is fixed;

Tapping on a log entry will give you the option to add that notification to the exclusion list;

I'm thinking about adding a check for root/busybox as well.

Anything else I should add? The only thing on my to-do list is the customizable patterns/landscape support, but I don't have much time to think about the first right now (I do have the important points figured, tho). As for the second, I don't think it has a high priority. Perhaps in the next release.
[Android Apps and Games] gerstavros:
Yes, i can read english fine ;) My problem was that:

Q: Auto Locate/File Browser isn't working!

A: Try installing Busybox.

I installed Busybox, but auto locate/file browser options did nothing (i also rebooted to check again). On my mtk6577 with ics it works fine. Anyway, now i sent the phone (i m a seller and i just wanted to install the app for the customer, as it's very usefull), but i d like to know a solution for the mediatek 4.1.1 roms
[Android Apps and Games] GermainZ:
I can't know you read it ;)

Didn't it do anything, at all?

If you can get hold of the phone again or reproduce it, let me know. If the logcat shows nothing useful, I'll send you a debuggable APK.
[Android Apps and Games] gerstavros:
now i don't have the phone so i can't check the logs. but it did nothing. maybe it was a problem with rom, not the app
[Android Apps and Games] Beef Incarnate:
got it working, love that now i can see notifications without turning on my screen, since the case blocks my LED on my Optimus G

one thing that would be great is a was to block certain apps (music, evernote, play store, etc) instead of having to use key words that might appear in some text messages
[Android Apps and Games] GermainZ:
Alright. Let me know if it happens again.

That's not possible using Tasker, sorry. :)

Now that I think of it, tho, it might be possible using some shell commands. Don't hold your breath, it probably won't be reliable enough for me to actually implement it.
[Android Apps and Games] Beef Incarnate:
if you could do it, that would be great, and im sure other people would love it as well. but if not, im gonna be turing my screen on every once in a while anyway out of habit
[Android Apps and Games] GermainZ:
Nah, not possible.

The only way to do it would be for me to specify commonly excluded apps -you won't be able to change them (unless you have Tasker and use the Tasker project instead of the APK).

If there's enough demand, I'll add a poll, and we'll see.
[Android Apps and Games] dgaralon:
I have executed some tests using Tasker because I can not generate an app. I export it as a apk but when I try to install it I get an error analyzing package or somethig similar....

I changed the tasks as you said but still I could see a wake lock , associated to the Tasker process, and android never went to deep sleep mode while the led was blinking. Then I unchecked the Keep Awake option in both task (Backlist and Wait). In this case I got some deep sleep time but the seconds that the led is on or off are sometimes higher that the value defined in config variables (ex. 5 on /5 off). Perhaps it is part of the wake up process required after each sleeping period. Also I have checked that with higher values of ON_TIME and OFF_TIME more deep sleep time I get (ex. 10 on / 10 off)

In my phone, using the charging led (very low battery consumption), maybe the best option is to put a very high value for ON_TIME. In this case I could see the notification light most time while android sleep quietly.

I hope this information can help you.
[Android Apps and Games] GermainZ:
EDIT: (just so no one gets confused: this is about the upcoming version; don't worry about it)

In the modification I described, the wake lock isn't dropped while waiting for ON_TIME anyway, only while waiting for OFF_TIME.

I just flashed a new kernel and I'll try testing some things. Thanks for the help.

EDIT: The extra delay, if I'm not mistaken, should be around 2 seconds. That's because with the changes you made, the proximity sensor is being polled every blink (since the %counter variable is a local variable, it gets reset to 0 when we stop the task and restart it later again). I already changed it, but forgot to mention it earlier.

EDIT2: Removing the wakelock altogether isn't an option on some custom ROMs. It might cause the task to sleep forever.
[Android Apps and Games] GermainZ:
Looks like it works... (BBS' Custom Reference was created just before the LEDs started blinking; ButtonLED's settings: 1s on/15s off)

:D
[Android Apps and Games] dgaralon:
It sounds great. I will check it in my phone as soon as you publish it.

With this solution (Keep Awake in ON_TIME) we only could play with higher values of OFF_TIME (>10s) .... As I said it is not the best solution for me due to I prefer to have more time the led on in order to see the notification most of the time. Perhaps the backlist drains more battery that a simple led. In this case your picture of course is the best.

Maybe you can use the lowest value (ON_TIME or OFF_TIME) in the task that have "Keep Awake" to true and the highest in the other task that allows deep sleep. With this logic people could decide.

Thanks you for your effort.
[Android Apps and Games] Shyciii:
Auto Locate/File browser isn't working. My device rooted, busybox also installed. When tap Auto Locate/File Browser nothing happens. I turned on log, but the log file is empty.

My device is Samsung Galaxy S Advance (I9070P).
[Android Apps and Games] GermainZ:
Can you post / PM me a logcat? Note that it might contain some private information (e.g. notifications' titles: SMS contents, WhatsApp contacts, etc), so PM me instead if in doubt.

If the logcat doesn't show anything of use, I'll send you a debuggable APK.

EDIT: Thanks for sending the logcat. I think I've figured out what the problem was. Should be fixed in the next release (working out final details; I'll try uploading it tomorrow).
[Android Apps and Games] dgaralon:
I also detected similar problems with the File Browser & Auto Locate when I executed it. Analyzing the tasks in the Tasker project I could see that the in my case the problem is that my phone has got a busybox installed (pre-root ROM) but I don't have the symlinks for all the commands (ex. grep, sed). So, if you put "busybox sed" it works well but using only "sed" fails because is not in the shell path.

I can not create the symlinks due to the /system file system is read-only and I can not remount it in rw mode.......

Anyway, maybe the best option is to allow to write the brigthness file path directly in a text-box if the other options fails.

Regards.
[Android Apps and Games] Silellak:
Thanks for the work you've done on this app so far!

Out of curiosity, would it be possible to add a feature in a future version so that the hard buttons only flash if the phone is charging? This is the most useful use-case for me on my phone (One XL), because the notification light is always in use while the device is charging.

No big deal if it's not possible, just figured I'd ask. Thanks again! :good:
[Android Apps and Games] GermainZ:
I do specify busybox.

I'll add an option to directly write the path as you said (probably not in this next release tho), probably the best thing to do.

I'll add it later. Meanwhile, you can set the low battery level to 100% when not charging, and change it to 0% when charging. :)
[Android Apps and Games] GermainZ:
I tried a few ways to drop the wakelock for ON_TIME, but I kinda discovered a Tasker bug (all of them roughly use the same method, so it's the same bug).

I'll try a few other ways later, but didn't want to keep everyone waiting.

Now, with the amount of changes I've made, I'm afraid I might have broken something, which is why I'm not updating the OP yet.

If you guys can test it (MDPI version, <JB; HDPI devices can still install it BTW, it'll just be small and ugly), it'd be great.

Changes:

Wake locks are released while the LEDs are off and ButtonLED is waiting;

Sleep timer is fixed. The current value is also displayed when changing the sleep start/end times;

Tapping on a log entry will give you the option to add that notification to the exclusion list;

ButtonLED will give you the choice to install Busybox if it's not found;

File Browser/Auto Locate issues might be fixed for users who were having them (pressing File Browser did nothing at all even if Busybox is installed). Please try it if you were having this issue.

If nothing serious is reported, I'll upload the rest ASAP. Thanks!
[Android Apps and Games] afwolfpacked:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Works great on sgh t679 Samsung galaxy exhibit 4g HDMI

As you stated the graphics aren't HDMI and looks funny.

SMS with no subject shows in log ad ntitle and gives entry for each flash.

Option to exclude works by line in log

Start/stop sets but haven't tried when say 10pm till 6am goes past day but see no reason it wouldn't.
[Android Apps and Games] travisjustin:
App isn't showing up in accessibility for me to enable. HTC one s running 4.2.1 baked7 ROM.

(Edit) Had it working fine previously under 4.1 using cm10.
[Android Apps and Games] GermainZ:
Which one? The test version?

If it's 1.4 (the current version), did you get the JB/CM10 version?
[Android Apps and Games] travisjustin:
Tried both, same problem with both. Currently using test version.
[Android Apps and Games] GermainZ:
Try reinstalling, trying to enable it in Accessibility and PM me a logcat.
[Android Apps and Games] travisjustin:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Reinstall worked. Do you still want the logcat?
[Android Apps and Games] chokitodopoder:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

I'm going to test here. My only requests are that it keeps blinking as long as there are unread notifications, whether the screen goes on and off, and stop blinking if the notification is removed by the system without my interaction, e.g. it starts blinking when I receive a mail, but before I notice it, i've already deleted it on my pc. So the phone clean the notification, but the buttons keep blinking.

I don't know anything about java or Android, but I've read some things about firmwares and mods. Have you ever thought about seeing how notification leds works on phones that have them and just adapt it to the hw buttons? If possible to just change the address of the hw leds, like we do in ButtonLed choosing the path to ours, it could solve the battery drains and these things I've mentioned before, maybe ofc.
[Android Apps and Games] .xxx.:
Yeah the logs are similar to the 1 you posted except I never got the proximity detected thing.

Sent from Hell!!
[Android Apps and Games] GermainZ:
Try testing again to make sure the settings did save.

Also try changing the settings (set a higher on delay) and try again.
[Android Apps and Games] el5arsawi:
the app interface isnt compatible with my note

سينت فروم اان ايجيبشن جلاكسي نوت جي تي 7000
[Android Apps and Games] .xxx.:
I will try that.. sorry to bother you for soo long..

Sent from Hell!!
[Android Apps and Games] GermainZ:
That's a Tasker related thing. I've posted a thread on the Tasker forums asking for tips, no one replied so far.
[Android Apps and Games] GermainZ:
It's cool :D
[Android Apps and Games] .xxx.:
Hey.. it is on from yesterday but no progress.. any update with the app? And it is a request .. please make this wonderful concept for hdpi phones :D

Sent from Hell!!
[Android Apps and Games] rjcoolhtc:
has anyone tried it on LG Optimus 4x ( rooted, stock ics )
[Android Apps and Games] GermainZ:
Sorry for the late reply, my ISP had problems right after loading the page and typing my answer, and just before pressing the "Submit Reply" button.

Let me get this straight: ButtonLED detects and processes the notifications (according to the logs), but your capacitive buttons don't light up, even tho the "Test ButtonLED" button works great. Right? If v1.3 doesn't fix it, I'll send you a debuggable APK (logcat, debug to SD, etc) and try to figure it out.

Now, v1.3 is ready but I'm working on adapting it to different resolutions. Found out how to do it after some trial and error, but it will take some time and I don't have much.

Luckily, I do have some, so expect a release in a few days instead of a few hours.

There will be one APK for each resolution. The changes will probably be done blindly (with some "quick" testing on the painfully slow AVD), so it might not be perfect. It still should be much, much, much better. :)

It's not exactly dangerous, you can give it a try and report back.
[Android Apps and Games] GermainZ:
Updated to v1.3.

There is now an HDPI APK available for download, which should make it usable on HDPI devices.

Changelog:

V1.3 (03/11/12):

Stop service and exit menu option;

Ignore notifications if battery is lower than threshold;

Fixed exceptions not taking effect;

Changed the path auto locate looks into. Hopefully, this will make it work for more devices;

Two versions are now available, one for MDPI devices, the other for HDPI devices (thanks for .xxx. for testing).
[Android Apps and Games] el5arsawi:
i couldn't find the brightness file for samsung galaxy note :( anyone can help me with the directory ? lol , i found the flash one though

---------- Post added at 02:11 AM ---------- Previous post was at 02:08 AM ----------

can't find the right directory on my samsung galaxy note :(
[Android Apps and Games] .xxx.:
An easier way to find that out is to use root explorer or solid explorer to search the file.. named brightness in your sys folder.

Sent from Hell!!
[Android Apps and Games] el5arsawi:
didnt work but thanks : )
[Android Apps and Games] js2892:
works nicely with galaxy ace s5830i!
[Android Apps and Games] stylus1828:
It works on HTC One S (s3 chip)!

Using trickdroid 4.0.0!

Thanks!
[Android Apps and Games] mliou:
so does the notification only work for missed call and text?
[Android Apps and Games] GermainZ:
It works for all notifications, missed calls and texts included.
[Android Apps and Games] mliou:
So does it work for whatsapp notification?
[Android Apps and Games] GermainZ:
Yes, as well as any notification that appears in your status bar.

Just make sure you enable ButtonLED in the Accessibility settings.
[Android Apps and Games] GermainZ:
No, thanks. Glad it worked :)

Android doesn't let applications know when a notification has been cleared.

That would be only possible, AFAIK, by polling the dumpsys. That means:

It'll be slow (since I have to poll it every X seconds);

It'll drain the battery;

If I want it to be more effective, I'll have to reduce the polling delay = more battery drain.

I'd rather not do it :)

As for the other suggestion, that requires a modified kernel. You're basically asking me to make a kernel for every device out there. :p
[Android Apps and Games] cybermungo:
AW: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Can someone tell me the path for an international gt-I9300...
[Android Apps and Games] chokitodopoder:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

lol yeah, but I didn't mean it. I just thought that the instructions to use the notification led could be used by your app, like some do (imo.im, that just uses the led if you ask), but redirecting it to the path of the hw buttons leds. As I said, I don't know anything about java or android, I just play with linux.

Btw, version 1.5 blinks the leds two times in the time I've set (default 4/1 sec), then it seems to sleep for a few time and blink two times again.
[Android Apps and Games] GermainZ:
How does it sleep? And for how long? Can you provide a logcat?
[Android Apps and Games] chokitodopoder:
Sleep was just how I said. It seems to be a random, but first time it takes 10 sec after the first 2 blinks, and then ~1min for the next both. Then I got another message, so I can't say exactly. How can I get a logcat for you?
[Android Apps and Games] GermainZ:
Check this tutorial.
[Android Apps and Games] chokitodopoder:
Thanks, but I can't find where to attach the logcat to PM you. How can I do?
[Android Apps and Games] GermainZ:
You can upload it to any file sharing website (e.g. dropbox.com or pastebin.com).
[Android Apps and Games] cybermungo:
AW: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

I mean the path to the correct brightness file. ..I cannot find it. ..
[Android Apps and Games] acedexplorerABL:
Please mak a jellybean compatible MDPI apk

hdpi is just cut in 1/4th :P
[Android Apps and Games] hihipunkt:
Please add the following feature:

I own a Galaxy Note 1 N7000 running a JB Leak. That means the softkey buttons don't work (because of the kernel limitations) . However, you can select "leds-sec" at the auto locate area of your app to control the LED Camera flash (the camera flash feature you provide in the main menu doesn't work on the N7000 btw).

However, this Camera LED can be used at 256 brightness levels. You seem to use the value 256. It would be super cool, if you could add a feature that let's us select the brightness value you send to the auto located LED devices. Even a simple change of the value to a 1 instead of 256 would make me happy. :D

In lightflow the darker LED thing does work (you can select which value should be echoed), but lightflow just turns the LED on and leaves it on - not quite what I want lol.

And please release a HDPI version too :cyclops: I can't read all the text with the MDPI version.
[Android Apps and Games] GermainZ:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Does the FAQ help? Also try searching this post.

Will do :)

It's just a test version. I'll do that when I update the OP, but I've been busy lately, sorry.

For the features, do you want both values to be changeable, or just the max? (min is 0 and max is 255 by default)
[Android Apps and Games] hihipunkt:
I understand and thank you for your work! You don't have to be sorry! :D This is a quite good piece of software you made here.

I don't really understand why you are talking about 2 values :confused:

Is "0" the value that represents the off state of the LED right now?

If yes, then only the max. You can echo a value like "1" to leds-sec on the note or a value like "255". With "1", the LED is the darkest (I guess "0" is off), and with "255" it's the brightest. So I just would want to be able to send the 1 instead of the 255.
[Android Apps and Games] dgaralon:
If we could select both values then it would be perfect. As I said before, for me is better to have the charger led on when button led allows deep sleep. Each one could select the led brightness in on (awake)and off (sleep)status.

Thanks a lot.
[Android Apps and Games] android_xcuj28:
still just a test and not official release? mhh
[Android Apps and Games] Ph@lo:
Works great on Samsung Galaxy Ace i
[Android Apps and Games] lauragr:
ButtonLed in S3 mini

Hello I'm from Spain,Buttonled have successfully installed on my samsung galaxy mini s3 but does interfere with the accessibility application talkback. I've turned off this application and nothing, I've uninstalled and nothing, a female voice speaking out again :crying:. The only option is to shut her if turned off buttonled. So i've unistalled buttonled because i dont want to ear her.:crying::crying: Any solution?

Thanks.
[Android Apps and Games] rafael_mfr:
I gave a try with my Padfone 2 (WWE 10.4.11.13) and it doesn't work. Whatever the missed event happens, button leds don't blink anyway.

Did you get it working on Padfone 2? How?
[Android Apps and Games] jdrieper:
Talkback problem

Sorry for my english... I´m from Brasil and Buttonled works fine on Galaxy S Duos S7562L only with "ButtonLED.1.5.test.apk" version AND BusyBox by STEPHEN (STERICSON)... BUT the problem with talkback also occurs...

Congratulations, application is fantastic...

UPDATE: Problem Solved... Go to Settings -> Application manager -> All - Disable Google TTS (text to speech) - Disable Samsung TTS (text to speech)
[Android Apps and Games] GermainZ:
Does the FAQ help?

BTW, that's a known Samsung/Android issue.

Read the comment above.

The Tasker project is available. Feel free to modify it. I'll upload the new release once I find enough time.
[Android Apps and Games] jdrieper:
Hi, in Galaxy S Duos S7562L with ICS 4.04 and "ButtonLED.1.5.test.apk" installed, the featue "turn button backlight for x seconds" is ok but the feature "then off for y seconds" is not work.

Regardless of the value that I tell, he always gets off for 1 minute.

So if I tell to stay lit for 10 seconds, it stays on 10 seconds and one minute off ...

Thank you for your attention

UPDATE:

Continuing with testing, i configured as:

"Turn LED on for: 1 s"

"Then turn it off for: 0 s"

And the "bug of minute" disappeared... Now always blinking but is ok for me...
[Android Apps and Games] GermainZ:
Added v1.5. Changelog:

Wake locks are released while the LEDs are off and ButtonLED is waiting;

Sleep timer is fixed. The current value is also displayed when changing the sleep start/end times;

Tapping on a log entry will give you the option to add that notification to the exclusion list;

ButtonLED will give you the choice to install Busybox if it's not found;

File Browser/Auto Locate issues might be fixed for users who were having them (pressing File Browser did nothing at all even if Busybox is installed). Please try it if you were having this issue.

Added XHDPI version for everyone. Also added MDPI for JB/CM10 users.

I've updated the FAQ as well, regarding Accessibility/Talkback issues.

Also, APKs are now uploaded to dropbox because I've reached the file number limit on XDA. :D

For those who were having issues with ButtonLED never waking up again, I'm not sure why that's happening. I'll try to look into it. Meanwhile, an easy fix would be to grab the Tasker project, and edit the "Wait" task (tap the Preferences icon, then "Keep Device Awake").
[Android Apps and Games] jakuburban:
Odp: [APP][ROOT][1.6-4.x] ButtonLED v1.5 (24/02/13)

It worked on X10 but I can't locate the file on my sgs2