[APP][ROOT] Moto X Charging LED Control - No Tasker Needed! [v1.4] - Moto X Themes and Apps

So after seeing a few posts of people complaining about having to buy Tasker just to turn on the LED. I decided to help those people out and create a simple app that runs the shell command to turn on the LED on our Moto Xs
Of course props to whomever figured out these shell commands (please reply with who it is so i can give credit) and to the dev of RootTools
Once the requirement of the phone being plugged in for the LED to turn on is bypassed, this app could become a whole lot more. But that's a big road block.
In the meantime this will simply turn on your LED based on the setting chosen and based on whether your battery is fully charged or not. This app was designed for the Moto X only (4.4 rooted) but has been confirmed to work on the new DROIDs too (Maxx & Ultra)
Usage:
Select an option for the LED: heartbeat (pulses like a heartbeat), battery-charging (solid while charging), battery-full (solid when full), battery-charging-or-full (solid when plugged in), mmc0 (pulses based on disk reads/writes)
Select a brightness.
Save if you want to use your choice for when the device is charging or it's battery full - or hit both buttons to save it for both scenarios.
Scroll down and select if you want it to the apply your settings on boot then hit the execute button
Change log:
1.5 - Source code uploaded to github: https://github.com/StephenMilone/MotoX_LED
1.4 - No more crashes =)
1.3 - Fixed 1.2 issue of it not automatically switching from charging to full (hopefully - i haven't had time to fully charge my device to test)
1.2 - Added ability to pick different settings for battery charging and battery full
1.1 - Added Brightness options
1.0 - Initial Release

Have you thought about adding being able to change the brightness? echo # >/sys/class/leds/charging/max_brightness #=0-255
Sent from my xt1060vzwDE

jwthompson said:
Have you thought about adding being able to change the brightness? echo # >/sys/class/leds/charging/max_brightness #=0-255
Sent from my xt1060vzwDE
Click to expand...
Click to collapse
didn't know that was an option. Can easily be added. thanks!

My interest lies with it perhaps being able to be used as a notification led one day...But great job for sure.
Sent from my Moto X cell phone telephone.....

kj2112 said:
My interest lies with it perhaps being able to be used as a notification led one day...But great job for sure.
Sent from my Moto X cell phone telephone.....
Click to expand...
Click to collapse
We'll see how much this app gains interest, that is something that can be worked on.
But it seems the LED only goes on when plugged in, regardless of setting.

Thank you, very useful. At least now I know mine works
Sent from my XT1053 using Tapatalk

Works great. Thanks for your work!
Sent from my Moto X cell phone telephone.....

I was sure the photos i saw where fake ...i know now that this is real !ยก! This phone is amazing really ...best phone i ever had ...2 daus ago ,went to best buy ...talking with the cellphone guy ....says he only sold 3 moto x since they have it ...its a thamn shame .
Sent from my XT1053 using Tapatalk

Works like a charm. Thanks.
I hope you or some of the other smart fills here can make this work as a notification light.... like maybe for ICQ?
Sent from my XT1060 using xda app-developers app

Works great!
Had no problems getting it working! Thank you much!
Would love to have an option to flash while charging and solid when full... I may have to learn do this... sounds like fun.

What's the mmc0 option?

Gave you app some exposure on g+. Hopefully you can get more hits.
Sent from my xt1060vzwDE

Great app and option! Does the LED turn off when fully charged? Thank you for making this.

nice
whats the heartbeat option?

@StephenMilone it would be cool if you could make it so that when it's charging you get the heartbeat, and when it's fully charged it stays on.
Sent from my XT1053 using Tapatalk

Works on Droid Maxx! XT1080
Confirmed working on the Droid Maxx, which unfortunately has a much uglier LED than the Moto X. @StephenMilone, do you mind if i post a link in the Droid forums?

kuz142 said:
Confirmed working on the Droid Maxx, which unfortunately has a much uglier LED than the Moto X. @StephenMilone, do you mind if i post a link in the Droid forums?
Click to expand...
Click to collapse
Please that would be awesome. good to know it works on the new droids too.
TroyG said:
Had no problems getting it working! Thank you much!
Would love to have an option to flash while charging and solid when full... I may have to learn do this... sounds like fun.
Click to expand...
Click to collapse
stacio88 said:
@StephenMilone it would be cool if you could make it so that when it's charging you get the heartbeat, and when it's fully charged it stays on.
Sent from my XT1053 using Tapatalk
Click to expand...
Click to collapse
Very possible.
chris420o said:
whats the heartbeat option?
Click to expand...
Click to collapse
It flashes the LED like a heart beat.
Pwnicorn said:
Great app and option! Does the LED turn off when fully charged? Thank you for making this.
Click to expand...
Click to collapse
I'm not sure, but use battery-charging and let us know! If not, I can add options that if charging do one option (like charging), if full do another (like none)
jwthompson said:
Gave you app some exposure on g+. Hopefully you can get more hits.
Sent from my xt1060vzwDE
Click to expand...
Click to collapse
Thanks!

dicarli said:
What's the mmc0 option?
Click to expand...
Click to collapse
mmc0 flashes based on disk (storage) read/write activity.

Does this mess with active notifications? Meaning, if I turn LED on using this, do AN's cease? Thought I saw that might be an issue using other methods.

shkrmkr said:
Does this mess with active notifications? Meaning, if I turn LED on using this, do AN's cease? Thought I saw that might be an issue using other methods.
Click to expand...
Click to collapse
No, you're good. At this point, this has nothing to do with notifications.....only an led for charging.
Sent from my Moto X cell phone telephone.....

Related

LED Notifications (G2X App)

I was using this app for my G2X and thought it might be nice if the developer could make it work for the Sensation, since the notification light is so small. I emailed him to see if it was possible. Any interest in this let the developer know.
It's pretty cool, it lights up the bottom four keys and pulses them when you get a message, so when your screen is off you see the white lights blinking. You can set the times and if you want it to fade in and out.
Profondo_Rosso said:
I was using this app for my G2X and thought it might be nice if the developer could make it work for the Sensation, since the notification light is so small. I emailed him to see if it was possible. Any interest in this let the developer know.
It's pretty cool, it lights up the bottom four keys and pulses them when you get a message, so when your screen is off you see the white lights blinking. You can set the times and if you want it to fade in and out.
Click to expand...
Click to collapse
cool app, i used it on my g2x also... think he can make our notification light blink in different colors? probably only green/red/orange... about to try an app I used on my mt4g to see if it works
I am using Gmail Notifier that I loved on my n1. Unfortunately, you can't select colors of the led (even limited choice that we see on the sensation).
I used the other one on my g2x as well but what I really want is to be able to tell which gmail account an email came from by led notification. Fingers crossed for someone to create something like this.
kd78 said:
I am using Gmail Notifier that I loved on my n1. Unfortunately, you can't select colors of the led (even limited choice that we see on the sensation).
I used the other one on my g2x as well but what I really want is to be able to tell which gmail account an email came from by led notification. Fingers crossed for someone to create something like this.
Click to expand...
Click to collapse
Plus one on this one.. I miss that feature since my nexus one
That is BLN and the developer is Neldar.
Sent from my HTC Sensation Z710e using XDA Premium App
The G2x App for my Sensation would be great.
Sent from my HTC Sensation Z710e using XDA App
The developer for led notifications g2x responded to my email. he said it would depend on the software but he doesn't have a sensation so for now he's not sure
Sent from my HTC Sensation 4G using XDA App
apeiron6 said:
That is BLN and the developer is Neldar.
Sent from my HTC Sensation Z710e using XDA Premium App
Click to expand...
Click to collapse
Will give bln a try once we have root and a kernel that supports it. Looks pretty cool.
Is this still possible now that we have temp root? I would really like this app to work on my sensation.
Sent from my HTC Sensation 4G using Tapatalk
Found the App for this, it's called Led Me Know. Works perfectly for the led notifications. You have to enable keyboard light up and compatability mode.
Sent from my HTC Sensation 4G using Tapatalk
xl DIGITAL lx said:
You have to enable keyboard light up and compatability mode.
Click to expand...
Click to collapse
How do you enable this?
mrfisch13 said:
How do you enable this?
Click to expand...
Click to collapse
its right in the app when you first open it
What's keyboard light up and what does it do? I have it working on my Sensation, but it's pretty much like the stock notifications, nothing too different other than the frequency.
kpjimmy said:
What's keyboard light up and what does it do? I have it working on my Sensation, but it's pretty much like the stock notifications, nothing too different other than the frequency.
Click to expand...
Click to collapse
Well it lights up the 4 LEDs on the front of the phone when you get a notification.
Sent from my HTC Sensation 4G using Tapatalk
xl DIGITAL lx said:
Well it lights up the 4 LEDs on the front of the phone when you get a notification.
Sent from my HTC Sensation 4G using Tapatalk
Click to expand...
Click to collapse
Do you mean the captive buttons? It doesn't work with compatibility checked. Only thing it does is flash the small led on top.
EDIT: Captive buttons do not light in my case. Do I need to check the box labeled screen on as well?
Ok I forgot to mention you have to have temp root and another app to make this work. Its called Light Flow and the way I made it work was having the paid app. I opened up Light Flow, it asked me for root access, I accepted it, then it asked me to turn on Accessibility. So i did and checked Light Flow. Once I did all that, I went back into the app and went to General Settings, clicked direct mode. Once I did that I scrolled a little further down to "Button back light control" and clicked the option "Control-when the screen is off". After that I went into "Notification" clicked "SMS" and scrolled down to "Button backlight LED" and chose "Solid". Now this is where LED me know comes into play.
I opened LED me know and I made sure "Compatability" was checked. I clicked all the services I want like SMS, Missed Calls, and Gmail. Now I clicked the "Notifications" tab and clicked SMS, I chose LED color to whatever I liked (Green) then chose the LED Frequency to Normal, but you can change that. After all that, checked Keyboard and Keyboard blink. Test it and see if it works.
Wow, I just tried the pre-release of LED me know, http://forum.xda-developers.com/showpost.php?p=13929058&postcount=495 and it asked for root permission. Ever since that, its been working great without having to do all these steps I posted. Can anyone try this method?
xl DIGITAL lx said:
Wow, I just tried the pre-release of LED me know, http://forum.xda-developers.com/showpost.php?p=13929058&postcount=495 and it asked for root permission. Ever since that, its been working great without having to do all these steps I posted. Can anyone try this method?
Click to expand...
Click to collapse
Just tried using this version and seems to be working well for me. No need to bother with the steps in the previous post.
So, you don't need paid LightFlow after all?
galaxys said:
So, you don't need paid LightFlow after all?
Click to expand...
Click to collapse
Nope, just click the link in my previous post and get that app. LED me know.

[Q] Notification

Since Charge does not have a dedicated notification LED for new message,vm,missed calls etc like HTC Phones, is it possible to make the lights of the Hardbuttons blink?
Hmm... That's a great suggestion!
Sent from my SCH-I510 using Tapatalk
rukshmani said:
Since Charge does not have a dedicated notification LED for new message,vm,missed calls etc like HTC Phones, is it possible to make the lights of the Hardbuttons blink?
Click to expand...
Click to collapse
Would probably only be useful during nighttime. I cant even tell if they're on during the day...
Sent from my Droid Charge running Humble 1.42
or, if possible, make the camera LED flash blink. Would probably sap battery but I'm almost positive it can be done seeing as apps like Flashlight + LED exist and even have widgets to turn the LED on with a simple click, even on the home page.
Does anyone know if the noLED app works for the Charge? I had that on my Fascinate and it worked pretty well.
xceebeex said:
Does anyone know if the noLED app works for the Charge? I had that on my Fascinate and it worked pretty well.
Click to expand...
Click to collapse
Yes, noLED works.

Notification Light

So I was considering taking my new RAZR HD Maxx back because my notification light seems to not be working. I ran the battery down and there was a red light flashing, so I'm wondering...... is there something I have to do to get the notification light to work for notifications of the normal things like email, text, talk, facebook etc?
Thanks in advance!
JackTheRipper13 said:
So I was considering taking my new RAZR HD Maxx back because my notification light seems to not be working. I ran the battery down and there was a red light flashing, so I'm wondering...... is there something I have to do to get the notification light to work for notifications of the normal things like email, text, talk, facebook etc?
Thanks in advance!
Click to expand...
Click to collapse
So I did some more googling, looks like if you use the "restore" feature it can cause the LED not to work properly when setting up the device.... i mean WTF lmfao.... anyone found any work arounds let me know. I'll hold off until Monday to do a wipe and see if I can get this working.....
JackTheRipper13 said:
So I did some more googling, looks like if you use the "restore" feature it can cause the LED not to work properly when setting up the device.... i mean WTF lmfao.... anyone found any work arounds let me know. I'll hold off until Monday to do a wipe and see if I can get this working.....
Click to expand...
Click to collapse
Odd. I did the google account restore and mine works fine... Have you done a reboot? Double checked the notification preferences?
Its worked fine for me. Might be something that works itself out after a bit. That is kinda normal to happen i guess.
W00fah said:
Its worked fine for me. Might be something that works itself out after a bit. That is kinda normal to happen i guess.
Click to expand...
Click to collapse
download the light flow app and test notification. My first one didn't work at all. I exchanged it and the new one worked flawless, no issues. If the notification test doesn't work with the light flow app, I suggest you take it back and exchange it and download the app in store to test the exchanged unit.
My exchanged unit worked asap with the test I ran with the light flow app.
There is a video on droid-life I believe that shows you how to do it. Just google, droid razr hd notification light and it will show up.
JackTheRipper13 said:
So I did some more googling, looks like if you use the "restore" feature it can cause the LED not to work properly when setting up the device.... i mean WTF lmfao.... anyone found any work arounds let me know. I'll hold off until Monday to do a wipe and see if I can get this working.....
Click to expand...
Click to collapse
Yeah, I had the same problem. First time I set it up, I restored from my Google account and the LED did not work at all for notifications. I tried Light Flow, but that did not get the LED's working again. I factory reset the device, but this time I did not restore from my Google account and the LED's starting working again. I had to manually restore my apps and settings.
I've done this a few times to test and everytime I restore from my Google account, the LED stops working. Definitely a bug in the restore functionality.
Dang, same problem here. Looks like I'll have to factory restore tomorrow after root and tibu.
Sent from my DROID RAZR HD using Tapatalk 2
When doing the test mode from the light flow app, is green the only color that is being tested on RAZR HD?
Sent from my DROID RAZR MAXX HD!...
Light flow put my phone in a boot loop. Be careful. I have the paid version.
Sent from my DROID RAZR HD using Tapatalk 2
Jay A whY said:
When doing the test mode from the light flow app, is green the only color that is being tested on RAZR HD?
Sent from my DROID RAZR MAXX HD!...
Click to expand...
Click to collapse
I've tested Blue, Green and Red so far. Those work well - will try yellow and white later.
My notification light works with light flow as long as screen is off. Any way to get led to work even with screen on?
recDNA said:
My notification light works with light flow as long as screen is off. Any way to get led to work even with screen on?
Click to expand...
Click to collapse
Pretty sure that is a limitation of light flow. Or it may be a Motorola limitation.
Sent from my DROID RAZR HD using Tapatalk 2
Ban-Hammer said:
Pretty sure that is a limitation of light flow. Or it may be a Motorola limitation.
Sent from my DROID RAZR HD using Tapatalk 2
Click to expand...
Click to collapse
You're right. I checked with Andrew. The phone LED only works when it's off.
I wouldn't use light flow (free version). Tried it for a bit and made my phone reboot, freeze, and go really slow. Of you have bad battery, I would say light flow is the cause.
Sent from my DROID RAZR HD using xda app-developers app
leyvatron said:
I wouldn't use light flow (free version). Tried it for a bit and made my phone reboot, freeze, and go really slow. Of you have bad battery, I would say light flow is the cause.
Sent from my DROID RAZR HD using xda app-developers app
Click to expand...
Click to collapse
I have been using the same app since I got my phone a few days ago and I haven't experienced any problems you describe. Battery is awesome and the phone is snappy.
leyvatron said:
I wouldn't use light flow (free version). Tried it for a bit and made my phone reboot, freeze, and go really slow. Of you have bad battery, I would say light flow is the cause.
Sent from my DROID RAZR HD using xda app-developers app
Click to expand...
Click to collapse
I had it on my wifes phone, and it was keeping it awake when the screen was off. Still had awsome battery life tho. :good:
Schoat333 said:
I had it on my wifes phone, and it was keeping it awake when the screen was off. Still had awsome battery life tho. :good:
Click to expand...
Click to collapse
Same here, a lot of wake ups reported by better battery stats, could be normal though?
Sent from my DROID RAZR HD using Tapatalk 2
Anybody have the white RAZR?
Have you seen the notification light at night?
It makes the whole phone glow. It looks badass when its flashing red.
I don't know if the black phone does that.
leyvatron said:
Anybody have the white RAZR?
Have you seen the notification light at night?
It makes the whole phone glow. It looks badass when its flashing red.
I don't know if the black phone does that.
Click to expand...
Click to collapse
That sounds awesome. Any chance of you taking pictures of this?
I'll see if I can take pictures of my first night with it

[Q] Notification light timeout

Not sure if I just haven't found the option yet but can we extend how long the notification light blinks after a missed call,text etc? It seems like it may only flash for 5 or 10 minutes. I know it seems like not that big of a deal but I would like to know a way to change it. I'm dispatched for work through text so not having to constantly pick up my phone to see if I have a missed call or text would be ideal. Thanks in advance!
I think this is the 1 issue with the phone that baffles me. Such a great device, but such a strange setting by HTC.
Sent from my HTC6525LVW using Tapatalk
jmill75 said:
I think this is the 1 issue with the phone that baffles me. Such a great device, but such a strange setting by HTC.
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
I know. Such a stupid little thing but it drives me nuts.
Well after some more homework it sounds like this has been going on for a lot of HTC phones. This is my first one.Is there an app or something that can bypass this 5 minute timeout? I'm assuming it's probably something I would have to be rooted for since apps like liteflow don't seem to work. Any help is appreciated.
Redline80 said:
Well after some more homework it sounds like this has been going on for a lot of HTC phones. This is my first one.Is there an app or something that can bypass this 5 minute timeout? I'm assuming it's probably something I would have to be rooted for since apps like liteflow don't seem to work. Any help is appreciated.
Click to expand...
Click to collapse
Light Flow has a "HTC alternative direct mode", and it states "Phones such as the latest HTC One control the LED differently when running in Direct Mode. This option should enable flashing the LED." Granted... I am unsure if you need root for that option. Same with Direct Mode. Only option I am sure that needs Root is, well, Root mode, lol.
Sadly this is all I can think of that might help you, sorry.
You can get lightflow to work this thread in the regular M8 forum kinda lays out how to do it. http://forum.xda-developers.com/showthread.php?t=2719073
[Q] Light flow/LED problem
Hope this helps you out
Sent from my HTC6525LVW using xda app-developers app
elevatorguy said:
You can get lightflow to work this thread in the regular M8 forum kinda lays out how to do it. http://forum.xda-developers.com/showthread.php?t=2719073
[Q] Light flow/LED problem
Hope this helps you out
Sent from my HTC6525LVW using xda app-developers app
Click to expand...
Click to collapse
Thanks man but I don't think this will bypass the 5 minute HTC timeout.
It does for me. You just have to set the light to never time out was going for about 8 10 minutes before I noticed it was blinking sounds off its about bed time
Sent from my HTC6525LVW using xda app-developers app
http://forum.xda-developers.com/showthread.php?p=52101531

Hidden LED

So, just like all the previous Moto phones, this one has a hidden LED too!
Using root and any kernel tweaker with an option to adjust leds, you can switch it on. It seems to be only white as far as I could tell but it's there! (In the middle of the speaker grill on top)
juanacevedo said:
So, just like all the previous Moto phones, this one has a hidden LED too!
Using root and any kernel tweaker with an option to adjust leds, you can switch it on. It seems to be only white as far as I could tell but it's there! (In the middle of the speaker grill on top)
Click to expand...
Click to collapse
Waiting on some more people to try this but that's awesome! And I personally LOVE the LED position
juanacevedo said:
So, just like all the previous Moto phones, this one has a hidden LED too!
Using root and any kernel tweaker with an option to adjust leds, you can switch it on. It seems to be only white as far as I could tell but it's there! (In the middle of the speaker grill on top)
Click to expand...
Click to collapse
Which kernel tweaker. Kernel auditor doesn't do this. Unless I missed it.
Sweet which app exactly was it ?
Sent from my SM-N910V using Tapatalk
Ex Kernel manager!
**** yeah, thanks juan
anyway to make moto use it to let us know when a notification is available in addition to the moto display feature
jphantom said:
anyway to make moto use it to let us know when a notification is available in addition to the moto display feature
Click to expand...
Click to collapse
+1
Anyway to make it work with or without moto display, it would be sweet to have a notification LED on this phone
what is the hidden LED normally for on the other motos?
PolishDude said:
what is the hidden LED normally for on the other motos?
Click to expand...
Click to collapse
Usually to indicate the phone is charging when it gets plugged in from a completely dead state, before it even powers on the screen
Sent from my XT1575
I found the setting in trickster mod, but it only turns it on when charging. Will we be able to use it for notifications?
Assume that LiteFlow would work (paid version) as it does with Nexus 6. Give that a try.
akellar said:
Assume that LiteFlow would work (paid version) as it does with Nexus 6. Give that a try.
Click to expand...
Click to collapse
I remember this app on og nexus from 2012. You think turning it into notification led would work ?
Sent from my SM-N910V using Tapatalk
Hopefully LightFlow would work, I have enjoyed that app for years on my OG Droid.
patt2k said:
I remember this app on og nexus from 2012. You think turning it into notification led would work ?
Sent from my SM-N910V using Tapatalk
Click to expand...
Click to collapse
It has for other Moto devices so I assume so. I'm not personally interested enough to pay for the app to find out though, sorry.
akellar said:
It has for other Moto devices so I assume so. I'm not personally interested enough to pay for the app to find out though, sorry.
Click to expand...
Click to collapse
I guess one could buy it, try it real quick, and if it does not work, get a refund within the allotted time Google Play gives you.
How bright is the LED? It might not be useful because of the front flash unless it's a dim light. From the picture it seems bright though.
Ganondroid said:
How bright is the LED? It might not be useful because of the front flash unless it's a dim light. From the picture it seems bright though.
Click to expand...
Click to collapse
Not sure what the led and the front flash would have to do with each other?
Sent from my XT1575 using XDA Free mobile app
akellar said:
Not sure what the led and the front flash would have to do with each other?
Sent from my XT1575 using XDA Free mobile app
Click to expand...
Click to collapse
The Flash is just an LED anyway, so there would just be a second LED on the front.
Ganondroid said:
The Flash is just an LED anyway, so there would just be a second LED on the front.
Click to expand...
Click to collapse
OK?
Sent from my XT1575 using XDA Free mobile app

Categories

Resources