Laptop Sleeps When You Close the Lid, or Won't Turn Off: How to Change the Lid Close Action (Windows 10/11)

You connect an external monitor and keyboard to your laptop and close the lid, but every screen goes dark and the laptop goes to sleep. Or the opposite: you close the lid and put the laptop in your bag, but it stays on, gets hot and drains the battery. Both are controlled by Windows' lid close action, and you can set it separately for running on battery and being plugged in.
1. Change it in Control Panel Power Options (Windows 10 and 11)
- Search for Control Panel on the taskbar, open it, and select Power Options.
- In the left pane, select Choose what closing the lid does.
- Next to When I close the lid, pick an action for On battery and for Plugged in. The choices are Do nothing, Sleep, Hibernate and Shut down (Hibernate may not appear on some PCs).
- Select Save changes at the bottom to apply it.
2. What to choose for your situation
- Using an external monitor with the lid closed: set Plugged in to Do nothing. Only the laptop screen turns off and you keep working on the external monitor.
- Carrying the laptop with the lid closed: leave On battery at Sleep or Hibernate. For long breaks, Hibernate uses less battery.
- If it is set to Do nothing and you put the laptop in a bag, it keeps running and builds up heat. In that case, put it to sleep or shut it down yourself before packing it.
3. When options are greyed out or won't save
- Select Change settings that are currently unavailable at the top of the same page to unlock greyed-out options (an administrator account is required).
- Laptops managed by a company or school may have this setting locked by policy. Ask your administrator in that case.
- Recent Windows 11 builds may also have lid and power button options under Settings → System → Power & battery. Changing it in either place applies the same setting.
4. If the laptop still behaves differently
- If the lid is set to Sleep but the laptop shuts down completely, check whether the laptop maker's power or battery app has its own lid setting.
- Turning on automatically when you open the lid is usually controlled in the laptop's BIOS (UEFI) or the maker's app, not in Windows. Windows has no option for what happens when the lid opens.
Sources: Microsoft Support – Shut down, sleep, or hibernate your PC, Microsoft Q&A – Power on when opening the lid
Blog
- All Your Desktop Files Gone After Signing In? What to Do When Windows Signs You In With a Temporary Profile (Windows 11)
- "The Recycle Bin Is Corrupted" Error? How to Fix It by Resetting $Recycle.Bin (Windows 10/11)
- "Access Denied" When Opening a Folder? How to Take Ownership and Get Your Permissions Back (Windows 10/11)
- Keyboard Lagging or Not Typing? How to Turn Off Filter Keys and Sticky Keys and Set the Key Repeat Rate (Windows 10/11)
- Screen Dims or Changes Brightness by Itself? How to Turn Off Auto Brightness and Content Adaptive Brightness (Windows 11)
- "Windows Protected Your PC" Blue Screen: How to Check a Program Is Safe Before Running It (SmartScreen, Windows 10/11)
- Screen Turned Sideways or Upside Down: How to Fix the Display Orientation (Windows 10/11)
- Laptop Touchpad Suddenly Stopped Working: How to Turn It Back On and Check Shortcut Keys and Drivers (Windows 10/11)