Keep a Mac Awake Without Battery Drain or a Hot Backpack
Stop a kept-awake Mac from draining its battery or overheating in a bag: caffeinate timeouts, Glowmoth's battery and heat pauses, and reminders.
GuideUpdated 8 min read
On this page
The worry is easy to state. A Mac kept awake and forgotten drains its battery, and one pushed into a backpack while still awake can get hot with nowhere for the heat to go. The limits below are a backstop for the times you forget. Nothing replaces checking the Mac before you pack it.
Why a kept-awake Mac drains and heats up
Keeping a Mac awake blocks idle sleep. The Mac keeps running as if you were using it, so the battery keeps draining, and faster if the display stays on too. Apple notes that delaying, preventing, or allowing disruption of sleep may increase power consumption.
Heat is the second problem. Apple says to use your Mac laptop on a stable work surface that allows for good ventilation, and a closed bag is the opposite of that. Apple's guidance also says to use a Mac laptop where the ambient temperature is between 50° and 95° F (10° and 35° C). A bag in a warm car or a sunny café is a bad place for a running Mac.
Most incidents come from two habits:
- You start an open-ended session and forget it.
- You keep the Mac awake with the lid closed, then pack it.
A third cause is quieter: another app (a call, a download, a backup) holds the Mac awake and you never started anything.
Fix 1: put a timeout on caffeinate (free, built in)
caffeinate holds the Mac awake only while it runs. Give it a time limit:
caffeinate -i -t 7200This blocks idle system sleep for 7,200 seconds (2 hours). The display may still sleep. Add -d to keep the display on too. To stay awake only while a job runs, put the job after the flags:
caffeinate -i makePress Control-C to stop either command early. Nothing changes permanently, so there is nothing to undo. Our caffeinate flags and examples guide covers the rest.
What it can't do: caffeinate doesn't look at battery level or thermal state, and it won't warn you when time is nearly up. Without -t, it runs until you stop it.
Fix 2: turn on Glowmoth's safety limits
We make Glowmoth, a menu bar app in MacSuite. Its limits are on by default on a fresh install, except where the table says Off.
| Limit | Default | What happens |
|---|---|---|
| Pause on low battery | On, below 20% | Pauses every keep-awake reason while on battery. Resumes when you plug in or reach 5 points above the floor. |
| Pause when the Mac is running hot | On | Pauses after macOS reports a thermal state of "serious" or worse for 60 seconds. Resumes after two minutes at a normal temperature. |
| Stop the session when switching to battery | Off | Ends your own session when you unplug the power adapter. |
| 5 minutes before a timed session ends | On | Notification with +30 Min and +1 Hour buttons. |
| When a session has no end time | Off | "Still keeping your Mac awake" reminder, 4 hours by default. |
Feature details as of November 2026 (Glowmoth 1.0.0).
Check the battery and heat switches
- Right-click the Glowmoth icon in the menu bar and choose Settings… (⌘,).
- Open the Safety tab.
- Under Battery, confirm Pause on low battery is on. Set Below anywhere from 5% to 50% in steps of 5.
- Optionally turn on Stop the session when switching to battery. It ends only your own session, not automatic reasons such as rules or agents.
- Under Temperature, confirm Pause when the Mac is running hot is on.
The Battery section appears only on Macs with a battery. While paused, the menu bar icon shows a slash and the panel title reads "Paused". Your reasons stay listed. If a pause is in your way, the panel offers Resume Anyway (30 min), which overrides it for 30 minutes and ends early once the cause clears.
Make every session end
Glowmoth's default duration is "Indefinitely". The panel's Keep Awake switch, a hotkey, the widget and the command-line on all start that default. Change it once:
- Open Settings… and choose the Sessions tab.
- Set Default duration to something you'd be comfortable forgetting, such as 2 hours.
- Under Notifications, turn on When a session has no end time and pick Remind me after (1, 2, 4 or 8 hours). The reminder has Keep Awake and Stop buttons.
- Leave 5 minutes before a timed session ends on. The heads-up reads "5 minutes of awake time left", and +30 Min or +1 Hour extends the session if you need more.
Other settings that help:
- On an open-ended session, the panel's Stop In chips (15m, 30m and 1h by default) turn it into one that ends that long from now.
- Show countdown next to the icon (in General) shows time left in the menu bar for timed sessions.
- End the session when the screen locks ends your session whenever the screen locks. Automatic reasons continue.
Keep it awake only while docked
If you want "awake at my desk, asleep when I leave", use a rule instead of a session.
- Open Settings… and choose the Automation tab.
- Under Rules, choose Add Rule, then Docked at Desk. The preset is "On AC power" and "External display connected".
- Leave Keep the display on off unless you need it.
When you unplug the charger or the external display, the rule's reason ends.
Fix 3: be careful with closed-lid mode
A normal Glowmoth session prevents idle sleep only. Closing the lid still puts the Mac to sleep unless closed-lid mode is on, or the Mac has power and an external display, which is standard macOS behavior.
Settings, then Safety, then Stay awake with the lid closed is off by default and available only on Macs with a battery. It installs a helper you approve in System Settings under General, then Login Items. While Glowmoth is keeping the Mac awake, the helper runs pmset -a disablesleep 1. It runs pmset -a disablesleep 0 as soon as that ends. See the closed-lid docs for the full picture.
With the lid closed, a Mac can be awake and out of sight, so the limits are stricter:
- The battery and heat limits are forced on and can't be switched off.
- Heat cuts it off immediately at "serious", with no 60-second wait.
- It turns off below the battery floor.
- When you close the lid during a session, it plays the "Glass" sound and posts "Lid closed, staying awake".
- If Glowmoth quits or crashes, normal sleep returns immediately. If it only stops renewing its 30-second lease, sleep returns within 30 seconds.
Treat that notification as a cue to reopen the lid and stop the session if you didn't mean it. For the wider picture, see clamshell mode on Mac.
Checklist before the Mac goes in the bag
- The menu bar icon is an outline moth and lamp (sleep allowed). A filled lamp means something is holding the Mac awake.
- If it is filled, you chose Stop, or Stop Everything when the panel lists other reasons.
- Show More, then Also Keeping This Mac Awake, shows nothing else blocking sleep, such as a call or a download.
- You closed the lid and waited until the Mac was actually asleep.
- You are not packing it into a hot car or a tightly packed bag. Apple's guidance is not to leave a Mac laptop in your car, because parked-car temperatures can exceed the operating range.
Which option to use
- Use
caffeinate -tfor one timed job if you're comfortable in Terminal. - Use Glowmoth if you want the battery and heat pauses, the heads-up, reminders for open-ended sessions or a docked-only rule.
- Amphetamine is free (Mac App Store, as of November 2026) and has its own closed-display mode. We haven't compared its battery or heat settings, so check them in the app.
Glowmoth is part of MacSuite; you can try it free for 7 days. Without a valid trial or license it holds nothing awake.
If nothing works
First find what is holding the Mac. Open the panel and read Held By, then Also Keeping This Mac Awake. Settings, then Activity shows a 7-day chart and a history of starts, ends and pauses. In Terminal, pmset -g assertions only reads state, and Glowmoth's entry is named "Glowmoth: …". Our guide to a Mac that won't sleep covers other usual causes.
If a limit didn't fire or the Mac stayed awake after you stopped everything, contact support through the MacSuite support page. Include your macOS version, the Glowmoth version, a screenshot of Settings, then Safety, and what the panel title said. If the problem is overheating itself, contact Apple Support, since Apple recommends running Activity Monitor to look for processes putting a heavy load on the CPU.
Subject: Glowmoth did not pause / Mac stayed awake
macOS version:
Glowmoth version:
What I expected: pause on low battery / heat / session end
What happened:
Panel title and Held By list at the time:
Safety settings (battery floor, heat switch, closed-lid on/off):
Steps already tried: Stop Everything, relaunchCommon questions
Does a pause end my session?
No. The hold is released for every reason, but they stay listed until the pause clears.
Can I keep the display off to save battery?
Yes. Turn off Keep the display on in Settings, then Sessions, for new sessions. For the running one, use the Keep Display On switch under Show More in the panel. Then only idle system sleep is blocked.
I never got the "5 minutes left" notification. Why?
It exists only for timed sessions, so an open-ended session never triggers it. Notifications may also be off for Glowmoth in System Settings. The pause itself still happens without banners.
Does Glowmoth change my Mac's sleep settings?
Not in normal use. It holds a power assertion that macOS releases if Glowmoth quits or crashes. Only closed-lid mode changes a system setting, and it restores it when the hold ends. Apple's own sleep and wake settings stay as you set them.
Apple also lists safe operating conditions in keeping your Mac laptop within acceptable operating temperatures.