yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] cdzo72:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

I flashed two stock based kernels (jeboo and PhilZ) and still no touch Led file found... only the one for the screen backlight brightness
[Android Apps and Games] GermainZ:
Android provides no way to know when an application's notification has been cleared, so I'm afraid that's not possible.

Does the FAQ help?
[Android Apps and Games] cdzo72:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

No it doesn't and there are several in my ROM thread that have asked... any search for brightness only brings up backlight files for screen
[Android Apps and Games] GermainZ:
Can someone on JB/CM10 tell me if this APK force closes or not?

I'd like to get a working JB APK before updating the first post with the latest version.

Thanks.
[Android Apps and Games] GermainZ:
Well, the best place to ask would be your device's forum. I hope someone will answer you.

I really can't help you much as it depends on the device, but try looking in:

/sys/class/leds/

There should be a symlink to the button backlight folder, e.g. /sys/class/leds/button-backlight/ in which you can find the brightness file.

Good luck, and please report back if you find it.
[Android Apps and Games] afwolfpacked:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

Works perfect cm10linero build sgh t679 exhibit 2 4g
[Android Apps and Games] joshuaw84:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

Works on toasted deck CM10.1 01.18 build from irc on htc evo 4g lte. The set up screen is super buggy but once it's set up I guess I won't have to worry about it.
[Android Apps and Games] takkaros:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

Tested on an galaxy s2 stock Based jb rom. No fc's but no leds when using the test. Im %99.99 positive im using the right path for the leds

Sent from my GT-I9100
[Android Apps and Games] GermainZ:
Buggy how? I used a bash script to convert it from mdpi to hdpi, so it might be a bit smaller than your screen. Anything else? (screenshots might help)
[Android Apps and Games] howdid:
AW: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

A little bit to much wake locks... And not letting the phone to go in deep sleep...

Gesendet von meinem HTC One X mit Tapatalk 2
[Android Apps and Games] brndpope01:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

OK I'm lost can anybody help me find the right path too button led on the galaxy exhibit 4g?
[Android Apps and Games] joshuaw84:
Re: [APP][ROOT][1.6-4.0] ButtonLED v1.3.1 (03/12/12)

I can't really capture it in a screen shot I don't mind it being smaller. When changing settings the program will sometimes tweak out and go black. Then I would have to exit and reload.

Other than that it's fine.
[Android Apps and Games] GermainZ:
Updated to v1.4.

Changelog:

Manual search is now as fast as other file explorers (busybox is required);

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

Confirmation added before removing exceptions;

Fixed a (rare?) issue where ButtonLED kept blinking the lights after the screen is turned on;

Might be more battery efficient if using higher LED Off delays, not sure. But if it is, it will be much better (more testing needed);

EDIT: I've also updated the FAQ. Read it again, please. :)
[Android Apps and Games] mhdsanto85:
same here....
[Android Apps and Games] 7ORO:
where is the file located? Do you tried to change the brightness throught console?
[Android Apps and Games] Ospitel:
didn't work with galaxy s2 ... i don't no why :(
[Android Apps and Games] cdzo72:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

I haven't been able to find the file on my S2 either:(
[Android Apps and Games] GermainZ:
If you can't find the brightness file, try this (quoting the updated FAQ):

What does it contain? Also, are you using a kernel with BLN support?
[Android Apps and Games] takkaros:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

For ICS galaxy s2 i9100 there was this kernel called Siyah which used /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness. But instead of just on / off, it let the user choose a voltage level in mV's, which affected the touchkeys brightness level. ( 2550 to 3300 max). ButtonLed uses this path/sys/devices/virtual/sec/sec_touchkey/brightness but it doesnt work. No bln kernel

No such folder as /sys/class/leds on the S2. Perhaps no changes are allowed fo be made in /sys?

Sent from my GT-I9100
[Android Apps and Games] DisruptiveMind:
HTC One S rooted running ICS.

Sleep start/end is not working. It appears the times are not sticking, no matter what time I set it reverts back to 00.00. Everything else works excellently.
[Android Apps and Games] 7ORO:
AW: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

@takkaros

The file you mentioned sets only the brightness of the touchkeys. not if there are enabled or disabled.

You can enable and disable the touchkey leds through the brigtness file. with 1 you can enable them and with 2 disable. you can try it trought a console app.

For SGS2:

/sys/devices/virtual/sec/sec_touchkey # su echo 1 > brightness

/sys/devices/virtual/sec/sec_touchkey # su echo 2 > brightness

I set this file in the app but it didn't worked for me. maybe its because the tool sets another value to this file?
[Android Apps and Games] prokoba:
Same on SGS3, GT-I9300, 4.1.2, siyah 1.8.8+, Omega v37 rom XXELLC

echoing 1 enables touchkey leds, 2 - leds off.

app. version 1.4hdi
[Android Apps and Games] GermainZ:
ButtonLED echoes 0 & 255, which are the min and max for most devices.

I could put some "S2/S3" workaround option you can enable, that will echo 1 & 2 instead.

Just to make sure I'm understand correctly, tho:

This turns the LEDs on:

echo 1 > /sys/devices/virtual/sec/sec_touchkey

And this turns them off:

echo 2 > /sys/devices/virtual/sec/sec_touchkey

Correct?

They're being set correctly, but they're not shown when you try to change them. Already fixed it, will be in the next release.
[Android Apps and Games] 7ORO:
Correct.

Turns LEDs ON:

echo [B]1[/B] > /sys/devices/virtual/sec/sec_touchkey/brightness

Turns LEDs OFF:

echo [B]2[/B] > /sys/devices/virtual/sec/sec_touchkey/brightness

But there seems to be a small problem. The LEDs are only activated until the device screen gets off. After that they wont turn ON again. Don't know why.

Edit: sry without su before the command...
[Android Apps and Games] Ospitel:
Nothing.. i didn't find that file.:crying:

Hope someone will help s2 users. :laugh:
[Android Apps and Games] takkaros:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Thanks for clarifying things out for me! I know that ../touchkey_brightness is only for brightness level but i thought to mention it because it could possibly be used like the bln breathing effect.

I didnt know buttonled echoed 255. This is what was wrong then..:)

Sent from my GT-I9100
[Android Apps and Games] ekoandrew:
Sorry does not work on Padfone2 , no idea why. Even the build in log doesn't show anything
[Android Apps and Games] afwolfpacked:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Everything but sleep timers works on my CM10Linero Odexed and Deodexed builds. Woke to flashing screen that started at 11 pm and flashed till 6 am. Battery consumption was about 50% and normal drainage would have been 10% so 40% was due to screen flashing and no sleeping. Not bad in my opinion. Using Samsung galaxy exhibit 2 4g
[Android Apps and Games] GermainZ:
Does the FAQ help?

I just figured out what's wrong with the sleep timer.

It actually won't work for values that go from one day to another (e.g. 11PM -> 06AM) but will work fine for values that span the same day (e.g. 00AM -> 06AM).

Use that as a temporary workaround, sorry for the inconvenience.

S2 Users (or anyone who can't locate their brightness file), help me help you: either buy me an S2, or read ahead. I'd advise you go with the second option. :P

Try these commands in a terminal emulator a few times (each on their own, wait a few seconds between one and another; run as root! you can normally do that by typing "su"), and tell me what they do:

echo 1 > /sys/devices/virtual/sec/sec_touchkey/brightness
echo 2 > /sys/devices/virtual/sec/sec_touchkey/brightness
[Android Apps and Games] prokoba:
On SGS3

echo 1 > /sys/devices/virtual/sec/sec_touchkey/brightness - leds on

echo 2 > /sys/devices/virtual/sec/sec_touchkey/brightness - leds off

But not working when device is locked and/or screen is off.

When screen is on the leds stay on until touched or screen goes off.

Hope that helps :)
[Android Apps and Games] LLegoLLaS:
doesn't work on my One S (it has led but is only visible if you stare at it).-useless

the program cant locate these file i think
[Android Apps and Games] GermainZ:
Can you try this, please:

1- Run this in a terminal emulator (get root access first):

while :; do echo 1 > /sys/devices/virtual/sec/sec_touchkey/brightness; done;

2- Your LEDs should turn on. Turn your screen off

3- What do you see? Are the LEDs still on or not?

4- Turn the screen back on & break the script.

You think? Does the Test button work or not? Also, read the FAQ.
[Android Apps and Games] Yezariael:
If I chose a time, close the window and go in again, it always displays 00:00... is this normal? Could you please let it display the settings used?
[Android Apps and Games] GermainZ:
Yeah I already fixed that for the next version, but don't worry, the settings are applied (they just don't show).
[Android Apps and Games] prokoba:
while :; do echo 1 > /sys/devices/virtual/sec/sec_touchkey/brightness; done;

The leds go off whe the screen goes off. When the screen comes on the leds do the same.

No matter if the screen is locked with the power button or goes to timeout sleep.
[Android Apps and Games] GermainZ:
Then I'm afraid there's nothing I can do. Probably a kernel level limitation.

Sorry.
[Android Apps and Games] lightwars:
AW: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Sorry,wrong post.
[Android Apps and Games] creeve4:
Where did you find the led backlight file?
[Android Apps and Games] afwolfpacked:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Auto search found it. 1st one in list longest path.

LCD brightness/backlight. There is s lot more before but that'd be the file to look for. Turns blank screen on and off.
[Android Apps and Games] chris_barsoum:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Has anyone got this working on the galaxy s3 running CM10.1?
[Android Apps and Games] 7ORO:
AW: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

ok. thanks anyway for investigate.
[Android Apps and Games] LLegoLLaS:
The test doesn\t work
[Android Apps and Games] GermainZ:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Read the FAQ.
[Android Apps and Games] Coito:
I couldn't´t find my problem on the FAQ so i decided to post it here.

I have a Galaxy S (GT-I9000) and I'm currently using brad heffernan miui rom. every time I try to install this app I get a message that it's not possible because I have no mere space, but when I go and check the space available I still have 1.10gb free on the internal and 1.64gb on the sd card.

Any idea on how I can solve this?
[Android Apps and Games] LLegoLLaS:
I have searched myself for brightness file

it is located in

i have manually set it to zero and it works,the softkeys backlight turns off but i cant set the program to do that.FIle browser dowsn't work,auto locate doesn;t

and yes i have read faq
[Android Apps and Games] GermainZ:
Did you try rebooting?

Otherwise, try copying the APK to /data/apps and set the correct permissions (rw-r--r--).

Alright friend, you need to be more descriptive.

How did you "manually set it to zero"?

How doesn't the File Browser work? Can you see the files? If not, do you have Busybox installed?

How doesn't auto locate work? Does it find anything?
[Android Apps and Games] takkaros:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

I tried this in a self attempt to test the leds ( while :; do echo 1 > /sys/devices/virtual/sec/sec_touchkey/brightness; done; ). If screen is off and a text message arrives. It does light up but the touch buttons become unusable (no response, no haptic feedback) and does not come back to normal when screen off and on the phone. Can you please describe in a few simple words what " while : ; "do? Using echo 1 > /sys/devices/virtual/sec/sec_touchkey/brightness works only if i set it to work when the screen is on. I know the conditions are met when the screen is off ,as i tested it with a text to speech command in the loop ,which is supposed to light up the leds.

Sent from my GT-I9100
[Android Apps and Games] GermainZ:
while :; loops indefinitely, which is why I said you need to break it once you're done testing.

As I've said, the s2 apparently has some kernel level lock, so the capacitive buttons don't light up while the screen is off.
[Android Apps and Games] TheSmokingAndroid:
Hi there, i'm thinking about featuring your app in my Best Useful apps of the week video. My question is, does this app REQUIRE root, or does root just give us more options and customization ?

cheers,

Jared
[Android Apps and Games] GermainZ:
Thanks :)

It requires root unless you're using the Flashlight, but that isn't supported on all devices and I'm actually thinking of removing it since it's redundant (considering you can just use the flashlight's brightness file).

So yeah, it requires root. :D
[Android Apps and Games] creeve4:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

So you did not find the file for the led buttons? You are just using the screen?
[Android Apps and Games] TheSmokingAndroid:
I see, thank you :cyclops:
[Android Apps and Games] Coito:
Yep, I tried reboot and also tried after installing a rom update. I'll try to move it and set permissions

thx
[Android Apps and Games] takkaros:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Apparently. I will test it with one ohter no bln kernel when ill have the time and if it doesnt have this limitation i will let you know:)

Sent from my GT-I9100
[Android Apps and Games] LLegoLLaS:
1. edited the brightness file (inside it has a number from 0 to 255,so if you set it to zero the softkeys light will be zero,it applies immediatly after saving the file but it will be reset to 255 after restart)

2. the filebrowser from buttonled won;t show,can;t see any file.I don;t have Busybox installed

3.Doesn;t find anything
[Android Apps and Games] GermainZ:
This might fix all your issues.
[Android Apps and Games] bartass127:
Hey!

I have a problem with galaxy note.

I set auto-locate, but i found only 5 files

/sys/devices/platform/s5p-dsim.0/s6w8aa0/backligjt/panel/brightness

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

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

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

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

It is the last one ? Or not ?

:laugh::confused:
[Android Apps and Games] GermainZ:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Probably, try it ^_^
[Android Apps and Games] bartass127:
Doesnt work.

Has anyone try it on galaxy note ? :)
[Android Apps and Games] afwolfpacked:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Try one next to last. It zounds like the right file

On my phone the file is proceeded by leds/
[Android Apps and Games] kleinerWicht:
Hey,

first thanks for your work :) keep on it

I'm want to use this app on my Samsung Galaxy Ace S5830i (rooted, at the moment MindCr 2.3), but it doesn't seem to work? I installed your app and the Ipack, root access is granted but the test doesn't work. Only if I change if to flashlight. I couldn't select the bightness-file and if I tap on Auto Locate or File Browser, nothing happens? Did I do something wrong?
[Android Apps and Games] GermainZ:
Nothing happens at all?

Try installing busybox.

BTW, the Ipack is only required if you're using the Tasker project.
[Android Apps and Games] GermainZ:
Try them one by one except the first one (/sys/devices/platform/s5p-dsim.0/s6w8aa0/backlight/panel/brightness; it's probably your screen's brightness).

You can just launch Auto Locate again from the menu.
[Android Apps and Games] kleinerWicht:
Installing busybox solved it :) thanks
[Android Apps and Games] Typooni:
My Note's "autolocate" finds same devices, but none of those work. Panel backlight brightness is panels backlight brightness, leds-max8997 is flashlight. Others dont do anything when tested.
[Android Apps and Games] halloga:
a problem

i'm using 5830i with Simplicity v4-stock kernel.

Auto Locate and File Browser is not working. I have tried to install busybox but still not working..
[Android Apps and Games] GermainZ:
Tried what's in /sys/class/leds? It usually contains symlinks to the right locations.

How does it not work? Are you sure you installed busybox (you have to install the app then install busybox from within the app)?
[Android Apps and Games] halloga:
:

when i click auto locate, 4 choices are avaible but i can't select any of them. nothing happens.

i installed busybox app and clicked smart install. successfully installed.

edit: i can click only "/sys/" and it goes to root folder but again i can not open any of them
[Android Apps and Games] GermainZ:
That shouldn't be happening... What are these choices? I'll check the logic.

Also, try reinstalling. Might help.
[Android Apps and Games] halloga:
sys/devices/platform/bcm_sdhc.1/leds/mmc0/brightness

sys/devices/platform/bcm_sdhc.3/leds/mmc1/brightness

sys/devices/platform/aat1401-backlight.0/backlight/aat1401-backlight/brightness

sys/devices/platform/bcm21553-leds/leds/button-backlight/brightness

tried re-install but didn't solve the problem.
[Android Apps and Games] GermainZ:
It's the last one. Try tapping it, then tapping the close button and checking Debug (variables). Is the path set correctly?
[Android Apps and Games] halloga:
.

path: %path
[Android Apps and Games] GermainZ:
The only reason I can think of is if you're using the Tasker project with Tasker disabled (Tasker still shows scenes but tasks will fail).

Are you using the APK? If you are, then I have no idea. Try rebooting just in case, otherwise post a logcat.
[Android Apps and Games] halloga:
.

sorry, i don't know what the tasker project is. how can i change this?
[Android Apps and Games] GermainZ:
Did you install the APK or did you download the XML?
[Android Apps and Games] halloga:
.

i installed the apk
[Android Apps and Games] GermainZ:
Ok. Any change you can try rebooting, and if it still doesn't work, posting a logcat?
[Android Apps and Games] halloga:
.

how can i post a logcat?
[Android Apps and Games] claireth:
i installed v4 today...and everything works..auto locate...testing etc

but when i've got a missed call,i didnt see any notification..though i checked the logs and they say that it detected the missed call and everything looks that works fine...maybe i miss something?

Samsung Galaxy SIII mini with 4.1.2 JB
[Android Apps and Games] afwolfpacked:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Did you enable in accessibility. I overlooked that once.

Also busy box may help if not installed

Sent from my CM10 Linero Odexed Powered by Evil
[Android Apps and Games] claireth:
yes i did that...i also installed busybox but still nothing!
[Android Apps and Games] GermainZ:
The screen must turn off first.

If it does and you still didn't check your call logs, then it will start flashing the LEDs.

What does the log say, exactly?
[Android Apps and Games] GermainZ:
Check some tutorials written on xda.

The simplest way is to get an app from the play store, for example Catlog or aLogCat.

Google is your friend.
[Android Apps and Games] claireth:
Buttonled service started

Missed call from ********* (detected)

Missed call from ********* (detected)

Missed call from ******* (processed battery 82%)

Stopped (screen turned on)

Battery fully charged.Unplug charger (detected)

Buttonled service started

in all the above missed calls the buttons didnt light,when the screen turned off by itself...though while testing through the app worked...

i havent got any messages till now,so to see if it works with'em...
[Android Apps and Games] GermainZ:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Did you read the post about the s2? (linked in the first 5 lines of the OP)
[Android Apps and Games] claireth:
ohh no..sorry about that...i saw it was for S2 and didnt read further!!

so i guess,its something that goes wrong with our kernel...that means,that we have to wait for a kernel with BLN support,so to see some kind of notification in our phones :p

anyway..even if it doesnt work for us,you still did a great work...keep it up
[Android Apps and Games] GermainZ:
Thanks. :)

BTW, just to make sure, try this:

1- Run this in a terminal emulator (get root access first; type su in the terminal to do so) (replace /path/to/brightness by actual path):

while :; do echo 1 > /path/to/brightness; done;

2- Your LEDs should turn on. Now turn your screen off

3- If your LEDs turn on again while the screen is off, your device is supported. If not, your kernel has some limitation that won't allow them to light up while the screen is off.

4- Turn the screen back on & break the script.

I'll add a mention in the compatibility section or FAQ.
[Android Apps and Games] s0cc3rstud:
Noob

:confused: Can this app work on non-rooted phones such as the Note 2

http://db.tt/tl2mGCi8
[Android Apps and Games] afwolfpacked:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

Requires root access to intercept notifications. No it won't work on non rooted.

Sent from my CM10 Linero Odexed Powered by Evil
[Android Apps and Games] claireth:
just did this..and unfortunately no...they dont light up,after the screens turns off!!!

thank you for your help,too bad we've got unlucky...
[Android Apps and Games] GermainZ:
No (unless you use the flashlight but I'm planning to remove that eventually).

Actually, root is only needed to flash the LEDs. You're talking about Accessibility.

Sorry to hear that. :(
[Android Apps and Games] remygo:
Is there a way to control the brightnesslevel?

It wouldnt consume that much battery if lights are dimmed
[Android Apps and Games] chrisjz:
Re: [APP][ROOT][1.6-4.x] ButtonLED v1.4 (19/01/12)

This works great for me. Thanks.
[Android Apps and Games] GermainZ:
Most devices' LEDs can only be turned on and off, without control over the brightness.

Besides, an important part is consumed by the loop itself anyway, rather than the LEDs.
[Android Apps and Games] dgaralon:
I have tested the application in my Zopo 500+ (MTK6577) with ICS 4.0.4 and It works so well. I am blinking the charging LED instead of the button backlist. It is just the solution for me and support any kind of notifications.

As you say the main issue could be the battery consumed (of course noLED drained my battery much more). I have checked with other root applications that when ButtonLED is managing some notification ( the LED or buttons are blinking ) android can not go to deep sleep mode and the CPU is always working hard. I can see a wake lock fot ButtonLED till the notification is cleared and ButtonLED stop blinking the LED. Maybe there is some way to avoid this. ¿How is the blinking loop implemented?

Anyway the app is wonderful.

.
[Android Apps and Games] GermainZ:
Right now the wake lock is never released.

In the next version, it should be released during the wait (LEDs off) delay, so that might reduce battery usage.
[Android Apps and Games] dgaralon:
Thanks. It should help a lot. Perhaps it is possible too to use some kind of timer based loop (AlarmManager) instead of a standard loop with some sleep on it. In some foros people talk about this class to avoid wake locks during waiting times. It is only a idea, I have experience in Java programming but not in android systems.
[Android Apps and Games] GermainZ:
I'll keep that in mind when I actually learn Java/Android programming, but for now, Tasker manages that :P

From what I've read, Tasker sets an alarm already then waits so if the wait time is long enough, the device should have no problems going into deep sleep.