Why Your Mac Is Not Locking Automatically, and How to Fix It

If you expect your Mac to lock the moment you stand up and walk away, you will be disappointed by what macOS does on its own. macOS does not lock when you leave; it locks on an inactivity timer, and only if you have set one specific password option. This guide explains exactly which settings control locking, the common reasons a Mac never seems to lock, and how to close the gap that a timer leaves open.

What "auto-lock" actually means on a Mac

There is a common misunderstanding worth clearing up first. macOS has no built-in feature that locks the screen the moment you physically leave your desk. It cannot tell that you have walked away; it only counts how long there has been no keyboard or mouse activity. What people call "auto-lock" on a Mac is really two separate settings working together:

If either of these is set wrong, your Mac will appear not to lock. The display might dim but stay unlocked, or it might never sleep at all. Locking by hand with a keyboard shortcut is instant, but it depends on you remembering to do it every single time. The rest of this guide walks through each cause in order.

The setting that decides whether locking is secure

This is the single most common reason a Mac "does not lock". Even when the screen saver starts, macOS will not require a password unless you have told it to, and by default it often allows a short grace period during which anyone can wake the Mac without a password.

Set the password requirement to Immediately

  1. Open System Settings and go to Lock Screen.
  2. Find the option labelled "Require password after screen saver begins or display is turned off".
  3. Set it to "Immediately".

Why this matters: if this is set to a delay such as five seconds, one minute, or longer, the screen saver can start while your Mac remains effectively unlocked for that whole window. Setting it to "Immediately" means the password is required as soon as the screen saver begins or the display sleeps. Without this setting, no auto-lock approach, built in or third party, can actually protect your screen.

Why the screen saver or display never starts

The second common cause is that the inactivity timer is too long, switched off, or being held awake by something. macOS only begins the screen saver or display sleep after the idle period you have configured, so check these in order.

For a fuller comparison of every locking method, from the native timer to Bluetooth proximity and camera presence, see the guide on ways to auto-lock your Mac in 2026. If you want a quick read on your own setup first, use the free Mac lock risk checker.

Lock your Mac instantly, by hand

While you sort out the automatic settings, it helps to know the fastest manual locks. Each of these works on any modern Mac and locks immediately, provided the password requirement above is set to "Immediately".

These are reliable, but they share one weakness: they depend on you remembering to do them every time you get up. On a busy day, or when you are pulled away mid-thought, that is exactly the moment the habit fails.

The gap a timer cannot close

Even with everything configured correctly, the native approach is fundamentally time-based, not presence-based. macOS counts idle seconds; it does not know you have left. That leaves a gap. Set the timer to one minute and your screen stays open for up to a minute after you walk away. Set it to ten seconds to feel safer and it will nag you with a black screen every time you pause to read or think. There is no idle interval that is both quick to lock when you leave and patient while you stay.

Presence detection closes that gap by answering a different question: not "how long has it been idle?" but "is the person still here?". This is the approach Peeku uses to auto-lock the moment you walk away. Peeku combines three local signals to decide you have actually left:

When the signals agree you have gone, Peeku locks within a few seconds, and because it waits for genuine absence rather than a fixed timer, it does not lock you out while you sit reading. Detection runs entirely on your Mac, with no account and no cloud face data; you can read how that works in the guide on privacy-first, on-device auto-lock. One honest caveat: the full locking app ships free outside the Mac App Store, on Gumroad and as a notarised DMG, because the App Store sandbox blocks the system screen-lock calls. And it still relies on the "Require password: Immediately" setting above, so configure that first either way.

A quick checklist

If your Mac is not locking the way you expect, run through this in order:

  1. System Settings, Lock Screen: set "Require password after screen saver begins or display is turned off" to Immediately.
  2. Same pane: set "Start Screen Saver when inactive" and the display-off options to a short interval, not Never.
  3. Quit anything keeping the display awake (video, presentation mode, keep-awake utilities, caffeinate).
  4. Learn the instant manual lock: Control + Command + Q, or a Hot Corner set to "Lock Screen".
  5. If you want the lock to happen the moment you leave, rather than after a timer, add presence detection. The two-minute setup is covered in the guide on setting up walk-away lock.

Close the gap with presence detection

Configure the native settings above for a baseline, then let Peeku lock your Mac the moment you actually walk away. Free, no account, no cloud face data, and all detection stays on your Mac.

Get Peeku on Gumroad (free) See how Peeku works

macOS 14+, Apple Silicon. About 3.1 MB. Developer ID signed and notarised. Pay what you want on Gumroad (₹0 option available).

Free Mac App Store build

Prefer the App Store path?

Install Peeku Presence Coach for eye-rest nudges, walk reminders, optional Desk Health, and private local presence signals. The full walk-away lock still needs the direct Mac build because the App Store sandbox blocks automatic screen-lock commands.