Guides
Does Caffeine for Mac keep Slack active?
Published 6 min read
Not on its own. Caffeine, Amphetamine and the `caffeinate` command stop your Mac from going to sleep. That keeps Slack connected, but it does not count as you using the computer. Slack sets you to away after 10 minutes of desktop inactivity, so you can turn away even on a Mac that never sleeps. Only an option that moves the cursor, such as the one in Amphetamine, changes that, and it then works like a mouse jiggler.
What these tools do
All three tools solve the same problem: stopping the Mac, and sometimes the display, from sleeping.
- Caffeine is a small, free menu bar app with a coffee cup icon. Click it, and the Mac stays awake, indefinitely or for a set time. It was created years ago and is now maintained by IntelliScape Solutions.
- Amphetamine is a free app from the Mac App Store, by William Gustafson. It keeps the Mac awake, with or without the display, and starts sessions automatically with triggers: a given app running, a power adapter, a Wi-Fi network and more. It can keep a MacBook awake with the lid closed, which on Apple silicon requires installing an extra script. It also has an option to move the cursor periodically.
- caffeinate is a command built into macOS. Its manual describes it as a tool that "creates assertions to alter system sleep behavior".
The caffeinate command in practice
Open Terminal and type a command. Each letter is an option from Apple's manual page:
# Prevent idle sleep until you press Ctrl+C
caffeinate -i
# Keep the display on as well, for one hour (3,600 seconds)
caffeinate -d -i -t 3600-dprevents the display from sleeping.-iprevents the system from idle sleeping. It is the default when no option is given.-sprevents the system from sleeping, only on AC power.-udeclares that the user is active. If the display is off, it turns it on. Without-t, this lasts 5 seconds.-tsets a duration in seconds.
Why staying awake is not the same as being active
Slack's help center gives two rules for availability: you are active while Slack is open on your computer or phone, and you are set to away after 10 minutes of desktop inactivity. Preventing sleep satisfies the first rule, because Slack stays open and connected. It does nothing for the second, because no one is using the computer.
In other words, a caffeinated Mac avoids one cause of turning away, the disconnection that comes with sleep, but not the other one, idle time. You can see it for yourself: run caffeinate -d, leave the Mac alone for a quarter of an hour, and check your dot from your phone.
When the cursor moves, it becomes a jiggler
Amphetamine's automated cursor movement is a different matter: moving the cursor is input, which generally keeps Slack green while it runs. At that point it is a software mouse jiggler, with the same limits: the Mac must stay awake and unlocked, and the tool runs on your computer, where IT tools can see it. See Mouse jiggler alternatives and Are mouse jigglers detectable?.
Do you need an app at all?
If all you need is a Mac that does not sleep while plugged in, macOS has a setting for it. Apple's guide describes an option to prevent automatic sleeping when the display is off, found in System Settings under Energy on recent desktop versions, or under Battery and its options on laptops. The exact wording varies with your Mac and macOS version. Apple notes that preventing sleep can increase power consumption.
And on Windows?
The equivalent is PowerToys Awake, a free Microsoft utility. Microsoft's documentation says it keeps the computer awake without changing your power plan, with an option to keep the screen on. The same reasoning applies: it prevents sleep, it does not generate activity.
If the goal is a green dot with the lid closed
Keep-awake tools keep a computer running. If what you want is your Slack dot green during your working hours while your Mac is closed or switched off, the session has to be kept open somewhere else. That is what Pastille does, from our servers, on the schedule you set. The connection comes from our servers and can appear in Slack's access logs on paid plans, so check your company's rules. The full comparison is in How to keep Slack active.
Quick answers
- Does caffeinate keep Slack active?
- It keeps your Mac awake, so Slack stays connected, but Slack can still set you to away after 10 minutes without activity.
- Is Caffeine for Mac free?
- Yes, Caffeine and Amphetamine are both free, and
caffeinateis built into macOS. - Can I keep my MacBook awake with the lid closed?
- Amphetamine offers a closed-display mode; on Apple silicon Macs it requires installing an additional script. Without it, closing the lid normally puts the Mac to sleep.