If your Windows 11 laptop shuts down, sleeps, or loses external display when you close the lid, you’re not alone. These issues can interrupt work, disconnect monitors, and even cause unsaved data loss.
They usually stem from incorrect power settings, outdated drivers, or firmware bugs introduced by system updates. Fortunately, adjusting a few key settings and updating your system can restore stable, predictable lid-close behavior — whether you want your laptop to sleep, shut down, or keep running with the lid closed.
1. Change Lid Close Action in Power Settings
1- Open Control Panel → select Power Options.

2- Click Change what closing the lid does in the left sidebar.

3- Under Power and sleep buttons and lid settings, locate When I close the lid for both On battery and Plugged in modes.
4- Choose your preferred action:
- Do nothing – keeps your laptop running (ideal when using external monitors).
- Sleep – pauses activity while saving progress.
- Hibernate – saves memory contents to disk and powers down.
- Shut down – turns off completely.
5- Click Save changes and test by closing the lid.

If your laptop still sleeps or powers off despite these changes, continue to the next section.
2. Check Advanced Power Options and Registry Settings
Sometimes, Windows hides or overrides lid-related power settings — especially after major feature updates.
1- Open Control Panel → Hardware and Sound → Power Options.
2- Click Change plan settings next to your active plan, then Change advanced power settings.

3- Expand Power buttons and lid → verify Lid close action for both Battery and Plugged in matches your preference.
4- If the option is missing or grayed out, you can restore it through the Registry Editor: Registry path:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\ PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347\ 5ca83367-6e45-459f-a27b-476b1d01c936

- Double-click Attributes and set its value to 2.

- Restart your laptop and recheck Power Options.
⚠️ Warning: Editing the registry incorrectly can cause system instability. Always back up before making changes.
3. Update Drivers, BIOS, and Firmware
Outdated chipset or power management drivers can prevent Windows from handling sleep and wake events correctly.
- Use your OEM’s utility — such as Lenovo Vantage, HP Support Assistant, or Dell Command Update — to install the latest BIOS/UEFI and power drivers.
- Pay attention to chipset, storage (NVMe), and power management driver updates.
- If you see blue screens (e.g., DRIVER_POWER_STATE_FAILURE 0x9f), reinstall the affected driver.
- Restart and test lid behavior again.
If issues persist, run OEM hardware diagnostics to rule out physical faults.
4. Check for Conflicting Power Utilities
Many manufacturers bundle custom power management apps that override Windows settings.
- Open your OEM utility (Lenovo Vantage, HP Power Manager, Dell Power Manager, etc.).
- Review lid-close, sleep, or battery management settings.
- Disable or align them with your intended configuration.
If unsure, consult the OEM’s support documentation for clarification. Removing redundant power utilities can prevent conflicts.
5. Run the Power Troubleshooter and Review Event Viewer
Windows includes built-in tools that automatically detect and fix power configuration issues.
1- Go to Settings → System → Troubleshoot → Other troubleshooters → run Power.

2- Follow the on-screen prompts to apply any recommended fixes.
3- If the laptop still shuts down unexpectedly, open Event Viewer (Win + X → Event Viewer).
- Navigate to Windows Logs → System.

- Look for critical events or Error 0x0000009f, which points to driver power state problems.
4- Update or reinstall drivers linked to these errors.
6. Adjust Sleep and Hibernate Timers
Even if the lid action is correct, Windows may still enter sleep or hibernate mode due to timers.
- Go to Control Panel → Power Options → Change plan settings → Change advanced power settings.
- Check and modify:
- Sleep > Sleep after: Set to Never or your preferred duration.
- Sleep > Hibernate after: Set to Never if you don’t want automatic hibernation.
- Hard disk > Turn off hard disk after: Set to 0 (Never) to prevent premature shutdowns.
- Click Apply → OK.
- Review OEM power software again to ensure no separate timers are enabled.
7. Test for Hardware or Thermal Problems
If your laptop still powers off when the lid closes, heat buildup or hardware faults could be the real culprit.
- Use tools like HWMonitor or HWiNFO to log CPU and GPU temperatures.
- If temperatures rise sharply after closing the lid, airflow may be restricted — avoid running heavy workloads with the lid closed.
- Run hardware diagnostics (from your laptop manufacturer) to check for failing storage drives or system boards.
- If diagnostics report errors, contact OEM support for repair or warranty assistance.
Conclusion
Configuring how your Windows 11 laptop behaves when closing the lid isn’t just about convenience — it’s about preventing data loss and workflow disruptions.
By carefully adjusting power settings, keeping drivers and firmware up to date, and ensuring no software conflicts, you can maintain stable performance whether you prefer your laptop to stay on, sleep, or hibernate when the lid closes.
With these steps, your device will finally behave exactly as you expect every time you shut the lid.
And if you'd like to go a step further in supporting us, you can treat us to a virtual coffee ☕️. Thank you for your support ❤️!
We do not support or promote any form of piracy, copyright infringement, or illegal use of software, video content, or digital resources.
Any mention of third-party sites, tools, or platforms is purely for informational purposes. It is the responsibility of each reader to comply with the laws in their country, as well as the terms of use of the services mentioned.
We strongly encourage the use of legal, open-source, or official solutions in a responsible manner.


I’ve run into this before, thanks for sharing the fix. But that isn’t my current problem. I end up keeping my current laptop propped open a bit so I can reach in and touch the fingerprint reader. What happens, though, is that frequently Windows wakes up and doesn’t think it’s still connected to an external monitor… which means I have to unplug, then replug my HDMI cable. Any idea how I can prevent that?
1. Disable “Lid close action” for display detection
You can tell Windows not to sleep or change display settings when you close (or nearly close) the lid:
Open Control Panel → Hardware and Sound → Power Options
Click Choose what closing the lid does on the left.
For “When I close the lid”, set:
On battery: Do nothing
Plugged in: Do nothing
Click Save changes.
2. Disable “Turn off display” timeout on external monitor
Go to:
Settings → System → Power & battery → Screen and sleep
Set “When plugged in, turn off my screen after” → Never (or a longer time).
This stops Windows from dropping the HDMI signal during sleep/wake transitions.