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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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:

  1. Restart the laptop: A simple reboot resolves many temporary firmware or driver glitches. After restarting, retest the lid action.
  2. Confirm the correct power plan is active: In Windows, run powercfg /list in Command Prompt (as admin) to list plans. Ensure the active plan matches the one you edited. Switch with powercfg /setactive [GUID] if needed.
  3. 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.
  4. Reset power settings to default: In Windows, run powercfg -restoredefaultschemes in Command Prompt (admin) to reset all schemes—including lid actions—to factory defaults. Then reconfigure manually.
  5. 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.
  6. 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.

Frequently Asked Questions

Can I keep my Windows laptop awake with the lid closed?

Yes—set When I close the lid to Do nothing in Power Options, ensure it’s plugged in, and disable display sleep. The system will continue running with the screen off.

Why does my Mac always sleep when I close the lid?

Apple intentionally prevents keeping macOS awake with the lid closed on Apple Silicon and most Intel Macs. This is a hardware and firmware limitation, not a setting oversight.

Does hibernating with the lid closed drain the battery?

No—hibernation saves the session to disk and powers off completely. Battery drain is minimal (typically <1% per hour) compared to sleep mode.

Will closing the lid damage my laptop?

No—laptops are designed for frequent lid closing. Ensure vents aren’t blocked when running with the lid closed to prevent overheating.

How do I stop my laptop from waking when I open the lid?

On Windows, open Device Manager > Keyboards or Mice and other pointing devices, right-click each device, go to Properties > Power Management, and uncheck Allow this device to wake the computer.

Can I use a USB-C dock to keep the laptop awake with the lid closed?

On Windows, yes—if the dock supplies power and the system is configured for Do nothing. On macOS, no—closing the lid will still trigger sleep regardless of dock connections.