How to Keep Your Mac Awake and Stop It from Sleeping

The easiest way to keep your Mac awake is Shake It On, a menu bar app that moves your mouse slightly to reset the idle timer. It runs in the background with smart conditions so it only activates when you need it.

Why does your Mac keep going to sleep?

Every Mac and MacBook has an idle timer. No mouse movement, no keyboard input for a few minutes, and macOS dims the display. A little longer and the whole system goes down. Downloads stop. Remote sessions drop. That render you started three hours ago? Gone.

Sleep is fine most of the time. Saves battery, keeps things cool. The problem is when it kicks in at exactly the wrong moment.

Why the built-in options fall short

You can drag the Energy Saver slider to "Never" in System Settings. That works, technically. But it's permanent until you remember to change it back. Leave it overnight on a MacBook and you'll wake up to a dead battery. There's no "stay awake only while I'm downloading" or "stay awake on weekdays between 9 and 5."

And if you're at a company where IT manages the machines, those settings might be locked behind an MDM profile. You can't touch them.

Note
Built-in sleep settings are all-or-nothing. They don't know what you're doing or when you need your Mac awake.

The better approach: Shake It On

Shake It On sits in your menu bar and nudges your mouse cursor every few seconds. Subtle, smooth movement. macOS sees it and resets the idle timer, same as if you'd bumped the mouse yourself.

Where this really matters: remote desktop sessions where the host software has its own idle timeout that system-level tricks don't touch.

Smart conditions

The useful part is telling it when to run. You're not keeping your Mac awake 24/7. You're keeping it awake when it matters:

  • Only Shake If audio is playing, a specific app is running, Wi-Fi is connected, an external display is attached, CPU usage is above a threshold, or an external disk is connected
  • Paused When the display is locked, screensaver is running, Focus/DND is on, camera is in use, a certain app is in the foreground, or you're on battery
  • Scheduled to certain hours and days

So your Mac stays awake during a 3-hour render, then sleeps normally when you walk away for the night. No babysitting.

Shake It On lives in your menu bar and uses organic mouse movement to prevent sleep. Set it once and forget it.

Why mouse movement works better

Shake It On moves the cursor with smooth, natural-looking motion. Why does that matter?

  • Managed Macs: Shake It On doesn't change any settings your IT department manages. It moves the mouse, and macOS sees real input. Check your company's rules first.
  • Remote desktop: VNC, SSH, Screen Sharing, TeamViewer all have their own idle timeouts separate from macOS. Mouse movement registers as real activity to the remote software, not just the OS.
  • Messaging apps: Slack and Teams decide your status based on mouse and keyboard activity. System-level sleep prevention won't help here. Mouse movement will.

Getting started

Shake It On runs on macOS 14 (Sonoma) or later, Intel or Apple Silicon.

  1. Download and install from the website
  2. Grant Accessibility permission when prompted
  3. The app shows up in your menu bar
  4. Open Settings, pick your shake interval and conditions
  5. Done. It runs in the background from here.

Defaults work well out of the box: shake every 5 minutes, pause on battery and when the display is locked. Tweak from there if you want.

Frequently Asked Questions

Does keeping my Mac awake waste battery?
It uses more battery than sleep mode, but apps like Shake It On can automatically pause when you're on battery power. The impact is minimal when plugged in.
Will this work with my company's IT settings?
Shake It On doesn't change any settings your IT department manages. It moves the mouse, and your Mac sees real input. If your company manages your Mac, check its rules first.
Can I keep my Mac awake but let the display sleep?
Not in the current version (1.0.7). Today Shake It On keeps the Mac awake by moving the mouse, so the screen stays on too. An 'Allow display to sleep' option that keeps the system awake while the screen turns off is coming in the next update.
Does this work on Apple Silicon Macs?
Yes. All methods described here work on both Intel and Apple Silicon Macs running macOS 14 (Sonoma) or later.
Keep your Mac awake the easy way.
Shake It On lives in your menu bar and uses organic mouse movement to prevent sleep. Set it once and forget it.
One-time purchase. No subscription. Free updates forever.
Lifetime license · macOS 14+
Apple Pay, Google Pay or card. Your download starts right after payment, and you can re-download anytime with your purchase email.