Updated
How to Stop Your Mac from Locking
By Sindre Sorhus, who makes the Lungo app
Your Mac locks when the screen saver starts or the display turns off, after some minutes without the keyboard or the mouse. So to stop the lock, keep the display on.
With Lungo
- Click the Lungo icon in the menu bar.
- Below “Keep this Mac awake”, choose a time, like “2 Hours”, or “Indefinitely”.
- To let the Mac lock again before the time ends, click the icon, and choose “Deactivate”.
“Allow Display to Sleep” in the … submenu must be off. When it is on, the display turns off and the Mac locks, but the Mac stays awake. To lock the Mac yourself while Lungo is on, press ControlCommandQ.
Lungo is good for a presentation, a recipe, or a long text, as you do not change the lock settings, and then forget to change them back.
Get Lungo
Prevent your Mac from going to sleep
$4, one-time purchase
- Requires
- macOS 26 or later
- Privacy
- No data collected
- Family Sharing
- Yes
- Updated
- September 2026
- US App Store rating
- 4.9/5 (228 ratings)
Without an app
- Open “System Settings Lock Screen”.
- Set “Start Screen Saver when inactive” and “Turn display off when inactive” to longer times, or to “Never”. A MacBook has one setting for battery and one for the power adapter.
- To lock the Mac only when you lock it yourself, set “Require password after screen saver begins or display is turned off” to a longer time, or “Never”.
Apple’s instructions. A Mac from your work can have these settings locked by your company.
The settings change the lock permanently. If someone can use your Mac while you are away, keep a short time, and turn on Lungo only when you need the screen on.
To keep the screen on only for a time, without a change to the settings, run this command in the Terminal app, and press ControlC to stop it:
caffeinate -d
