Keep Device Awake

dhj49er

Well-known member
This is a simple macro that I find invaluable, so I thought I would share it.

I run it from the MD Drawer.

On first run, keep device awake is enabled until either the screen is off or the regular interval timeouts. I set the latter to 30 minutes, as this prevents the screen staying on until the battery is exhausted!

This is how I usually use it.

However, on a second run, before the regular interval timeouts, the macro restarts after the wait and the keep device awake is disabled.

So the Keep Device Awake macro acts as a toggle, which is useful as it doesn't require the screen to be turned off.
 

Attachments

  • Screenshot_20230926_080028_MacroDroid.jpg
    Screenshot_20230926_080028_MacroDroid.jpg
    352.7 KB · Views: 39

dhj49er

Well-known member
What is the Keep Awake bool variable for?
For displaying the keep awake status in the MD Drawer - see attached screenshot.

It's a string variable not Boolean, makes it easier to populate the Drawer variables.
 

Attachments

  • Screenshot_20230926_180903_Nova7~2.jpg
    Screenshot_20230926_180903_Nova7~2.jpg
    210.6 KB · Views: 28

Winny57

Member
I also created a similar macro except you just tap the tile to enable or disable
 

Attachments

  • Tuile_éveillé.macro
    3.8 KB · Views: 3
Top