PowerToys Awake for Mac: the equivalent of every mode and flag

PowerToys only runs on Windows. Here is the Mac equivalent of each Awake mode, keep screen on and --pid, with caffeinate or a free app that runs on both.

PowerToys Awake keeps a Windows PC awake without touching its power plan. There is no Mac version: PowerToys is a set of Windows utilities. But every Awake mode has an equivalent on a Mac, either with caffeinate, the command macOS already includes, or with a free app that does the same on both systems. Here they are, mode by mode.

What PowerToys Awake does

According to Microsoft’s documentation, Awake has four modes, chosen from its settings or its tray icon:

  • Keep using the selected power plan: Awake runs but changes nothing.
  • Keep awake indefinitely, until you turn it off.
  • Keep awake for a time interval, then back to normal.
  • Keep awake until expiration: until a date and time you pick.

On top of that, Keep screen on stops the displays from turning off, but only while the PC is unlocked: lock it and Windows turns the screen off on its usual schedule, while the keep-awake mode stays active. From the command line, PowerToys.Awake.exe takes --time-limit (seconds), --expire-at, --display-on, and --pid, which keeps the PC awake until that process ends. When Awake exits, your normal power settings are back, because it never changed them. The other popular Windows tool, Caffeine, works by faking a keypress instead: how Caffeine for Windows compares.

The Mac equivalent of each mode

PowerToys AwakeMac, with caffeinateMac and Windows, with Keep Awake
Keep awake indefinitely caffeinate -i, until Control-C “Until I turn it off”
For a time interval caffeinate -i -t 3600 (seconds) Presets from 30 minutes to 8 hours, or any length with “Other…”
Until expiration No flag: work out the seconds (below) “Other…” with a clock time (until 18:30)
Keep screen on Add -d On by default; optionally turns screens off when idle
--pid caffeinate -i -w 4821 “While a process runs”, by process name

With caffeinate, in Terminal

caffeinate is what most Mac keep-awake apps use under the hood. The flags that map to Awake:

  • -i prevents idle sleep and lets the display turn off. It is the closest thing to Awake with “Keep screen on” switched off.
  • -d keeps the display on as well, like “Keep screen on”.
  • -t 3600 stops after that many seconds, like --time-limit.
  • -w 4821 waits for that process ID to exit, like --pid. Even simpler, put the command after it: caffeinate -i ./backup.sh keeps the Mac awake exactly as long as the script runs.

There is no --expire-at. To stay awake until 5 pm, let the shell do the math:

caffeinate -i -t $(( $(date -j -f "%H:%M" "17:00" +%s) - $(date +%s) ))

Every flag, with examples, is in our caffeinate guide.

Without Terminal: Keep Awake, on both systems

Disclosure: this one is ours. Keep Awake is built into Webstarted Toolbox, a free menu bar app for macOS 12 and later that also runs on Windows 10 and later, so if you use both machines it is the same tool in the same place:

  • A length, a time or until you turn it off: presets of 30 minutes and 1, 2, 4 and 8 hours, “Other…” for any length or a clock time (until 18:30), or indefinitely.
  • “While a process runs”: type a process name (say claude or ffmpeg) instead of a process ID, and it lets go when the process ends.
  • Screens off, computer awake: after 5 to 30 idle minutes it can turn the screens off and, optionally, lock the session first.
  • “Only when plugged in”: on battery it pauses, and resumes when you plug in.

What it does not have: a lid-closed mode for a MacBook on battery. For that, see the apps in our Amphetamine alternatives comparison.

What neither one does

PowerToys Awake, caffeinate and Keep Awake keep the system awake. None of them move the mouse, so a chat app can still show you as away. And a MacBook with its lid closed sleeps unless it is plugged into power and an external display. If what you need is to leave a job running with the screen off and the session locked, there is a full guide: keep your computer awake while you are away.

Sources

Get Webstarted Toolbox

Keep Awake comes built into Toolbox: free, no account, macOS 12 and later and Windows 10 and later.

Free beta · macOS · Windows (x64) · Signed & notarized · No account required