Screen off and on trigger

Trying to create an idle timer... However it floods my notification.... Also I'd assume its a hard drain oh my battery... Any thoughts how I can improve?
 

Attachments

  • 16836490708718980385926490060345.jpg
    16836490708718980385926490060345.jpg
    1.4 MB · Views: 15
  • 16836490870832019575658653687647.jpg
    16836490870832019575658653687647.jpg
    2 MB · Views: 17

dhj49er

Well-known member
To reduce the number of notifications tick the overwrite existing notifications (in the notification action)

I assume by idle time you mean the total time the screen is off...between charges?

To use a timer running all the time the screen is off will significantly drain the battery.

An alternative approach is to use the magic text system time as follows

When the screen is off set a variable to store system time.

When the screen is on set another variable to store system time

Add the difference of these 2 variables, the idle time, to a third variable used to accumulate the idle time.

This third variable is set to zero when the charger is removed and used to generate total idle time in hours & minutes when the charger is started (the system time is in seconds, as is the total idle time.)

This approach won't drain the battery.
 
MacroDroid has a sleep trigger, maybe that helps
The sleep trigger seems janky, not sure if it counts it as sleeping if it's for example: while I'm at work... Plus I can't find much info and don't really fully understand the slider. What does the 85 on the sleep side mean?
 

dhj49er

Well-known member
The sleep trigger seems janky, not sure if it counts it as sleeping if it's for example: while I'm at work... Plus I can't find much info and don't really fully understand the slider. What does the 85 on the sleep side mean?
What are you trying to achieve?
 
So the goal I'm after is a idle timer for a few macs.... One being when idle for 35min and charging, if above x% slow to normal speed charge.
 
Top