Guides / Fixing Mac audio recording problems
Why does my Mac recording stop when the display sleeps?
Tested on macOS 26.4.1 (Tahoe), Apple M3 Max, 3 Sept 2026. Updated 2026-09-03.
A Mac recording stops when the display sleeps only if the Mac itself sleeps shortly after. Display sleep is harmless; system sleep suspends every app and the take ends or gains a gap. On a laptop, enable Prevent automatic sleeping on power adapter when the display is off under Battery > Options; on a desktop the switch is under Energy. From Terminal, caffeinate -i holds the Mac awake while it runs. App Nap never touches an app that is recording.
Is it the display sleeping or the Mac sleeping?
Two separate timers with two separate effects, and the difference decides the fix.
- Display sleep turns the screen off. Apps keep running, audio keeps flowing, recordings continue. Tested on macOS 26.4.1: a 30-minute take with the display set to turn off after 1 minute records without a gap.
- System sleep suspends the CPU, USB and audio hardware. Every recorder stops receiving buffers. Some apps end the take, some write a gap, some resume with a stalled input.
By default a MacBook on battery goes to system sleep some minutes after the display turns off, which is why the two look linked. On power, and on desktops, the link is a setting you can switch off.
To see what is keeping the Mac awake, run pmset -g assertions. The pmset reference describes it as "Display a summary of power assertions. Assertions can prevent system sleep or display sleep." A recorder that holds a PreventUserIdleSystemSleep assertion appears there while it records; if yours is absent, the Mac sleeps on its normal timer and you need one of the fixes below. pmset -g alone prints the current sleep and displaysleep timers in minutes.
Which sleep setting keeps a recording running on a Mac?
Apple's sleep and wake guide names the exact switches, which differ by Mac type.
Laptop (MacBook Air, MacBook Pro)
- Apple menu > System Settings > Battery.
- Click Options.
- Turn on "Prevent automatic sleeping on power adapter when the display is off".
- Plug in the power adapter for the take. On battery there is no equivalent switch, so keep the Mac on power for anything long.
Desktop (Mac mini, Mac Studio, iMac)
- Apple menu > System Settings > Energy.
- Turn on "Prevent automatic sleeping when the display is off".
The display timers live under System Settings > Lock Screen ("Turn display off on battery when inactive" and "on power adapter when inactive"). Leave them; a dark screen costs the recording nothing.
Documented failure mode: the lid. Closing a MacBook's lid sleeps it regardless of the Battery setting unless an external display, keyboard and power are attached. For an overnight take, leave the lid open. A long take also needs disk: 24-bit 48 kHz stereo uses 0.97 GB per hour; the measured sizes for every format are in how long can you record audio on a Mac.
How do I use caffeinate to stop my Mac sleeping during a recording?
caffeinate creates a temporary power assertion from the Terminal, the right tool when you do not want to change a setting permanently.
- Open Terminal.
- Run
caffeinate -iand leave the window open. Per the manual,-iwill "Create an assertion to prevent the system from idle sleeping." The display may still turn off, which is fine. - Stop the recording, then press Ctrl-C to release the assertion.
Useful variants:
caffeinate -i -t 7200holds the Mac awake for 7,200 seconds (2 hours), then exits.-t"Specifies the timeout value in seconds for which this assertion has to be valid."caffeinate -dalso keeps the display awake. Not needed for audio.caffeinate -sprevents sleep but is "valid only when system is running on AC power", so it does nothing on battery.caffeinate -w <pid>releases when the given process exits, handy for a scripted recorder.
Confirm with pmset -g assertions: a line naming caffeinate under PreventUserIdleSystemSleep means it is working. This is also the quickest fix for a long capture from a browser or a DJ app that holds no assertion of its own.
Does App Nap pause a background recording app?
No, as long as the app is actually recording. Apple's power efficiency guide lists the conditions an app must meet before it is napped: it "isn't the foreground app", "hasn't recently updated content in the visible portion of a window", "isn't audible", and "hasn't taken any IOKit power management or NSProcessInfo assertions". An app with an audio input or system audio stream open is audible from the system's point of view, so it is never napped. For the apps that do qualify, App Nap "conserves battery life by regulating the app's CPU usage and by reducing the frequency with which its timers are fired."
In practice: hiding the recorder behind other windows or switching Spaces does not affect the take. A recorder that has stopped, or is waiting for a device, can be napped, which only slows its UI.
If a take still ends in the background with the Mac awake, the cause is the input, not App Nap: an interface that lost power or a Bluetooth device that disconnected stops the buffers, and the app's recovery behaviour decides what happens next. The gap that leaves is analysed in why is there a gap or dropout in my Mac recording; interface drop-outs in USB audio interface not showing up on Mac.
App Nap conserves battery life by regulating the app's CPU usage and by reducing the frequency with which its timers are fired.
Apple, Energy Efficiency Guide for Mac Apps, App Nap
Ways to keep a Mac awake for a long recording
| Method | Stops system sleep | Display can still sleep | Works on battery | Permanent | Needs Terminal |
|---|---|---|---|---|---|
| Battery > Options > Prevent automatic sleeping on power adapter (laptop) | yes, on power | yes | no | yes | no |
| Energy > Prevent automatic sleeping when display is off (desktop) | yes | yes | n/a | yes | no |
| caffeinate -i | yes | yes | yes | no, until Ctrl-C | yes |
| Recorder holds its own sleep assertion | yes, while recording | yes | yes | no | no |
| Lid closed, no external display | no, sleeps anyway | n/a | no | n/a | no |
Where AirCheck fits
AirCheck has no length limit; the author's longest continuous take is 7,550 seconds (2 h 5 min) at 24-bit 48 kHz, 2.07 GB, and disk space is the only ceiling. If an input stalls for 5 seconds, a watchdog restarts capture into the same file and shows "Audio input stalled, reconnecting", which covers an interface that drops after a reconnect. AirCheck is $39 once and needs macOS 14 Sonoma or newer. Keep the Mac on power with the sleep switch above and a long take runs unattended.
When you do not need it: For a take under an hour with the Mac in use, no fix is needed; the display sleeping does nothing. If your recorder already shows a PreventUserIdleSystemSleep assertion in pmset -g assertions, you do not need caffeinate either.
AirCheck records what your Mac plays, or any input, to one file. $39 once.
macOS 14 or newer. One-off payment. Fourteen-day refund, no questions asked.
Questions people ask
Does closing the MacBook lid stop a recording?
Yes, unless an external display, keyboard or mouse, and power are connected. Closing the lid triggers system sleep regardless of the Battery setting. Leave the lid open and let the display turn off on its own timer instead.
Does the screen turning off stop audio recording on a Mac?
No. Display sleep only turns off the panel. Recording stops when the Mac enters system sleep, which by default follows a few minutes later on battery. Enable Prevent automatic sleeping when the display is off, or run caffeinate -i.
Can I record audio overnight on a Mac?
Yes. Use a desktop or a laptop on power with the lid open, turn on the prevent-sleep switch or run caffeinate -i, and check disk space: 24-bit 48 kHz stereo uses about 0.97 GB per hour, MP3 320 kbps about 0.14 GB per hour.
Sources
- Apple: Set sleep and wake settings for your Mac
- Apple: Energy Efficiency Guide for Mac Apps, App Nap
- caffeinate command reference
- pmset command reference
Related guides
- Why is my USB audio interface not showing up on my Mac?
- Why is my Mac not recording sound?
- How long can you record audio on a Mac?
- Why is there a gap or dropout in my Mac recording?
- Why is my app missing from Screen & System Audio Recording on my Mac?
- Why is the microphone permission not working for my app on Mac?
- Fixing Mac audio recording problems: all guides
- Every guide, by topic