How Easy Caffeinate keeps your Mac awake
It uses the caffeinate tool built into macOS, and changes no system settings.
It uses Apple's own tool
Easy Caffeinate runs /usr/bin/caffeinate, the tool built into macOS, only while a session is on. When you turn it off, the tool stops, and your Mac goes back to its usual sleep settings.
It needs no admin rights and does not change your energy settings.
Which options it uses
| Flag | When | What it prevents |
|---|---|---|
-i | Always | Idle system sleep |
-d | Keep the display on | Display sleep |
-m | Keep the disk from sleeping | Disk idle sleep |
-s | Keep running with the lid closed (on power) | System sleep, on AC power only |
-w | Always | Ties the tool to Easy Caffeinate, so it exits when the app exits |
With the default settings, it runs:
/usr/bin/caffeinate -i -d -w <process id>
Nothing left behind
Because of -w, the tool stops by itself if Easy Caffeinate quits, or even crashes. Your Mac cannot get stuck awake.
See it for yourself
During a session, run this in Terminal and look for caffeinate in the list:
pmset -g assertions