Or Continue to Thread: Moto X has a notification ligh…
Find Your Device:
2nd January 2014, 08:05 PM   |  #45  
Junior Member
Thanks Meter: 79
 
29 posts
Join Date:Joined: Dec 2013
More
Quote:
Originally Posted by jwthompson

first off you will need root secondly this only a command to trigger it

adb shell

su

echo heartbeat >/sys/class/leds/charging/trigger

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

Nice work figuring that out.
Now, I can have an led turn on again when my phone is finished charging. Missed that from my old phone. Thanks!

FYI, this is the fullpath (the other is a symlink):
/sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/charging/trigger

I tested the other triggers, and here are my results:
none
-off
mmc0
- HDD activity
rfkill0
- didn't do anything for me, but it might light up when bluetooth is connected
rfkill3
- wifi connected
- when I turned off wifi, the light went out, but it didn't go back on when I turned it back on - when I checked trigger file, rfkill3 was replaced by rfkill4, which worked the same way
battery-charging
- on while charging, off when charged
battery-charging-or-full
- on while charging/charged
battery-charging-blink-full-solid
- on when charged, but it didn't light up at all for me while charging
usb-online
- didn't do anything for me (thought it would work when usb connected)
pm8921-dc-online
- didn't do anything for me (thought it would work when connected to outlet)

And we already know what heartbeat and battery-full do. Oh, it took a minute for the light to go on for the battery-charging triggers for some reason.
The Following 16 Users Say Thank You to carock For This Useful Post: [ View ]