Guide · macOS
How to lock your Mac without turning off the screen
After you lock a Mac, the display turns off about 30 seconds later. No setting changes that. To keep the display on, run caffeinate -d -i before you lock. To show your desktop instead of the login window, use a cover app like Dimma Screen.
What each method does
Tested on macOS 27.0, October 2026.
| Method | Display turns off | On screen | To get back in |
|---|---|---|---|
| ⌃⌘Q | After about 30 seconds | Login window | Password or Touch ID |
| Apple menu › Lock Screen | After about 30 seconds | Login window | Password or Touch ID |
caffeinate -d -i, then ⌃⌘Q | Still on after 2½ minutes | Login window | Password or Touch ID |
| Hot corner › Start Screen Saver | At your "Turn display off" time | Screen saver | Password only if "Require password after screen saver begins or display is turned off" is set |
| Dimma Screen › Turn On and Keep Awake | Stays on for 30 minutes to 4 hours, your choice | Your desktop under a faint tint | PIN, login password, or Touch ID |
The "Turn display off" setting in System Settings › Lock Screen doesn't change the 30 seconds.
Try caffeinate first
- Run this in Terminal to keep the display and the Mac awake for one hour. Keep the window open.
caffeinate -d -i -t 3600 - Press ⌃⌘Q.
- Press ⌃C to stop early.
Keep apps running while locked
Locking doesn't stop your apps. Sleep does. To keep the Mac from sleeping while it's locked:
caffeinate -iprevents idle sleep.caffeinate -sprevents sleep while on the power adapter.- On a MacBook: System Settings › Battery › Options › "Prevent automatic sleeping on power adapter when the display is off."
- On a desktop Mac: System Settings › Energy › "Prevent automatic sleeping when the display is off."
More in how to keep your Mac awake and what locking does to AI agents.
When you don't want it to look like you've left
The login window tells everyone walking by that you're gone. So does a dark screen.
Dimma Screen is a menu bar app that covers every display with a tint you can barely see. Your desktop stays lit and keeps moving. Touch a key or the mouse, and it asks for your PIN.
- Turn On and Keep Awake for 30 minutes, 1 hour, 2 hours, or 4 hours. The display stays lit and the Mac stays awake. When the time is up, the cover stays and the Mac follows its energy settings again.
- Turns on automatically after 5, 10, 20, or 30 minutes or an hour without input, or with a keyboard shortcut.
- Choose what the screen shows: Transparent Overlay (2% to 50%, default 6%), Solid Color, Snapshot, or Custom Image.
- Away Note puts one line on every display, like "Back in 5," with the time you'll be back.
- Covers every display, every Space, and full-screen apps.
Dimma Screen · macOS 26 Tahoe or later · Apple silicon · All features free for 3 days, then $9.90 once. No subscription.
Limits
- Not a security lock. It keeps coworkers and the person in the next seat off your screen. Where you need real security, press ⌃⌘Q. Or turn on Lock Screen When Keep Awake Ends in Settings, and the Mac goes to the macOS lock screen when the time is up.
- Transparent Overlay only tints your screen. To hide it, choose Solid Color or Custom Image.
- Keep Awake stops at 4 hours. After that, the Mac follows its energy settings.
- It doesn’t move the pointer or press keys. macOS keeps counting idle time.
Questions
Why does my Mac's screen go dark right after I lock it?
macOS turns the display off about 30 seconds after you lock, whatever your "Turn display off" setting is. System Settings has no option to change it.
Can I change how long the display stays on after I lock my Mac?
Not in System Settings. Run caffeinate -d -i in Terminal before you lock. In our test on macOS 27.0, the display was still on 2½ minutes after locking.
Does locking my Mac stop downloads or put it to sleep?
Locking doesn't stop your apps. Sleep does. To keep downloads going while the Mac is locked, run caffeinate -i in Terminal before you lock.
Can the lock screen show my desktop instead of the login window?
No. The macOS lock screen always shows the login window. A cover app like Dimma Screen leaves your desktop visible under a faint tint and asks for a PIN instead.
Is it safe to leave the screen on?
A screen that shows the login window is still locked, so keeping it on is fine. A cover app keeps people nearby off your screen, but it isn't a security lock. Where you need real security, press Control-Command-Q.