← Back to Blog

How to Auto-Lock Your MacBook When Closing the Lid (Without Sleeping)

June 16, 2026

By default, closing your MacBook lid puts it to sleep. Everything stops! That includes downloads, file transfers, music playback, background tasks. But what if you want the security of a locked screen without losing your active work?

Here’s how to lock your MacBook screen without sleeping, and why you might want to.

The Problem: Sleep Mode Is All or Nothing

When you close your MacBook lid, macOS triggers sleep mode. Everything halts:

To keep things running, many people resort to keeping their lid open with the screen display turned on.

The Solution: Lock Without Sleeping

Lid solves this by reading your MacBook’s lid angle sensor and triggering a screen lock at your chosen angle without putting the system to sleep.

Here’s how it works:

  1. Lid monitors your lid angle in real time
  2. When the lid reaches your configured “secure” angle (e.g., 20°), Lid locks the screen
  3. The system stays awake so downloads keep running, music plays, processes continue
  4. When you open back up, authenticate to regain access

Setting It Up

  1. Download Lid and install it
  2. Grant Accessibility permissions (required for screen lock control)
  3. Open Lid’s settings and configure your secure angle (default: 20°)
  4. That’s it! Lower your screen past that angle and your Mac locks

You can also combine this with other Lid features:

Why Not Just Use Hot Corners?

macOS hot corners can trigger screen lock, but they’re manual. You need to move your cursor to a specific corner. With lid angle automation, the action is natural, just close the lid slightly.

Battery and Performance

Lid uses minimal resources. The lid angle sensor is already powered and reporting data so Lid just reads it. Screen lock itself is handled by macOS and draws no extra power. Your Mac stays awake, so battery use depends on what’s running, just like when the lid is open.

Compatible MacBooks

Lid works with MacBook Air and MacBook Pro models that have a built-in lid angle sensor (most 2015+ models) and run macOS Sonoma 14.0 or later. Download Lid to check compatibility on your device.

Try Lid for Free

Automate your MacBook lid angle in under a minute. Free tier includes screen blur, media pause, and one customizable rule.

Download Free