Keeping your Mac awake isn’t the same as staying Available
caffeinate, Amphetamine and Energy settings stop your Mac from sleeping, but Teams can still mark you Away. Here’s the difference between sleep and idle time, and which tool to use for which job.
A common first try at keeping Microsoft Teams green is to stop the Mac from sleeping: run caffeinate in Terminal, install Amphetamine, or turn off display sleep. The screen stays on, the Mac stays awake, and five minutes later Teams still says Away.
That’s because your Mac tracks two different things, and chat apps only care about one of them.
Sleep and idle time are two separate things
Sleep is about power. When nobody uses the Mac for a while, macOS turns off the display and later puts the whole machine to sleep. Tools like caffeinate and Amphetamine hold that off by telling macOS "something important is running, stay awake".
Idle time is about you. It’s the number of seconds since the last key press, click or pointer movement, and it keeps growing whether the Mac is awake or not. Only real input, or something that posts input on your behalf, resets it.
Teams, Slack and Zoom read idle time to decide whether you’re at your desk. A Mac that’s wide awake with nobody touching it is, as far as they’re concerned, an empty chair. Teams marks you Away after about five minutes of it. (Going to sleep marks you Away too, so you need the Mac awake and not idle.)
The tools, and what each one is for
| Tool | What it does | Keeps chat apps Available? |
|---|---|---|
caffeinate (built in) | Holds off display or system sleep while it runs | No |
| Amphetamine, KeepingYouAwake | Menu bar apps that keep the Mac awake on a schedule or until you stop them | No |
| Energy and Lock Screen settings | Change when the display turns off and the Mac sleeps | No |
| A mouse jiggler | Posts small pointer movements, which resets idle time | Yes, while it runs |
caffeinate
Every Mac ships with caffeinate, a Terminal command that keeps the Mac awake for as long as it runs:
# Display on until Control-C
caffeinate -d
# No idle sleep for an hour
caffeinate -i -t 3600
-d stops the display from sleeping, -i stops the system from idle sleep, and -t sets a timeout in seconds. It’s perfect for a long download, a backup or a build. It doesn’t press keys or move the pointer.
There’s also a -u flag that declares user activity and wakes the display, with a five-second default. It exists for waking a sleeping screen, not for holding a chat status, so don’t count on it for that.
Amphetamine and KeepingYouAwake
These menu bar apps wrap the same power assertions in a friendlier interface: keep awake for an hour, until a download finishes, while a certain app is open, and so on. They’re excellent at what they do. Like caffeinate, they’re about power, not presence.
System Settings
You can change when the display turns off under System Settings › Lock Screen, and on a laptop you can keep the Mac from sleeping on the power adapter under Battery › Options. These are good defaults for a desk setup. They don’t touch idle time either.
So what does keep you Available?
Something has to reset idle time, which means real input or a tool that posts a little on your behalf. That’s what a mouse jiggler does. We compare the kinds in Mouse jigglers for Mac, explained.
Awaynt is one. It waits until you’ve been idle for two minutes, nudges the pointer a few pixels and back, and checks at least every two minutes, so you stay Available through a short break. It can also keep the display on or let it sleep as you prefer, so for most desk setups you won’t need a separate keep-awake app.
Use the right tool for the job:
- A long download, render or backup, and nobody’s waiting on your status:
caffeinateor Amphetamine. - A five-minute break and you don’t want Teams to say Away: a jiggler like Awaynt.
- Leaving for longer than a short break: neither. Lock your Mac and let your status say so. See Is it OK to use a mouse jiggler at work?
The short version
- Sleep is about power; idle time is about you. Chat apps watch idle time.
caffeinate, Amphetamine and Energy settings keep the Mac awake but leave idle time growing, so Teams still marks you Away after five minutes.- Only input resets idle time. For short breaks, that’s what a jiggler is for.
Download Awaynt for free to cover the short breaks.