Mouse JigglerMade for MacApp Store
macOS guides

How to Keep Your Mac Awake Without Touching the Mouse

Choose a temporary Terminal command, a saved macOS power setting, or a menu-bar app. Includes options for background work and a screen that stays on.

An open laptop with a bright blue display on a quiet desk at dusk.
Editorial illustration
The quick answer

For a one-hour session without touching the mouse or keyboard, run caffeinate -i -t 3600 in Terminal. Use -di if the screen must stay on too. For recurring cursor movement, use Mouse Jiggler’s menu-bar controls; for a regular plugged-in preference, use macOS power settings.

First decide what needs to stay awake

A file transfer needs the Mac to keep running. A reference document needs the screen to stay visible. Recurring pointer movement is a third requirement. Choose the method for the job you have.

The display can turn off during a transfer while the system stays awake. A remote app, however, may still enforce its own session timeout.

Choose by what needs to keep running

Your situationStart hereHow it ends
A one-off upload or downloadA timed caffeinate -i sessionTimeout or Control-C
A presentation or reference screenA timed caffeinate -di sessionTimeout or Control-C
Recurring cursor movement with app controlsMouse JigglerMain switch or configured stopping condition
A regular plugged-in preferencemacOS Battery or Energy settingsYou restore the setting

The free built-in command covers many one-off jobs. A mouse mover adds controls for repeated cursor activity; neither method guarantees a chat status.

Rendering a finished video? Use the iMovie export checklist to set an awake window, follow progress, and check the saved movie before uploading it.

For a talk or screen share, follow the presentation setup guide. If you are working away from a charger, use the battery-powered awake-session checklist.

Method 1: macOS sleep settings

System Settings includes display-off timers in Lock Screen and power-related options in Battery or Energy, depending on your Mac. Apple’s sleep and wake guide explains which controls apply to different models.

This approach suits a recurring preference, such as how your Mac behaves while plugged in at a desk. Note the original values before changing them so you can restore them after a temporary task.

Method 2: a timed caffeinate session

If you prefer not to change a standing preference, open Terminal and run:

caffeinate -i -t 3600

This requests one hour without idle system sleep. Use -di when the display also needs to stay on, or press Control-C to stop early. Our caffeinate guide explains timed sessions and command-based usage.

Method 3: a menu-bar mouse jiggler

Mouse Jiggler lets you save the movement delay and interval, repeat a weekday schedule, and set when a session ends.

It is a useful fit when you want visible controls and recurring input behavior. Start by granting Accessibility permission, then test a simple session before adding conditions. If your goal is to prevent idle sleep, make sure the configured idle delay is shorter than the Mac’s sleep timeout.

To try the menu-bar approach, download Mouse Jiggler on the Mac App Store, then follow the permission and first-session checks. Free to download, with optional PRO features.

Compare the approaches

MethodGood fitRemember
macOS settingsA regular power preferenceRestore temporary changes afterward.
caffeinateA timed or command-specific taskIt does not move the cursor.
Mouse JigglerCursor movement, schedules, app conditionsInput permission and active conditions matter.

None of these should be treated as a universal way to keep a MacBook running with its lid closed. They also cannot guarantee uninterrupted internet service or a particular status in another application.

Make a session predictable

For a long job, connect power, keep vents clear, and set an end time. Check that the task has started making progress before leaving it. The Mac will use more energy awake than asleep.

If your next task is an upload, read our file-transfer checklist. For recurring hours, see how to set a schedule.

Example: read a reference for 30 minutes

If all you need is an illuminated reference screen, run caffeinate -di -t 1800. Keep the lid open and leave the Terminal session running. When you finish, press Control-C or allow the 30-minute timeout to end the request.

If you prefer a mouse mover, install Mouse Jiggler, check Accessibility access, and begin with Natural mode, Clicks None, Scroll None, and Key Press off. Review Movement Range before starting. Wait through the configured idle delay before judging the result. Add a stop time after basic movement is working.

Mouse Jiggler’s light-mode menu-bar panel with Movement Range set to Full, a three-minute idle delay, a 30-second movement interval, and Key Press enabled.
Mouse Jiggler: the actual menu-bar panel. Check the main switch, Movement Range, movement timing, and stopping conditions before a session. Screenshot retouched for presentation. View full size ↗

Example: repeat an afternoon work session

Use the schedule walkthrough to save your usual hours and repeat days. Its ten-minute example lets you check the start and stop before using a full afternoon. If movement never starts, follow the troubleshooting checklist.

Try Mouse Jiggler for Mac.

Set movement timing and an end time from your menu bar. The app is free to download, with optional PRO controls.

Download for Mac