yashsingh1/xdaforums huggingface dataset:
[Moto X General] glimmer00:
Tried the above echo commands as root with no apparent effect on my Dev Edition.
[Moto X General] tallgrasshawk:
So will this have the light shine each time you plug in your phone, or do you need to run this in terminal each time?
[Moto X General] tcrews:
Worked as stated on my Dev Edition. You did plug in a charger?
[Moto X General] cartmenicus:
If you set up a tasked profile it will automatically be run each time you plug your phone in otherwise it will work as long as you don't reboot once you do you'll need to re enter it
[Moto X General] tallgrasshawk:
Thanks for the quick reply.

This is great. Is there any way to make it stick through a reboot?

Also looking around in the files, I see there's red & blue stuff in there. Any way to get those activated?
[Moto X General] cartmenicus:
By setting up tasker I'll send you a pm of how I did it!
[Moto X General] :
Does anyone know if it's one green LED, a multi colored array of LEDs or a color changing LED?
[Moto X General] apurba_ron:
Notification light

That looks awesome! I hope someone figures out how to enable it. I'm too stupid to figure that out.:D
[Moto X General] cartmenicus:
Read the thread...
[Moto X General] Slack3r:
It looks like just one green LED, from this picture at least. Only two solder points running to it for +/- from what I can see:

http://d3nevzfk7ii3be.cloudfront.net/igi/wO5qhu5plVhCLy2D.huge

I'll just be happy if we can get it easily controllable and pulsing. Awesome work so far :)
[Moto X General] jwthompson:
Im able to change the intensity of the led by changing the number in max_brightness "/sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/charging/max_brightness", this file will need to have the permissions changed to rwxrwxrwx. the values are 0-255 with 0 or 1 turning the led off and 2being the lowest intensity im currently using 10

Edit: this file gets set back to 255 on a hard reboot but stays on a soft reboot
[Moto X General] Globalrebel:
Odd that you could do this. Wasn't it already said that this LED was actually connected directly to the battery and has no ties in OS?!?! This seems contrary to belief and may lead the way for us to take control of the light.
[Moto X General] cartmenicus:
Does it just make the led brighter?
[Moto X General] Gundabolu SC:
Looking at the posts its almost evident that it can be controlled via software... And I am not sure about the Moto X but, I own the droid Maxx DE and Skrilax_CZ managed to hack a file(I THINK it was a lib file, not sure) to get the LED to turn on when I get a notification while the screen is OFF it works flawlessly for me... Maybe u should try getting in touch with him!
[Moto X General] :
I like active notification....But only cause there's no led notification. Lol. If this led is ever able to work for notifications, for all apps tho, not just sms....I can finally freeze my very last Motorola app. Lol

;)

Sent from my Moto X cell phone telephone.....
[Moto X General] Kittiesoncrack:
Can I also get that PM, I tried setting up a profile but cant really figure it out
[Moto X General] jwthompson:
it can depending on what the number is changed to, 0 or 1 will turn off the led, numbers 2-255 will turn it back on with 2 being barely lit and 255 is full blast.

Sent from my xt1060vzwDE
[Moto X General] cartmenicus:
What's the default? Cause to me it looks fine default
[Moto X General] jwthompson:
Default is 255

Sent from my xt1060vzwDE
[Moto X General] cartmenicus:
So much progress in these last couple of days. We just need to figure out how to set it up for notifications....
[Moto X General] jwthompson:
Were can I find this hack? I've found http://xdaforums.com/showthread.php?p=47684466 post 222 but the link is dead. Do you have a zip with the hack in it?

Sent from my xt1060vzwDE
[Moto X General] carock:
He had an HDD fail on his server.

Bottom of page 29, someone posted a zip:

http://xdaforums.com/showthread.php?t=2452152&page=29
[Moto X General] nhizzat:
Why did you buy a Moto X again? ?
[Moto X General] savini72:
i love the active display, but man this would be unreal for charging. thats probably the one thing i miss from my GNEX.
[Moto X General] AngryITGuy:
Well, it works perfectly when charging. Its pretty cool!
[Moto X General] Gundabolu SC:
Well that was me who posted the Zip! :P :P
[Moto X General] chrisomnia1:
I think we should ask/recommend/push Motorola to enable this for us. They are pretty consumer friendly.
[Moto X General] :
I bought it cause of its size, vanilla Android, their reputation for the best radios, the price and battery life....not for Motorola bloat. ;)

Sent from my Moto X cell phone telephone.....
[Moto X General] tallgrasshawk:
I wonder, is it possible to run that echo command as some type of script on boot up so it would stick and wouldn't have to set up a Tasker profile.
[Moto X General] AngryITGuy:
Im sure it would, or you could add it to your init if you're rooted. Ill do it in a few and let you know if it works.
[Moto X General] jwthompson:
Here's a init.d file I use...adjust to your own liking https://drive.google.com/file/d/0B_vYyQ9dcULEOVJJSjJhVkxGS1U/edit?usp=sharing https://mega.co.nz/#!AUsW0Dqb!T8Pm9e11HdUsReAZy0dxZ-BnEI6ZREY0z_-ef8IWh88

Sent from my xt1060vzwDE

---------- Post added at 08:47 PM ---------- Previous post was at 07:50 PM ----------

Fixed Links

---------- Post added at 08:47 PM ---------- Previous post was at 08:47 PM ----------

Fixed Links
[Moto X General] parkerbomar:
any chance an app could be created for this.
[Moto X General] tallgrasshawk:
Cool. Thanks. Where do I put this? I'm on stock rom and I don't have /system/etc/init.d folder. Does the stock rom support init.d scripts?
[Moto X General] jwthompson:
stock ROM and kernel should support init.d....you just might have to enable it through using some apps on the play store like. https://play.google.com/store/apps/details?id=com.init.d_installer or https://play.google.com/store/apps/details?id=com.androguide.universal.init.d make sure you have the latest safestrap installed if your locked and a back up before running any of the apps and I would also recommend downloading the latest supersu zip from chainfires website in case you lose root you can reroot using safestrap

Sent from my xt1060vzwDE

---------- Post added at 10:55 PM ---------- Previous post was at 10:44 PM ----------

tbo with ya Im no Dev just a fellow hacker who likes to tinker....that's why I said earlier in the thread that we need more brains on this as I think this is about as far as my knowledge can take us..at least we have somewhat of a charging light now :-p I think this can be made to be used for a notification light..I just don't have the technical knowledge to go any further with it....We need more brains on this project to make it worth while...maybe someone can contact skrilax_cz and get him involved.....Thanks everyone for your help for getting us this far...I'll still be tinkering around with this

Sent from my xt1060vzwDE
[Moto X General] kolyan:
Why did they disable this in the first place since its even in moto x manual that they have online

edit: i see now, i miss-read the manual. led supposed to light up if battery doesnt have enough power to turn on the screen.
[Moto X General] parkerbomar:
We need more people working on this.
[Moto X General] adrialk:
So work it...
[Moto X General] Ryphez:
I would lovethe tasker profile to use this with! Thanks for all the hard work!
[Moto X General] open1your1eyes0:
Has anyone yet tried this? It worked on the Razr HD when the notification LED got disabled even when there was no option to reenable it in the OS itself (someone at Moto overlooked something). :eek:

Official Motorola Notification LED Widget:

https://play.google.com/store/apps/details?id=com.motorola.ledwidget
[Moto X General] jjl468:
I looked at the reviews of the app sorted by my device (Motorola XT1053) and all the reviews stated that it didn't work.
[Moto X General] parkerbomar:
No go with the widget.
[Moto X General] alex94kumar:
This is fantastic. Awesome work to everyone that contributed!

Edit: Tried using Universal init.d and it said stock kernel doesn't support it :(
[Moto X General] jwthompson:
We made reddit lol http://www.reddit.com/r/Android/comments/1ukn3d/moto_xs_green_led_light_under_the_earpiece_has/

Sent from my xt1060vzwDE
[Moto X General] alex94kumar:
Lol that was actually me who posted that xD

Also, I'm about to make a video showing people how to make a Tasker event to enable this on boot!
[Moto X General] alex94kumar:
Made a video showing how to enable the LED light on boot in Tasker!

[YOUTUBE]V90bFkEq92I[/YOUTUBE]
[Moto X General] funmerlin:
Well done! Now I just gotta get the courage to break the warranty and unlock and root my t-mo phone... ;)
[Moto X General] eeshlikhith:
I was wondering, the recent droid series had the notification light officially and we were able to flash the Moto X firmware on them. What if we flash the Droid firmware on the moto X? Maybe that would enable the notification light on the moto X?
[Moto X General] :
In theory....If you can flash one phones roms on another phone...it should work in the reverse then. But...maybe you'd need a kernel made for your phone? A radio? And I'm talking custom roms...don't know about stock firmware. Using RSD or something for our phone? That sounds risky.

The Hercules and skyrocket s2 roms were interchangeable, tho most would flash a kernel made for their phone. I think that was mostly to fix rotation. And needed your phones radio.

I am certainly not brave enough to try this on my phone tho...I'd only do it after many others did and I've read about their experiences and issues. ;) I don't want to have to go back to my S2. Lol

Sent from my Moto X cell phone telephone.....
[Moto X General] ForSquirel:
so been playing with this all morning as I fight off sleep and poking around it says that the following are update-able,

charging, led1, and led2

what are led1 and 2?
[Moto X General] trrubicon06:
Is there a way to copy a blink file in the charging folder and then setup a tasker profile for notification? I see there's a blink file in the red led folder, but it doesn't let me copy into the charge folder.
[Moto X General] alex94kumar:
If i recall, the LED only works when its plugged into USB
[Moto X General] charlie-n:
I have my led set to turn on when charging it just stays green, just used tasker
[Moto X General] mistermojorizin:
works with wireless charging on the dmaxx
[Moto X General] alex94kumar:
Ah, didn't know that. Nice find! Makes sense too :D

Also, this thread is going around the tech world!

Droid life picked it up, Android Authority picked it up, and quite a few smaller tech blogs did as well

[MENTION=5606876]carock[/MENTION] , you're getting pretty famous! lol
[Moto X General] carock:
LOL. Well, jwthompson deserves all the credit for this find. I simply opened the trigger file he found and tried out the different triggers in it.

And thanks for posting that video tutorial. Very helpful.
[Moto X General] dicarli:
Is there any alternative way of doing so without using Tasker (paid app)?
[Moto X General] alex94kumar:
They all reported the story wrong anyways =/ they're all saying the LED is a notification light. I corrected Android Authority's article, and the author changed it, but Droid Life has yet to see my comment and change it. Along with all the smaller blogs
[Moto X General] StephenMilone:
for those who don't have tasker..i made a simple app that does the shell commands

http://xdaforums.com/showthread.php?t=2602689

let me know your feedback in that thread!
[Moto X General] jwthompson:
Anyone Have a droid maxx with [MENTION=2228410]Skrilax_CZ[/MENTION] light hack lights.msm8960.so ? How exactly does it work? http://xdaforums.com/showpost.php?p=47612599&postcount=222 Ive found his contribution to git for the hack located here https://github.com/razrqcom-dev-team/android_device_motorola_xt1080/tree/cm-10.2/modules Im thinking we need to rebuild lights.msm8960.so with his changes and probably more changes will be need to be added, as ive pushed lights.msm8960.so from that thread, but im still having to have to plug in for the notification to work,testing with lightflow here are my backup settings https://drive.google.com/file/d/0B_vYyQ9dcULEZjlULVVFWl82aWM/edit?usp=sharing i can plug in the charger with the screen off and recieve a text and the light will come on :) unlock the phone the light goes out if you have no charger you get no notification :( Here is the hack from [MENTION=2228410]Skrilax_CZ[/MENTION] https://drive.google.com/file/d/0B_vYyQ9dcULEQUdPWVdfLTJrSlE/edit?usp=sharing We can also use https://play.google.com/store/apps/details?id=com.motorola.ledwidget&hl=en to enable the led for text. Also if you use that hack charging will only light the led while the screen is off of course youll need lightflow for charging. Tinker around with this and see what we can find out. Also check out system/etc/motorola specifically the 12m and tcmd folders and also check out system/etc/permissions com.motorola.android.tcmd.xml I think these are settings to control the led also. Have Fun :)
[Moto X General] alex94kumar:
I'm not a developer by any means, but is there any way to simulate the phone being plugged in on Android?
[Moto X General] ForSquirel:
I was messing around with some files and found one that changes state when the usb is (un)plugged in. I can modify it but it doesn't stay persistent long enough for the led to light up. It would probably have to be something along the lines of that
[Moto X General] jwthompson:
Please tell location??

Sent from my xt1060vzwDE
[Moto X General] ForSquirel:
the file

/sys/class/udc/msm_hsusb/device/gadget/suspended

will show a 1 for not connected (usb suspended) or 0 for connected.
[Moto X General] alex94kumar:
Sweet! If we can figure out how to harness that, we could potentially use this as a notification LED!
[Moto X General] bedwa:
seeing that all that I've seen here so far is through the /sys/ folders, it is certainly kernel/ramdisk based. The good question is where in the kernel/ramdisk and how do we initiate it in general for usage.

I may not have a moto x, but this is intriguing none the less. :)
[Moto X General] jwthompson:
I was beginning to wonder this myself

Sent from my xt1060vzwDE
[Moto X General] NWKENT:
Confirmed.. XT1080M (aka) Droid Maxx, Green LED charging, as per post #99..but LED is to the far left on the Maxx..not under the speaker as mentioned in the video on the Moto-X

sent by my 4.2.2_12.15.15

RockMyMoto Root..SafeStrap v3.65

XT1080M (aka) Droid Maxx

(device #1)

Please donate to: jcase & Hashcode (if you can)
[Moto X General] a1sauc3:
What!!

Wow i cant believe it i just checked back in on this and you guys have done so much!!!
[Moto X General] cherrymanoj:
If I didn't have a busted phone I would never have known. On android central someone else mentioned that the light will turn on when plugged in without enough battery to activate the led screen
[Moto X General] pwrdbykyank:
Here is a pic I took for those who wanted to see what the LED looks like when its on. This phone is a Droid Ultra but is the same for maxx and mini, also the moto x I presume. When its on it shows, since the LED is located to the left hidden under the black part of the digitizer, (as ive shown on this thread http://www.droidforums.net/forum/mo...d-ultra-xt1080-disassembly-photos-inside.html) so when it is off you cant tell at all.
[Moto X General] jwthompson:
Thank You [MENTION=4112553]dhacker29[/MENTION] https://twitter.com/dhacker29/status/423301651668013057 http://review.cyanogenmod.org/#/c/57550/
[Moto X General] cartmenicus:
But what about stock?:eek:

Edit: someone needs to get that lib off of him :D and test it....
[Moto X General] jwthompson:
Well hopefully this aosp 4.4 build with that cherry pick that I'm working on compiles then we will have that lib

Sent from my xt1060vzwDE
[Moto X General] flashallthetime:
Looks like dhacker29 has just compiled cm11 with working led notification , testing it now

Edit: it works

Sent on my Moto X
[Moto X General] jwthompson:
Without the charger being plugged in?

Sent from my xt1060vzwDE
[Moto X General] cartmenicus:
Can you post the lib so someonone on lb 4.2 can try it?
[Moto X General] flashallthetime:
I could but which lib is it? Second issue is it doesn't seem to work now. Worked perfectly last nite and now nothing

Sent on my Moto X
[Moto X General] :
Awesome head way on this! Hope it gets figured out to work on stock....I'm not planning on flashing roms on this phone. Don't wanna mess with perfection.

Great work guys...And dhacker!

Sent from my Moto X cellular telephone...
[Moto X General] danger2u:
led notification for apps or only for charging??
[Moto X General] jwthompson:
Search dhacker29 androidhost moto x ....the lib is lights.MSM8960.so...copy it to system/lib/hw and set the correct permissions

Sent from my xt1060vzwDE
[Moto X General] :
Doesn't seem to work on stock 4.2.2 anyway. That sucks. Lol

Tempted to try CM just for this....But I don't really want to use custom roms on this. ;)

Ah well....Getting closer for sure!

Sent from my Moto X cellular telephone...
[Moto X General] cartmenicus:
Damn :(
[Moto X General] flashallthetime:
Lib is based on 4.4.2 it works once for notifications and stops, dhacker has also posted the lib file at

http://androidhosting.org/Devs/Dhacker29/MotoX/

Sent on my Moto X
[Moto X General] jwthompson:
had a dummy moment
[Moto X General] flashallthetime:
Looks like dhacker libs works well on OSE rom

Sent on my Moto X
[Moto X General] iTchill:
The lib dosent seems to work on kangakat......do i need something else exept the libs ?
[Moto X General] flashallthetime:
Yes, cm11 has a section in the settings for notification lights

Sent on my Moto X
[Moto X General] iTchill:
Damnit !! Your right , It sucks ..the light is not really needed but would be a cool addon .
[Moto X General] asuhoops8628:
D Maxx here, tried moving the lights .so file from a recent CM build to /system/lib/hw set permissions and I do not get anything.

I am on stock 4.2.2, anything else need to be done to "activate" this mod??
[Moto X General] flashallthetime:
It doesn't work nor does it work with cm11 nor gummy ROM, it only worked if you had the charger plugged in . its actually useless IMO for notifications .

Sent on my Gummy running Lenoto X
[Moto X General] asuhoops8628:
Ran into the same thing. Managed to finally get it working, but pretty useless for noti's

Been reading the thread loosely, since the SW can control the light, shouldnt there be a way to map this to notifications instead of charger plug in?

I am not a dev, nor have any experience, but there has to be something that can be added/modded within the triggers file or what that file refrences for the operators
[Moto X General] htcone67:
It would be nice to be able to get the light to work with notifications then it would give people a chose to use the light or active notifications.
[Moto X General] jaspreet997:
Does it work on moto g
[Moto X General] BPinard:
This is not the Moto G forum. Probably not.
[Moto X General] hovax615@hotmail.com:
You can try people have confirmed it working with the droid maxx and some other droid

MOTO X Slapped
[Moto X General] brorex:
Moto G already has a notification light. No active display
[Moto X General] NWKENT:
Yep..my notification LED is white..

sent by my 4.3_14.14.14

XT1028 (aka) Moto-G

Please donate to: jcase & Hashcode (if you can)
[Moto X General] djlucask:
i bump that
[Moto X General] MSI1SuPeRmAn:
Yeah white
[Moto X General] jakereeves31:
What happened to all the brilliant minds that were working together here?
[Moto X General] :
Hardware limitations. Not happening. ;)
[Moto X General] kcipopnevets:
AcDisplay from the Play Store enabled the LED on my Droid Maxx, I found it earlier when I got a message. It was also charging at the time, but I'll keep trying.
[Moto X General] Note10.1Dude:
Moto Widget?

Doesn't the Motorola Notification Light Widget fix this? It fixed it on my MOTO G.
[Moto X General] jakereeves31:
Out notification light doesn't require a fix, because I guess it was never intended to be used as a notification light. I don't know why they put it there if we can't use it.
[Moto X General] dubyajaysmith:
You can get it to turn on when charging using MotoGuide - a module for Xposed framework. Works on my moto x. Don't use anything else in that module.
[Moto X General] jakereeves31:
I want it as a notification light permanently, not just while it's charging. Haha. Thanks for your input though.
[Moto X General] NWKENT:
Sir..friend..you may want to try the app. "Tasker"..with my Droid Maxx's, Moto X and Moto G's..I use the app. to turn on LED while charging..and I realize its not what your asking for..BUT..maybe there are certain commands in " Tasker" that can be written for your request..I run stock ROM's on all my devices and still have the "Active Notifications"..but still use the LED for charging, works nice on a wireless charger..anyhow..I don't know the commands in "Tasker" that one would use..but there are a few experts it seems with Tasker..maybe research Tasker..and the commands..

If this has already been "beat to death" in this thread, I'm sorry..I have not read the complete thread..

Sent from my 4.4.3_21.23.4

(Unlocked) XT1045 Moto G 4G LTE

http://waynekent.com/page6.html
[Moto X General] jakereeves31:
Yeah, I tried Tasker and I am no expert either so I got nowhere. Haha. Thanks for your input.
[Moto X General] mrdunlop:
Anyone have any thoughts, I can get the green led light to work while charging, and its holds fine through reboots and all day. However, as soon as I get a text or call notifications it kills it. Does the same thing with both a tasker profile set up and with the apps that people have put together. I cant seem to figure it out. I have disabled led notifications in the system but notifications still seem to kill it.

Running SlimRoms latest SlimKat
[Moto X General] mrdunlop:
I am currently using this apk

http://xdaforums.com/moto-x/themes-apps/app-moto-x-charging-led-control-tasker-t2602689

I have determined the root cause. I am using AcDisplay for the fancy active display features it offers, and it seems to push LED notifications which in turn cause the green led to stop. If I disable this app it runs fine. Now to determine if I can disable the LED light control in that app
[Moto X General] matmutant:
After reading this post, i made some research and tests on my MotoG,

we don't have the same triggers available, but looks like it works in the same way,

Do you have other folders than /charging/ in /sys/class/leds/ on MotoX?

Because i found the following on my device :

charging/

lcd-backlight/

led:flash_0/

led:flash_torch/

rgb/

torch-light/

white/

wled:backlight/

Editing /white/ works too (we only have a white LED), but the settings are overridden when a notification comes, maybe some digging in that direction could solve some questions both on MotoX and MotoG ?

Here is the MotoG dedicated thread and my article
[Moto X General] XAlexander_AlexanderX:
This is from 4.4.4 Rogers Moto X
[Moto X General] matmutant:
so could you please try to light only the blue or red disabling the current way you are using, and then use

echo 255 >/sys/class/leds/blue/brightness

and

echo battery-charging >/sys/class/leds/blue/trigger

to see if it works too ? (if it works the way i think, then getting notification will override the setting)
[Moto X General] XAlexander_AlexanderX:
I'm going to have to wait until I come home from school. Getting ready for school right now
[Moto X General] fakieskr8333:
ive been trying and it doesnt appear to work for me, unless I am not doing something correctly (which is not unlikely).
[Moto X General] matmutant:
did you tried with ./green/ too?

edit : i've just discovered that MotoG and MotoE behaves both in a different way, there is a chance that it is again different for motoX :

MotoG notification LED

MotoE notifications LEDs
[Moto X General] fakieskr8333:
Green appears to work.