All posts

Screen and display

How to Keep Your Mac Screen Awake: WakeMode vs the caffeinate Command

October 26, 2026

A question that comes up a lot: does a site like WakeMode actually work on a Mac, or does macOS block it? Short answer, it works. You open the page, press Start, and your screen stays on. But macOS and your browser have a few rules about when they'll let a website keep the display awake, and knowing them saves you a lot of "why did my screen go dark anyway?" moments.

There's also the Mac's own option, the caffeinate command in Terminal. It's a good tool, but it does a slightly different job. Here's how to keep your Mac screen awake with either one, and when each makes sense.

How it works on a Mac

WakeMode uses a browser feature called the Screen Wake Lock API. The page asks the browser to keep the display on, and the browser passes that request on to macOS. It works in current versions of Safari, Chrome, Edge and Firefox on macOS. If your Mac and browser are reasonably up to date, you're covered.

Nothing gets installed and your settings don't change. When the session ends or you close the tab, your Mac goes straight back to its normal display sleep timer.

The macOS rules to know

The tab has to stay visible. Switch to another tab in the same window, minimize the window, or move to a different desktop, and the browser drops the wake lock. Your screen then dims on its normal schedule. When you come back, WakeMode picks the lock back up automatically.

The workaround is easy: put WakeMode in its own window and leave it somewhere on screen, even small, next to whatever you're working on. One catch: in some browsers, a window that's completely covered by other windows counts as hidden too. Leave a bit of it showing.

Closing the lid wins. Shut a MacBook and it sleeps, whatever any app or website says. (The exception is clamshell mode with an external display and power connected, which macOS treats differently.)

Low Power Mode can cut it short. On battery with Low Power Mode on, macOS and the browser can be stricter and may refuse or release the lock to save power.

Locking your Mac ends it. If you lock your Mac yourself, with Control-Command-Q or Apple menu > Lock Screen, the page is no longer visible and the wake lock stops. That's by design.

Work Macs may have the final say. If your Mac is managed by your company, IT can enforce a screen lock after a set time. A website can't override that, and it shouldn't. If the forced lock is getting in your way, talk to your IT team.

It won't keep you "Active" in Teams or Slack. Chat apps judge your status by keyboard and mouse activity, not by whether the screen is on. WakeMode keeps the display awake. It doesn't fake any input.

What caffeinate does

caffeinate is a command built into macOS. You open Terminal, type a command, and your Mac stays awake until you stop it with Control-C or close the window.

The important detail is that plain caffeinate and caffeinate for your screen aren't the same thing:

  • caffeinate on its own stops the Mac from going to sleep when idle, but the display can still turn off.
  • caffeinate -d keeps the display awake, which is usually what people actually want.
  • caffeinate -d -t 3600 keeps the display awake for 3,600 seconds (one hour), then stops by itself.

You can add an -i to the last two to stop the Mac sleeping as well as the screen.

The big strength of caffeinate is that it doesn't care what's on screen. Minimize Terminal, switch desktops, cover it with other windows, and it keeps working. That makes it the better choice for things that run in the background, like a big download, a backup or a long export, where you don't need to watch the screen.

WakeMode or caffeinate?

WakeMode

caffeinate

Setup

Open a page, press Start

Open Terminal, type a command

Timed sessions

Presets from 15 minutes to 4 hours, Unlimited, or custom up to 24 hours

Only if you work out the seconds yourself (-t)

Can you see it running?

Status and time left on the page and in the tab title

Nothing, unless you remember the Terminal window

Stopping

Press Stop or close the tab

Control-C or close Terminal

Works with the window hidden

No, the tab needs to stay visible

Yes

Keeps the whole Mac awake

No, only the screen while you're on the page

Yes, with the right flags

 

WakeMode is the easy choice when you want the screen on while you're actually looking at something: a recipe, a long document, a presentation, a dashboard, a timer. It's one click, you can see how long is left, and because a timed session ends by itself, you can't accidentally leave your Mac awake all night.

caffeinate is the better choice when the Mac needs to keep working while you do something else or walk away, and you're comfortable with Terminal. The one thing to watch is that it's easy to forget it's running. If your Mac never seems to sleep, check for a Terminal window you left open.

Or just change the setting

If you want the screen to stay on longer every day, not just now and then, change it in System Settings > Lock Screen. Adjust "Turn display off on battery when inactive" and "Turn display off on power adapter when inactive". That's permanent and doesn't need a tab or a command. Just remember to set it back if you're on battery a lot.

For everything in between, the quick fix is the browser tab: open it, pick a time and get on with your work.