Running while sleep?

I'm not sure if it wasn't actually asleep. I just click the Apple menu > Sleep. Leave it. Go outside. Trigger my wake macro remotely, and it wakes up so I can access it via AnyDesk. Like @peternlewis mentioned above, there might be different levels of sleep.

I'll check on "Wake for network access". I'm not good at network though and I thought its only for LAN.

Didn't thought of putting a SwitchBot on the Keyboard :laughing: That's smart.

I can leave the mac mini running without making it sleep. Stupid question, does the lock screen due to inactivity make my device sleep?

No, in fact it doesn't even stop KM macros from running or triggering.

3 Likes

Yes, that's what I meant by "actually asleep".

But there's no need to guess about these things -- in Terminal, pmset -g log will show you sleep/wake event data, with "assertions" listed towards the end. And you can dig through the unified log with the Console app.

1 Like

If you're using macOS Tahoe, it might be an option to call your macro via automations in the Shortcuts app. I have a shortcut in Apple Shortcuts that also works when the computer is asleep.

I have not yet tried whether this also works by calling a km macro via the Apple shortcuts.

Can you show us how you do that? I didn't know that was possible.

Does it run when your Mac is asleep, or is it scheduled for then but queued and run as soon as your Mac wakes up?

I've done some more experiments. It only works if you call a shortcut that uses only shortcut actions. It does NOT work if you call a KM macro from shortcuts. Therefore, KM doesn't "wake up" when calling a macro from shortcuts if the computer is "sleeping."

I would love to see how that works.

Use the following shortcut.
I've blacked out some things for privacy reasons.

That's strange, I created a similar automation shortcut and it didn't run or wake my Mac.

I also have the following settings.
The text is in Dutch because I'm using a Dutch version.

Is Power Nap turned on? (System Settings -> Energy, 3rd option in @Seagram's second pic, probably 2nd option for you.)

Everything I've seen suggests Automations don't run under Power Nap, but perhaps some do depending on the actions they contain.

Yes. As is his. Are you saying I should be able to get an automation to run while my Mac is sleeping?

Yes, as long as you don't use KM macros but built-in shortcut actions.

Great. Any idea why it isn't working for me?

Maybe it works on laptops, but not on desktops. Just a theory.

I only use it on an iMac M1 (so a desktop)

1 Like