The Sleep Interruption
macOS is heavily optimized for energy efficiency, specifically on MacBook laptops. When you close the lid of your MacBook or leave your Mac Mini inactive for a set period, the operating system enters a deep sleep state to conserve power. While this extends battery life, it immediately severs most active network connections. If you are downloading a massive 50GB video file or a large software update through Safari or a third-party download manager, macOS will automatically pause or completely terminate the download the moment it goes to sleep. Waking the computer often requires you to manually restart the download from the beginning if the server doesn’t support resuming.
Preventing Sleep During Network Activity
To ensure large files finish successfully and stop macOS from automatically pausing downloads when the screen turns off, you must prevent the system from entering a deep sleep state while network activity is occurring.
Open System Settings (click the Apple logo in the top-left corner). In the left-hand navigation pane, scroll down and click on Displays. Click the Advanced… button at the bottom of the window. Look for the toggle switch labeled Prevent automatic sleeping when the display is off. Turn this switch On. (Note: On older versions of macOS or desktop Macs, this setting is found under Energy Saver and is phrased as “Prevent computer from sleeping automatically when the display is off”). Additionally, if you are downloading via a terminal command or a specific script, you can use the built-in `caffeinate` command. Open the Terminal application, type caffeinate -s, and press Enter. This completely blocks system sleep until you press Ctrl+C to terminate the command, guaranteeing your downloads never pause.