Closing the lid does not have to mean sleep. On Windows and macOS you can set exactly what happens when the lid closes while on battery or plugged in: do nothing, sleep, hibernate, or shut down. The setting lives in the power options, and it is the same place you would look for screen timeout or sleep behavior. On Windows 11 the quickest route is Settings > System > Power & battery > Lid & power button controls (labels can differ slightly by version, device, and region). On macOS it is System Settings > Lock Screen (or Energy Saver on older Macs) for related sleep behavior, though Apple does not expose a per-lid-action menu the way Windows does. The steps below cover Windows first because that is where the setting is explicit, then note the Mac situation.

What You'll Need

  • A Windows 10 or Windows 11 PC (steps are written for Windows 11; Windows 10 uses Control Panel > Power Options > Choose what closing the lid does).
  • Administrator rights if the option is greyed out.
  • For Macs: awareness that the lid behavior is tied to sleep settings, not a separate lid menu.

Step-by-Step

  1. Open Settings by pressing the Windows key and typing "Settings," or click the gear icon in the Start menu.
  2. Go to System > Power & battery. On Windows 10, open Control Panel and choose Power Options instead.
  3. Expand the "Lid & power button controls" section. If you do not see it, click "Additional power settings" to open the classic Control Panel view.
  4. Find the two drop-downs labeled "On battery" and "Plugged in" under "Closing the lid will." These are the actual power settings for the lid.
  5. Choose an action for each state. "Do nothing" keeps the PC awake with the lid shut (useful when docked to an external monitor). "Sleep" is the default and saves the most power. "Hibernate" writes memory to disk and survives a full battery drain. "Shut down" powers off completely.
  6. Click Save changes. The setting applies immediately, no restart required.
  7. Test it: close the lid briefly, watch the power LED or listen for the fan, then reopen and confirm the PC behaved as chosen.
  8. On a Mac, open System Settings > Lock Screen and check the "Start up automatically after a power failure" and display sleep options; macOS sleeps on lid close by default and does not offer a "do nothing" lid action without third-party tools, so plan around that.

Common Mistakes

  • Setting "Do nothing" on battery and then putting the laptop in a bag. It keeps running, heats up, and drains the battery; use Sleep or Hibernate for travel.
  • Changing only the "Plugged in" drop-down and wondering why the laptop still sleeps on battery.
  • Expecting the setting to override a group policy or manufacturer power plan that locks lid behavior; in that case the drop-downs are greyed out.
  • Confusing lid action with screen timeout. They are separate settings and one does not change the other.
  • Assuming a Mac has the same menu. It does not; lid close is tied to sleep and cannot be set to "do nothing" from System Settings.

Tips

  • Use "Do nothing" only when the laptop is on a desk with airflow and an external display, never in a closed bag.
  • Hibernate is the safer choice for travel than Sleep because it survives a battery drain without losing open work.
  • If you dock frequently, set "Plugged in" to "Do nothing" and "On battery" to "Sleep" for the best of both.
  • Check the setting again after major Windows updates; feature updates occasionally reset power plans.
  • On Macs, third-party utilities can change lid behavior, but stick to well-known, officially distributed apps rather than modified system files.

Troubleshooting

If the drop-downs are greyed out, your organization or manufacturer may control the power plan. Sign out and back in, then check whether you are on a managed device. If the laptop still sleeps with the lid open or wakes unexpectedly, check for a scheduled task or a connected device waking it. If "Do nothing" causes overheating, switch back to Sleep immediately and let the machine cool before using it again. If the setting does not stick after a restart, run the built-in power troubleshooter from Settings > System > Troubleshoot > Other troubleshooters. On a Mac that will not stay awake with the lid closed, that is expected behavior; use clamshell mode with power and an external display, which Apple supports, rather than trying to disable sleep.

Frequently Asked Questions

Does closing the lid turn off the screen?

Yes, the display turns off on lid close regardless of the action you choose; the setting controls what the computer does next.

Can I keep the laptop running with the lid closed?

On Windows, yes, by setting "Do nothing." Keep it ventilated and never in a bag.

Why is my lid setting greyed out?

Usually a group policy or manufacturer power plan is enforcing it; check with your administrator.

Does this work the same on a Mac?

No. macOS sleeps on lid close by default and does not offer a "do nothing" option in System Settings.

Will "Do nothing" drain the battery?

Yes, the PC stays fully awake, so battery drains at normal rate; use it only while plugged in or briefly.