When you close your laptop lid, Windows and macOS can be set to do nothing, sleep, hibernate, or shut down—this guide shows how to configure those power settings for both operating systems. You’ll need administrator access and a few minutes; no extra tools required.
What You'll Need
- A Windows or macOS laptop
- Administrator or owner account access
- A power adapter (recommended for desktop-class behavior)
Step-by-Step
- Identify your operating system: Press Windows + R, type
winver, and hit Enter to check your Windows version. On macOS, click the Apple logo > About This Mac to confirm your version. Steps differ slightly between Windows 10/11 and macOS Monterey through Sonoma. - On Windows: Open Settings > System > Power & battery (Windows 11) or Settings > System > Power & sleep (Windows 10). Scroll to Related settings and click Additional power settings.
- On Windows (advanced): In the Power Options window, click Choose what closing the lid does on the left. You may need to click Change settings that are currently unavailable (requires admin rights) to enable changes.
- Configure lid action (Windows): Under When I close the lid, use the dropdown menus for On battery and Plugged in. Select Do nothing if you want the laptop to keep running with the lid closed, or choose Sleep, Hibernate, or Shut down as needed. Click Save changes.
- On macOS: Open System Settings (or System Preferences on older versions) > Desktop & Dock (macOS Ventura and later) or Energy Saver (older macOS). On macOS Monterey and earlier, go to System Preferences > Energy Saver.
- Configure lid action (macOS): There is no direct lid close toggle in macOS settings—closing the lid always triggers Sleep by default. To override this behavior (e.g., keep the display off while running), you must use a third-party tool like NoSleep (for Intel Macs only) or enable Power Nap (macOS Sierra+) for background activity during sleep. Note: Apple Silicon Macs (M1/M2) do not support disabling lid-close sleep; the system will always sleep when the lid is shut.
- Verify your changes: Close the lid and wait 10–15 seconds. Open it again and observe whether the laptop resumes, stays on, or shuts down. If using Do nothing on Windows, ensure your screen stays off but the system remains active (press Windows + L to lock and confirm it wakes).
Common Mistakes
- Assuming macOS allows full lid behavior control: Apple restricts lid-close actions to Sleep only on modern Macs—there is no built-in option to keep the system awake with the lid closed, except via unsupported third-party tools.
- Ignoring power plan differences: Windows stores separate lid actions for On battery and Plugged in. Changing one without the other may cause inconsistent behavior depending on whether the charger is attached.
- Skipping admin unlock: On Windows, the Change settings that are currently unavailable checkbox must be enabled first; otherwise, the lid-action dropdowns are grayed out.
- Overlooking sleep vs. hibernate: Hibernate saves the current state to disk and powers off completely—closing the lid while hibernating may not wake as expected. Use Sleep for quick resume or Do nothing for continuous operation.
- Confusing display sleep with system sleep: The display may turn off while the system stays active (e.g., downloading or rendering in the background). This is normal and not a setting error.
Tips
- Use Do nothing for server-like use: If running a headless NAS, media server, or coding environment, set lid action to Do nothing and ensure your laptop is connected to power and has adequate cooling.
- Disable screen blanking separately: In Windows, go to Power & sleep settings > Screen and set When on battery and When plugged in to Never if you want the screen off but the system running with the lid closed.
- Test with the lid open first: Use Start > Power > Sleep to manually trigger sleep and confirm your system wakes reliably before relying on lid actions.
- Update drivers and firmware: Outdated power management drivers (especially Intel Management Engine or AMD PSP) can cause lid-close issues. Check your laptop manufacturer’s support site for updates.
- Prevent accidental wake: On Windows, disable Allow this device to wake the computer for USB devices (e.g., keyboards, mice) in Device Manager to avoid unintended wake-ups when the lid is closed.
Troubleshooting
If your laptop doesn’t behave as configured, follow these checks in order:
- Restart the laptop: A simple reboot resolves many temporary firmware or driver glitches. After restarting, retest the lid action.
- Confirm the correct power plan is active: In Windows, run
powercfg /listin Command Prompt (as admin) to list plans. Ensure the active plan matches the one you edited. Switch withpowercfg /setactive [GUID]if needed. - Check Group Policy or registry overrides: On corporate or managed devices, policies may lock lid behavior. Press Windows + R, type
gpedit.msc, and navigate to Computer Configuration > Administrative Templates > System > Power Management to verify no policies are enforced. - Reset power settings to default: In Windows, run
powercfg -restoredefaultschemesin Command Prompt (admin) to reset all schemes—including lid actions—to factory defaults. Then reconfigure manually. - Disable Fast Startup: On Windows, go to Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable, and uncheck Turn on fast startup. Fast Startup can interfere with lid-close wake behavior.
- Check for hardware quirks: Some laptops (e.g., Dell, Lenovo) have BIOS/UEFI settings like Lid Open Resume or Wake on Lid Open that override OS behavior. Reboot and press F2, F10, or Esc during startup to enter BIOS and review power options.