The "When I close the lid" setting decides what your laptop does the moment the lid meets the chassis: sleep, hibernate, shut down, or nothing at all. On Windows 11 it lives under Control Panel > Hardware and Sound > Power Options > Choose what closing the lid does. The catch most people hit first is that the menu offers only three choices, so hibernate and "do nothing" stay invisible until you unlock them through Additional power settings and the fast startup dependency.

Windows 10 uses the same Control Panel path, and the same hidden-option rule applies. On Macs the equivalent is System Settings > Lock Screen, or the older Energy Saver panel, where the choices are sleep, hibernate (safe sleep), or stay awake. Everything below treats Windows as the main case because its four-way menu is the one readers get stuck on, and it flags the Mac differences where they change the outcome. The values here are stable defaults that have held across Windows 10 and 11 releases; confirm anything version-specific on Microsoft's support pages.

Where the lid-close menu lives in Windows 11 and Windows 10

The setting sits in the classic Control Panel, not the Settings app. Open Start, type "lid", and the top hit reads "Change what closing the lid does" β€” that jumps you straight past two levels of menus. In Windows 11, Settings > System > Power & battery does not contain the lid action; it only holds sleep timers, battery saver, and the power mode slider. Microsoft has kept the lid control in Control Panel through the 22H2, 23H2, and 24H2 Windows 11 releases.

From Control Panel, the click path is Hardware and Sound > Power Options > Choose what closing the lid does, listed in the left-hand column. The screen then shows four rows (On battery, Plugged in) against three columns (Power button, Sleep button, Lid close). Each cell is a dropdown. Changes do not apply until you click Save changes at the bottom, which is the single most common reason people think the setting "didn't work" β€” they closed the window without saving.

Laptops with a detachable keyboard or a convertible hinge sometimes show a second entry, "When I close the lid," only while the device reports a clamshell state. If the dropdowns are greyed out entirely, a group policy or a manufacturer power manager (Lenovo Vantage, Dell Optimizer, HP Command Center) has taken control, and you edit it there instead.

The four lid actions and what each one costs you in battery and resume time

Each dropdown value trades wake speed against power draw. Sleep keeps RAM powered, so wake is near-instant but the battery keeps draining slowly. Hibernate writes RAM to disk and cuts power entirely, so wake takes longer and the drive holds a multi-gigabyte file. Shut down ends every process and reloads the OS on the next press. "Do nothing" leaves the machine running with the lid shut, which is fine on a desk and risky in a bag.

Lid action Power draw while closed Typical resume time RAM state Best for
Sleep (default) Low but continuous; battery drains over hours 1–3 seconds Held in RAM Short trips between meetings
Hibernate Effectively zero 20–45 seconds, longer on older drives Written to hiberfil.sys on disk Overnight storage, travel
Shut down Zero Full boot plus app relaunch Cleared End of day, updates pending
Do nothing Full running draw None needed Untouched Docked to a monitor, downloads running

Microsoft's default on most consumer laptops is Sleep for both battery and plugged-in columns. The drain figure that matters is sleep's standby draw: a modern laptop in sleep can lose several percent of charge per hour, so a machine left sleeping in a bag Friday to Monday can arrive at zero. That arithmetic β€” roughly 2–5 percent per hour multiplied across a weekend β€” is why hibernate earns its slower resume on trips longer than a day.

Unlocking Hibernate and "Do nothing" when they are missing from the dropdown

Hibernate is hidden by default on many installs because of fast startup. Fast startup is a hybrid shutdown that saves the kernel session to disk, and Windows disables the hibernate option while it is on β€” even though the two features share the same hiberfil.sys file. To restore the Hibernate choice, open Control Panel > Power Options > Choose what the power buttons do, click "Change settings that are currently unavailable," and untick "Turn on fast startup (recommended)" under Shutdown settings. Hibernate then reappears in the lid dropdown after a Save.

If hibernate is still absent, the feature is switched off at the firmware level in the OS. Open Command Prompt as administrator and run powercfg /hibernate on. That single command rebuilds hiberfil.sys, which by default is sized at about 40 percent of installed RAM in Windows 10 and 11 β€” on a 16 GB machine that is roughly 6.4 GB of disk reserved. The same command with off reclaims that space if you never hibernate.

"Do nothing" hides for a different reason: it only appears when the device has a lid sensor Windows recognizes, and some OEM power managers remove it. If a policy is blocking the row, check gpedit.msc under Computer Configuration > Administrative Templates > System > Power Management, where "Select an active power plan" style policies can lock the lid action. For a machine managed by an IT department, the dropdown may be read-only by design.

Doing it by command line when the Control Panel is locked down

When a policy or a missing panel blocks the GUI, powercfg sets the same values directly. The lid action is indexed per power scheme, and the setting GUID is 5ca83367-6e45-459f-a27b-476b1d01c936. You query the current value with powercfg /query and change it with powercfg /setacvalueindex for plugged-in and powercfg /setdcvalueindex for battery.

The numeric mapping is the part the menus never show you: 0 is Do nothing, 1 is Sleep, 2 is Hibernate, and 3 is Shut down. To set the lid to hibernate on battery for the active scheme, the command is powercfg /setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 2, followed by powercfg /setactive SCHEME_CURRENT to apply. Swap setdcvalueindex for setacvalueindex to change the plugged-in behavior.

This route matters for three groups: admins pushing a standard across a fleet, users on Windows 11 Home where gpedit.msc is absent, and anyone whose OEM tool keeps resetting the Control Panel choice. Run the command in an elevated prompt; a standard user gets an access-denied error. Verify the result by reopening the lid menu, which reads the same registry value the command writes.

Why your laptop wakes up in the bag even though the lid setting says sleep

A lid set to Sleep should stop the machine doing work, but three separate mechanisms can wake it while shut. The first is a scheduled task or Windows Update wake timer. The second is a USB device β€” a mouse nudged inside the bag, a dock, or a connected phone β€” configured to wake the system. The third is Modern Standby, the always-connected sleep state on most post-2020 laptops, which keeps background network activity alive and can finish updates while the lid is closed, warming the chassis.

Check what woke the machine with powercfg /lastwake in an elevated prompt; it names the device or timer responsible. powercfg /devicequery wake_armed lists every device currently allowed to wake the PC, and Device Manager > the device > Power Management lets you untick "Allow this device to wake the computer." For wake timers, Control Panel > Power Options > Change plan settings > Change advanced power settings > Sleep > Allow wake timers can be set to Disable.

The bag scenario has a real cost: a laptop that wakes, runs, and sleeps repeatedly in an enclosed space can heat-soak, and repeated thermal cycling is hard on the battery. If your machine does this, hibernate on lid close removes the wake-on-timer problem entirely, because a hibernated system has no running kernel for a timer to wake.

Mac equivalents: sleep, safe sleep, and the clamshell rules

Macs don't expose a four-way lid menu. Closing the lid puts the Mac to sleep, and a desktop Mac with an external display can stay awake in "clamshell mode" only when it has power, a display, and a keyboard or mouse attached. On Apple silicon Macs the sleep behavior is closer to standby: the machine writes state to disk as a backup and can stay in a low-power state for days. The old pmset command still reports and sets these modes for anyone who needs to script it, with hibernatemode values that differ between Intel and Apple silicon Macs.

On the software side, System Settings > Lock Screen controls what happens after sleep β€” require a password, and how quickly. That's the Mac counterpart to the Windows "require a password on wakeup" link on the lid settings screen. If a Mac wakes unexpectedly when the lid is shut, the usual culprits are a Bluetooth peripheral, a scheduled Time Machine backup, or Power Nap, which Apple documents as a feature that lets a sleeping Mac check mail and updates.

The practical difference for switchers: a Windows user hunting for a hibernate choice will not find one on a Mac, and a Mac user expecting "do nothing" will not find it either. The closest Mac equivalent is a third-party utility such as Amphetamine, which keeps the machine awake on a schedule or condition.

What happens to external monitors, docks, and USB drives on lid close

For anyone working from a dock, the lid setting changes the whole desktop. Set to Sleep, closing the lid cuts video to the external monitor and drops the dock's USB devices, which can interrupt a file copy mid-transfer. Set to "Do nothing," the laptop keeps driving the external display with the lid shut β€” the standard desk setup β€” and the internal panel goes dark on its own.

There's a firmware wrinkle. Some laptops power off their USB-C or Thunderbolt ports on lid close regardless of the OS setting, because the port controller follows the lid state at the firmware level. If your external drive disconnects every time you shut the lid, check the BIOS or UEFI setup for a "lid close" or "USB power in sleep" option, and check the dock maker's documentation for a wake-on-lid or always-on setting.

A file copy interrupted by sleep is the failure case worth planning for. If a backup or a large render is running, either leave the lid open or set the lid to "Do nothing" and apply the setting before starting the job. Windows does not warn you when a lid-close sleep interrupts a transfer β€” the copy resumes or fails silently depending on the app.

Group policy, OEM tools, and settings that quietly override your choice

A saved lid choice can be overridden by three layers above the Control Panel. Group Policy wins over user settings on domain-joined machines; the policy path is Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings. OEM tools β€” Lenovo Vantage, Dell Optimizer, HP Command Center, ASUS MyASUS β€” sometimes rewrite the power scheme after a driver update, which is why users report the setting "reverting by itself" after a Windows update.

Battery saver adds another override on Windows 11. When battery saver kicks in below a configurable threshold (default 20 percent on many builds), Windows adjusts sleep and screen behavior, and on some hardware it changes how aggressively the machine sleeps when idle. The lid action itself usually survives battery saver, but the wake and password behavior may not, so test on battery, not just plugged in.

If a manufacturer tool keeps resetting your choice, uninstall its power component or set the lid action from within that tool rather than the Control Panel. On a managed work laptop, the reading is simpler: the IT department has locked the value by policy, and the dropdown may be greyed out entirely. Ask before assuming your save failed.

Choosing a lid action by scenario, from commutes to overnight renders

Match the lid action to how long the machine will be shut and whether it needs to keep working. The decision is about time away and whether anything is running, not about which option sounds most modern.

Commute under two hours: Sleep. Resume is instant, and the standby drain is small over a short gap. Overnight or a weekend: Hibernate, if you have enabled it. Zero draw and a clean resume beat returning to a dead battery. Docked to a monitor at a desk: Do nothing, so the external display and USB devices stay live. Downloads, backups, or renders running: Do nothing, or leave the lid open. Sleep interrupts the job. Shipping the laptop or storing it for weeks: Shut down, which clears RAM and avoids standby drain entirely.

The hidden cost of Hibernate is disk space, quantified earlier at roughly 40 percent of RAM. The hidden cost of "Do nothing" is heat and battery drain in a bag. Neither is wrong β€” the choice depends on whether the machine is stationary and working or moving and idle.

Testing your change: confirming the laptop actually sleeps, hibernates, or stays awake

After saving a new lid action, verify it instead of trusting the dropdown. Close the lid, wait two minutes, and check the power LED or listen for the fan β€” a sleeping or hibernated machine is silent, while "Do nothing" keeps a faint fan hum on many models. On reopening, a hibernate resume shows the manufacturer logo and a disk-loading pause, while a sleep resume shows the lock screen almost immediately.

For an exact read, use powercfg /a to confirm which sleep states the hardware supports, and powercfg /lastwake after a suspicious wake. Event Viewer > Windows Logs > System records Kernel-Power events around each sleep and wake, which timestamps the transition to the second if you need proof for a support case.

If the change doesn't stick, work through the layers in order: confirm you clicked Save changes, check whether an OEM tool reset the value, then check policy. On most machines the fix is the save step or a Lenovo/Dell/HP power utility, not a Windows bug. Testing once after the change takes two minutes and saves the confusion of discovering the problem in a bag, at an airport, with a dead battery.

FAQ

Does closing the lid always put a Windows laptop to sleep?

No. Sleep is only the factory default on most consumer machines, and the lid action can be set to hibernate, shut down, or do nothing. On a laptop where hibernate has been enabled and chosen, closing the lid writes RAM to disk and cuts power. Check the dropdown rather than assuming, because OEM tools and group policy can change the default before you ever open the menu.

Why is Hibernate missing from my lid dropdown?

Fast startup is the usual cause, because Windows hides the Hibernate option while fast startup is on. Turn off fast startup under Choose what the power buttons do, then save. If it is still missing, run powercfg /hibernate on in an elevated Command Prompt, which creates the hiberfil.sys file at roughly 40 percent of installed RAM.

Can I close the lid and keep using an external monitor?

Yes, if you set the lid action to Do nothing and the laptop is connected to power, a display, and an input device. The internal screen goes dark and the external monitor keeps working. Some laptops cut power to USB-C and Thunderbolt ports on lid close at the firmware level, so check the BIOS if a docked drive disconnects.

Is hibernate better than sleep for battery life?

For long gaps, yes. Sleep keeps RAM powered and drains a few percent of charge per hour, so a weekend in sleep can empty the battery. Hibernate draws effectively zero once the RAM image is on disk. The trade is resume time, which runs 20–45 seconds versus 1–3 seconds for sleep.

How do I stop my laptop waking up in its bag?

Run powercfg /lastwake to identify the device or timer that woke it, then remove wake permission for that device in Device Manager or disable wake timers in advanced power settings. If Modern Standby keeps the machine active, switching the lid action to hibernate eliminates wake timers entirely.

Do Macs have a "when I close the lid" setting?

Not as a menu. A Mac sleeps on lid close, and clamshell mode keeps it awake only with power, an external display, and an input device attached. Sleep behavior can be scripted with the pmset command, whose hibernatemode values differ between Intel and Apple silicon Macs.

Why does my lid setting revert after a Windows update?

OEM power utilities from Lenovo, Dell, HP, and ASUS can rewrite the active power scheme after a driver or firmware update. Managed work laptops may also have the value locked by group policy. Set the lid action inside the OEM tool if uninstalling it isn't an option, and confirm the policy path under System > Power Management before blaming Windows.