FORUMS
Remove All Ads from XDA
H10 Turbo

[Tutorial] Notification Led for the Moto G3 with Tasker (experimental)

3,145 posts
Thanks Meter: 7,551
 
By StrangerWeather, Recognized Contributor on 18th September 2015, 10:39 AM
Post Reply Email Thread
I've been using this when working in my office with my phone connected to my laptop, and find that it works really well, so I decided to share.

Cons:
- Your phone needs to be connected to a power source
- There is a 10 to 20 seconds delay between when the notification arrives and when the led light turns on
- The led light is white. No other colour is available
- You need to be rooted
- You need to buy Tasker and the AutoNotification plugin which are not cheap.

Pros:
- Your led light turns on whenever you get a notification
- You can choose the apps for which you want the notification led to come on
- The led light switches off when you dismiss your notification
- The led light comes on even if your screen is on
- You don’t have to look at your phone continually to catch sight of the Moto Display screen

You need:
- Tasker and AutoNotification from the PlayStore

_________________________________________

TUTORIAL

1. Install Tasker and AutoNotification on your Moto G3
2. Go to Tasker

Create 1st Task:
1. Click on Tasks and on the + button
2. New Task Name: Led On, then tick
3. Click + to add an Action
4. Choose Code
5. Choose Run Shell
6. In Command, type: echo battery-charging-blink-full-solid >/sys/class/leds/charging/trigger
7. Click Use Root
8. Click your back button

Create 2nd Task:
1. Click on Tasks and on the + button
2. New Task Name: Led Off, then tick
3. Click + to add an Action
4. Choose Code
5. Choose Run Shell
6. In Command, type: echo none >/sys/class/leds/charging/trigger
7. Click Use Root
8. Click your back button

Create a Profile:
3. Click on Profile, click the + button and choose State
4. Click on Plugin
5. Click on AutoNotification
6. Click on Intercept
7. In Configuration, click on the pen icon
8. Tick the Event Behaviour option
9. Click on Apps
10. Select all the apps that you want led notifications for
11. Click OK
12. Click on the tick at the top of the screen
13. Click your back button
14. Choose Task: Led On
15. Long Press on Led On
16. Click Add Exit Task
17. Choose Led Off
18. Click your back button
19. Success!!!

Enjoy! Any questions ask here…
The Following 3 Users Say Thank You to StrangerWeather For This Useful Post: [ View ] Gift StrangerWeather Ad-Free
 
 
18th September 2015, 09:52 PM |#2  
Senior Member
Thanks Meter: 44
 
More
I use tasker and the camera flash.

Sent from my MotoG3 using XDA Free mobile app
The Following User Says Thank You to krsmit0 For This Useful Post: [ View ] Gift krsmit0 Ad-Free
18th September 2015, 10:11 PM |#3  
StrangerWeather's Avatar
OP Recognized Contributor
Flag Oxford
Thanks Meter: 7,551
 
More
Quote:
Originally Posted by krsmit0

I use tasker and the camera flash.

Sent from my MotoG3 using XDA Free mobile app

Too bright for me...😉
19th September 2015, 01:36 AM |#4  
Senior Member
Thanks Meter: 65
 
More
I appreciate the time you put in to this tutorial. For me though having to have the phone plugged in is a deal breaker. If I'm tethered to my desk there are better options like Pushbullet, which is in fact what I use at work. It puts notifications right up on my PC monitor.

I do miss the multi-colored light on my Nexus 4. It is too bad that manufacturers are moving away from them.

Sent from my MotoG3 using XDA Free mobile app
The Following User Says Thank You to Selmak For This Useful Post: [ View ] Gift Selmak Ad-Free
19th September 2015, 10:46 AM |#5  
skr975's Avatar
Member
Chennai
Thanks Meter: 19
 
More
Why am I unable to see LED notification light on my XT1550 when charging?? Where is the led?
19th September 2015, 12:40 PM |#6  
StrangerWeather's Avatar
OP Recognized Contributor
Flag Oxford
Thanks Meter: 7,551
 
More
Quote:
Originally Posted by skr975

Why am I unable to see LED notification light on my XT1550 when charging?? Where is the led?

Hi! That's because it is a hidden led which needs to be implemented using a third party app such as Moto Led or Tasker...
The Following User Says Thank You to StrangerWeather For This Useful Post: [ View ] Gift StrangerWeather Ad-Free
19th September 2015, 02:25 PM |#7  
acejavelin's Avatar
Recognized Contributor
Flag Bismarck, ND
Thanks Meter: 3,186
 
Donate to Me
More
Thank you... but as much as I appreciate you going through the trouble to make this tutorial, this isn't very useful... All this is doing is taking a hard coded charging LED which is disabled in software and toggling the charging state on and off when a notification (or other trigger) is active, not really a notification light, and only if the device is plugged in, which most people don't do, or need to do, during an average day. The fact that the circuit which drives this LED is not powered unless an external charging source is connected makes most of these projects to use it frivolous, but I hope I am wrong to be honest.
19th September 2015, 03:58 PM |#8  
arnabJ's Avatar
Senior Member
Flag Asansol
Thanks Meter: 2,980
 
Donate to Me
More
May be offtopic but can't a custom kernel make it possible to use led for notifications??

I know that's possible because I have seen such projects.
Even Moto X play got a custom kernel which activates led for notifications.

Y not someone with knowledge of compiling kernels try this with the help of the user who made that kernel for X play.
============================== @squid2 can you help make the kernel for G3??
==============================
Sent from my SM-A800F using XDA Free mobile app
19th September 2015, 04:28 PM |#9  
squid2's Avatar
Recognized Developer
Flag Ontario
Thanks Meter: 9,931
 
Donate to Me
More
Quote:
Originally Posted by SArnab©®

May be offtopic but can't a custom kernel make it possible to use led for notifications??

I know that's possible because I have seen such projects.
Even Moto X play got a custom kernel which activates led for notifications.

Y not someone with knowledge of compiling kernels try this with the help of the user who made that kernel for X play.
============================== @squid2 can you help make the kernel for G3??
==============================
Sent from my SM-A800F using XDA Free mobile app

I had spent many hours examining LED notifications on osprey. Unfortunately, we are held back by a hardware difference beteen surnia/lux and osprey. All of the Motorola devices equipped with stml0xx sensor hub were originally equipped with a notification LED that could be controlled by both the sensor hub and the power management IC.

Earlier this year, Motorola decided to drop the LED notification feature and removed the capability from the kernel. This decision was made about a month after the design of the production surnia hardware was completed, and a month before production osprey hardware design was complete. As a result, the hardware for LED notifications controlled by the sensor hub was left in on surnia, but the relevant traces and resistors were removed on osprey. They probably did this to reduce complexity, and it may have saved them a tenth of a cent per device on resistors. They didn't remove the trace on lux, perhaps because it had gone out of mind by the time they were paying attention to production lux hardware, or perhaps because they realized that it was useless to do so, and would only limit the capabilities of the device.

The consequence of this is that the LED can only be controlled through the PMIC on osprey, while it can be controlled by the PMIC or sensor hub on surnia and lux. The sensor hub was designed to support LED notifications, and can run the LED arbitrarily. The PMIC is physically designed to only provide power to the LED driving circuit when a charger is plugged in.

Unfortunately, as a result of this hardware limitation, I don't think it will be possible to have LED notifications with the device unplugged on osprey.
The Following 10 Users Say Thank You to squid2 For This Useful Post: [ View ]
19th September 2015, 05:53 PM |#10  
arnabJ's Avatar
Senior Member
Flag Asansol
Thanks Meter: 2,980
 
Donate to Me
More
Quote:
Originally Posted by squid2

I had spent many hours examining LED notifications on osprey. Unfortunately, we are held back by a hardware difference beteen surnia/lux and osprey. All of the Motorola devices equipped with stml0xx sensor hub were originally equipped with a notification LED that could be controlled by both the sensor hub and the power management IC.

Earlier this year, Motorola decided to drop the LED notification feature and removed the capability from the kernel. This decision was made about a month after the design of the production surnia hardware was completed, and a month before production osprey hardware design was complete. As a result, the hardware for LED notifications controlled by the sensor hub was left in on surnia, but the relevant traces and resistors were removed on osprey. They probably did this to reduce complexity, and it may have saved them a tenth of a cent per device on resistors. They didn't remove the trace on lux, perhaps because it had gone out of mind by the time they were paying attention to production lux hardware, or perhaps because they realized that it was useless to do so, and would only limit the capabilities of the device.

The consequence of this is that the LED can only be controlled through the PMIC on osprey, while it can be controlled by the PMIC or sensor hub on surnia and lux. The sensor hub was designed to support LED notifications, and can run the LED arbitrarily. The PMIC is physically designed to only provide power to the LED driving circuit when a charger is plugged in.

Unfortunately, as a result of this hardware limitation, I don't think it will be possible to have LED notifications with the device unplugged on osprey.

Thanks for clearing the clouds.
Is it possible to fake plugged state?
If yes than may be it will be possible to make it work as expected.

Sent from my SM-A800F using XDA Free mobile app
19th September 2015, 05:55 PM |#11  
StrangerWeather's Avatar
OP Recognized Contributor
Flag Oxford
Thanks Meter: 7,551
 
More
Quote:
Originally Posted by acejavelin

Thank you... but as much as I appreciate you going through the trouble to make this tutorial, this isn't very useful... All this is doing is taking a hard coded charging LED which is disabled in software and toggling the charging state on and off when a notification (or other trigger) is active, not really a notification light, and only if the device is plugged in, which most people don't do, or need to do, during an average day. The fact that the circuit which drives this LED is not powered unless an external charging source is connected makes most of these projects to use it frivolous, but I hope I am wrong to be honest.

Hey there, no worries, it only took about 5 minutes to write the tutorial. I said it was "experimental" because it is not a properly functional hack. It's just a bit of fun for people who like messing around with Tasker. I happen to find it useful, but like you, I would much prefer for the led to be fully functional. I really miss this from the Moto G1.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes