If DND is enabled macro for screen on dont run

Nolan

Member
Hi

this is very odd, if DND is enabled, my macro for turning screen on shows itt ran but screen is not turned on

Is that intentional ?

I use a galaxy s21 ultra, android 11

PS if i force run a macro that already runs, will i get 2 instances running simultaneously ?
(eg a sound to fire every 5 minutes and if running in 2 instances offset eg with 1 minut, i will get a sound after 5 minutes and then again 1 minut after etc)

regards Nolan
 
Last edited:

Pseudocyclic

Well-known member
thanks. I can see there is a condition wether a macro has been run within xx minutes. But is there a condition to test if a given macro is currently running ?
No, but you can create your own. For example, set a variable when the macro begins and again when it ends.
 

Nolan

Member
I tested the wake screen on a notification reecived, on my galaxy s9 plus running android 10. Same problem: macrodroid cant wake the screen when DND is enabled. I tried the same with another app AodNotify - this app turns on the screen even when in DND mode, so it must be possible, it just dont work on macrodroid.

Any ideas of the culprit and a solution ?

thanks

Nolan
 

Elenkhos

Member
I tested the wake screen on a notification reecived, on my galaxy s9 plus running android 10. Same problem: macrodroid cant wake the screen when DND is enabled. I tried the same with another app AodNotify - this app turns on the screen even when in DND mode, so it must be possible, it just dont work on macrodroid.

Any ideas of the culprit and a solution ?

thanks

Nolan
Sounds a device-specific issue. To be sure I tested this with my device and the screen turns on when DND is enabled.
 

Nolan

Member
thanks, but that cannot be the full explanation i think, because as said another app aodNotify works fine on both my devices, hence it must be something related to macrodroid (maybe in combination with a samsung device) ?

what macro did you write to test is ? i can try to test with the exact same here on my end
 

Elenkhos

Member
thanks, but that cannot be the full explanation i think, because as said another app aodNotify works fine on both my devices, hence it must be something related to macrodroid (maybe in combination with a samsung device) ?
I would also suggest you to check your DnD settings if there is a setting that prevents screen to turn on (even though you mentioned other apps can turn the screen on).
 

Nolan

Member
I just ran the exact macro. I embedded a audio to play so i was sure the actions were executed. What happened was: The autio fired and the DND was enabled which i could see upon opening the screen again. But the screen did not come on. And i have the exact same settings as you.

If i disable the DND command in your macro - screen turns on correctly

Same problem on 2 samsung devices

So something weird is going on

Thanks

Nolan
 
Last edited:

MacroDroidDev

Administrator
Staff member
Now that I finally have a modern Samsung device I am able to test this and I can recreate on Samsung. Must be something Samsung specific that blocks the mechanism I use to turn the screen on. I will try and see if there is any other way I can wake the screen on this device if I can ever find the time.
 

MacroDroidDev

Administrator
Staff member
And it turns out I have already got an alternative in the app. The bottom option uses an alternative mechanism which seems to work on Samsung. Sorry if this is not obvious. It's not desirable to make this alternative the default because it relies on throwing up a temporary screen to wake up the device which may interfere with the app launched/closed triggers.
 

Nolan

Member
Hi
Ok thanks that sounds great. Indeed that works, but how can that interfere with the launching app? So far it seems to work.

Regards Nolan
 
Last edited:
Top