Power & Sleep · Laptops
Fix a laptop that shuts down when you close the lid instead of sleeping
Closing the lid does what Windows is told to do in the lid settings — and something has told it to shut down, or sleep itself is failing and the laptop gives up. Set the lid action first, then check the sleep state underneath it.
What you need
- The laptop plugged in for testing. Lid behavior can differ on battery and on mains power, and Windows keeps separate settings for each. Testing plugged in removes low battery as a variable.
- Any unsaved work saved. You will close the lid several times to test, and until it is fixed each close may shut the laptop down. Save everything first.
- Five minutes in Settings and Control Panel. The lid action lives in the classic power settings, not the modern Settings pages. Both are built into Windows.
Read the problem before you touch it
- Confirm what actually happens. Close the lid, wait a minute, and open it. A sleeping laptop wakes quickly to the sign-in screen with your work as you left it. A shut-down laptop shows the maker's logo and a full start, with apps closed. A hibernating laptop also starts from the logo but restores your work — slower than sleep, and not a fault. Name which of the three you have before changing settings.
- Check whether it happens on battery too. Unplug, repeat the test, and note the result. Windows holds separate lid settings for battery and plugged in, so a laptop can sleep correctly on mains power and shut down on battery — that pattern alone tells you it is a setting, not a failure.
- Note anything that changed recently. A new work profile, a maker's utility update, or a Windows update can reset power settings. If the behavior started with a change like that, the settings check below is very likely the whole fix.
The simple fixes, in order
- Set the lid action to Sleep for both power states. Open Control Panel > Hardware and Sound > Power Options and select Choose what closing the lid does on the left. Set When I close the lid to Sleep for both On battery and Plugged in, then save changes. Microsoft describes these power settings in Power settings in Windows 11. Test by closing the lid.
- Check the maker's utility has not taken over. Many laptops ship with a maker app that carries its own lid and power behavior. If one is installed, open it and check its lid or power section matches Sleep. Where the two disagree, the maker's tool often wins, so set both to the same thing.
- Restart, then test once more. Power settings occasionally need a restart to take hold after they have been changed by another tool. Restart once and repeat the lid test on mains power and on battery.
The advanced route: when Sleep is set but shutdown still happens
- Check sleep itself from the Start menu. Put the laptop to sleep from Start > Power > Sleep without touching the lid. If it shuts down from there too, the lid is innocent — sleep is failing. Note any error, fan burst, or immediate restart as it tries to sleep; that detail decides the next step.
- Look at what stopped sleep in Event Viewer. Open Event Viewer and check Windows Logs > System around the time of a failed sleep. A driver or device named in repeated errors at those moments is the usual culprit. Updating that device's driver — graphics and network drivers are the common ones — is the fix to try before anything deeper.
- Test hibernate as the working alternative. On the same Choose what closing the lid does page, Hibernate may be offered as a lid action. If sleep keeps failing and you need the lid to preserve your work today, set the lid to Hibernate while the sleep fault is worked on. It is slower to wake, but your session survives — a fair trade until sleep is fixed.
End state
- Closing the lid puts the laptop to sleep on both battery and mains power.
- Opening the lid returns to the sign-in screen with your work as you left it.
- Sleep from the Start menu also works, confirming the lid setting was the fault.
When it goes wrong
- The lid options are missing or grayed out. On a work laptop, power settings can be set by the organization. If the choices cannot be changed, that is a policy, not a fault — raise it with whoever manages the laptop.
- The laptop sleeps but drains flat overnight. Sleep that works but loses the battery is a different problem. The guide to a laptop that drains its battery while asleep covers it.
- The laptop will not wake when the lid opens. Waking is its own fault, separate from the lid action. See the guide to a PC that will not wake from sleep.
- It shuts down even with the lid set to Do nothing. Then the shutdown is not the lid action at all — heat or a failing battery can cut power when the laptop is handled or moved. Test it sitting still, lid open, and treat a shutdown there as a hardware fault.
Related fixes
-
Fix a laptop that overheats only when the lid is closed on a dock
A laptop that runs cool open and overheats closed on a dock is usually starved of air or kept working at full power with the lid shut. Check the exhaust path first, change what closing the lid does next, and leave the dock itself for last.
-
Fix a keyboard that types numbers instead of letters on a laptop
When the right-hand letters on a laptop type numbers instead, the embedded numeric keypad is switched on. One Num Lock key press, often with Fn, turns it back off — and nothing is broken.
-
Fix a laptop that drains its battery or runs hot while asleep in a bag
You close the lid with a healthy charge and open it to a flat battery or a hot bag. Read the battery and sleep reports first, then work through wake timers, network wake, and lid behavior in order.
-
Fix a laptop whose fans run loud only while it is charging
Fans that spin up only on the charger usually mean the laptop is allowed to work harder while plugged in — a higher power mode, faster charging heat, or background work Windows postpones until AC power arrives. Match the plugged-in settings to the battery settings, then check what charging itself is adding.
Sources
- Microsoft Support, Shut down, sleep, or hibernate your PC — what sleep, hibernate and shut down each do, and where the power settings live.
- Microsoft Learn, Power button and lid settings — the lid close action settings and the power states they can trigger.