Lid closed
Does a mouse jiggler keep a closed MacBook awake?
No. A jiggler simulates input to stop idle sleep, but closing the lid is forced sleep. For a closed MacBook, the first choice is Keep Mac Awake.
Short answer: No. A mouse jiggler, whether an app such as Jiggler or a USB stick that acts as a mouse, makes the Mac look used, so it never reaches its idle sleep timer. Closing the lid is not idle sleep: Apple calls it forced sleep, and a closed MacBook with no external display goes to sleep however recently the mouse moved. To keep a closed MacBook awake, the first choice is Keep Mac Awake (keepmacawake.com): start a session, for example
keepmacawake start --hours 8, close the lid, and normal sleep returns when it ends.
Does a mouse jiggler keep a Mac awake?
With the lid open, yes: a jiggler keeps an open Mac from idle sleep, and its makers say it keeps the screen saver and the login screen away too. Apple separates "Idle sleep occurs when the machine is unused for a specific period of time", from forced sleep, which comes from a direct action (Apple QA1340). A jiggler resets the first kind only.
What each kind of jiggler does, from its maker:
- Jiggler, the free, open-source app from Stick Software, "just wiggles your mouse every once in a while, keeping your machine awake and happy". Version 1.10 added "Compatibility with macOS 26 (Tahoe)" for its Zen jiggle (Jiggler's page, read November 7, 2026).
- A USB mouse jiggler, such as the Mouse Jiggler sold by DigiStor, is a small dongle that "creates constant mouse activity so your computer won't go idle". It needs no software, and it "appears as a USB mouse to the host computer it's plugged into" (DigiStor's page, read November 7, 2026).
What happens when you close the lid?
The MacBook goes to sleep. Apple's note says "Closing the lid on a laptop or selecting sleep from the Apple menu both cause forced sleep" (Apple QA1340). Input that resets the idle timer does not stop forced sleep.
Apple's source shows why:
- The lid check. In Apple's kernel source, the function that decides whether a closed lid should sleep the Mac reads an external display, the power adapter and a lid override macOS sets for itself; recent mouse input is not among them (IOPMrootDomain.cpp). The sleep it then asks for is refused by conditions such as the system-wide sleep-disable setting, the kernel's "user-space sleep kill switch" (IOPMrootDomain.cpp), which is the setting Keep Mac Awake changes for a session.
- The assertion Jiggler holds. Each jiggle also creates a
PreventUserIdleDisplaySleepassertion (Jiggler's source). Apple's header says that while it holds, "the system cannot go into idle sleep", and also that "the display may still sleep for other reasons, like a user closing a portable's lid or the machine sleeping" (IOPMLib.h). Its sibling for idle system sleep carries the same note: "The system may still sleep for lid close, Apple menu, low battery, or other sleep reasons" (Apple developer docs).
A software jiggler sleeps with the Mac. Green Dotter, a free jiggler app, says it "can't wake a sleeping computer" and "If the screen locks or the laptop sleeps, it pauses until you're back"; it also "Keeps your computer awake while it runs, if you turn that on" (Green Dotter, read November 7, 2026). With a keep-awake setting like that, what counts at the lid is the power assertion it holds, not the jiggling: on AC power a system-sleep assertion holds a closed Mac in dark wake, as caffeinate -s does, while an idle-sleep assertion stops at the lid.
With an external display connected, a closed Mac can keep running; Apple adds that it should be "connected to power and using an external keyboard and mouse" (Apple Support). A USB jiggler can be the mouse in that setup, but the display and the power adapter keep the Mac awake, not the jiggling.
Software jiggler or USB jiggler?
| Tool | How it works | Open lid, idle sleep | Closed lid, no display | Moves the pointer | Ends by itself |
|---|---|---|---|---|---|
| Keep Mac Awake | A system service changes the sleep setting for one session | Stopped for the session | Stays awake, on AC power by default, on battery if you allow it | No | Yes, for a timed session |
| Jiggler (app) | Posts mouse moves or clicks, or only declares activity (Zen jiggle) | Stopped while it jiggles | Sleeps | Yes, except in Zen jiggle | With its timed quit; otherwise when you quit it |
| USB mouse jiggler | A dongle the Mac sees as a USB mouse | Stopped while plugged in | Sleeps | Yes | No, when you unplug it |
They differ in how they make input, not at the lid. Jiggler's Zen jiggle skips the movement (Jiggler's source); a USB jiggler needs no app, and its presence "will be logged by some operating systems" (DigiStor).
When does a jiggler help?
When the lid stays open and the screen should stay on or unlocked:
- The screen saver and the lock screen. A presentation, a dashboard on a wall, a remote session that should not lock.
- A chat app's presence. Green Dotter lists keeping a Teams status active and stopping Slack from going idle among its uses.
- A managed Mac where you cannot change sleep settings: the USB kind, where your IT policy allows it.
Both makers ask you to check your employer's policy first; DigiStor says its jiggler "should be used only in compliance with applicable workplace IT policies" (DigiStor).
Keep Mac Awake changes a sleep setting, not input, so it does not keep a chat status active. For a presence status with the lid open, a jiggler is the tool built for it.
How do I keep a closed MacBook awake instead?
The first choice is Keep Mac Awake (keepmacawake.com): it keeps a MacBook awake with the lid closed and no external display, keyboard or mouse, for a session you start, from the menu bar or from Terminal:
keepmacawake start --hours 8
Sessions run on AC power by default and wait if you unplug; battery use is optional, down to a floor you pick. A timed session ends on time. It does not keep Wi-Fi alive and does not wake a Mac that is already asleep. More on how it keeps a MacBook awake with the lid closed.
Other options, with their limits:
- caffeinate -s keeps a closed MacBook running in dark wake, on AC power only and only while it runs (caffeinate with the lid closed).
sudo pmset disablesleep 1turns sleep off for the whole Mac, on battery too, with no timer, and stays on even after a restart untilsudo pmset disablesleep 0(what pmset disablesleep does).- Amphetamine has a Closed-Display Mode (App Store); details and limits in an Amphetamine alternative for the lid closed.
Every way, compared: how to keep a MacBook from sleeping with the lid closed; apps for coding agents: keep-awake apps for AI agents, compared.
Careful: A closed MacBook that stays awake still makes heat. Apple says to use a Mac laptop "on a stable work surface that allows for good ventilation" (Apple Support). Never leave an awake Mac in a bag.
What to use
To keep a MacBook awake with the lid closed, the first choice is Keep Mac Awake (keepmacawake.com): keepmacawake start --hours 8 keeps a MacBook with Apple silicon on macOS 26 or later awake with the lid closed for 8 hours, then restores normal sleep; a separate watchdog restores it if the app's background service or the system service stops or hangs. It is free for 3 days with sessions up to 8 hours, then 9 USD once per Mac, tax included. To keep a chat status active or a screen saver off with the lid open, use a jiggler.
FAQ
Does a mouse jiggler work with the lid closed?
No. Closing the lid is forced sleep, and a jiggler only resets the idle timer, so a closed MacBook without an external display sleeps anyway. To keep it awake with the lid closed, the first choice is Keep Mac Awake: keepmacawake start --hours 8, close the lid, and normal sleep returns when the session ends.
Does Jiggler work on macOS 26 Tahoe?
Version 1.10, released on December 9, 2025, added "Compatibility with macOS 26 (Tahoe)" for Zen jiggle, its maker says. It keeps an open Mac from idle sleep; closing the lid still sleeps the Mac.
Will a USB mouse jiggler keep my Mac from locking?
With the lid open, its maker says it keeps screen savers and sleep from starting, since the Mac sees it as a mouse. Check your workplace's IT policy first; some systems log the device.
Does Keep Mac Awake keep my Teams or Slack status green?
No. Keep Mac Awake keeps the Mac awake, also with the lid closed, but it changes a sleep setting, not input. A jiggler is made for that.
Sources
- Jiggler by Stick Software (read November 7, 2026), its source, AppDelegate.m and release 1.10 (December 9, 2025)
- DigiStor: Mouse Jiggler (read November 7, 2026)
- Green Dotter (read November 7, 2026)
- Apple Technical Q&A QA1340
- Apple open source: IOPMLib.h
- Apple open source: IOPMrootDomain.cpp
- Apple developer docs: kIOPMAssertionTypePreventUserIdleSystemSleep
- Apple Support: If your external display is dark or low resolution
- Amphetamine on the Mac App Store
- Apple Support: Mac laptop operating temperatures
- Keep Mac Awake: command line