Sleep is a normal low-power mode, but an automatic restart is a separate issue that should be investigated if it happens repeatedly.
What “Sleep” means
When your laptop sleeps:
- The screen turns off and the computer uses very little power.
- Your open applications and work remain available.
- It resumes more quickly than after a complete shutdown.
- You can normally wake it by opening the lid, pressing the power button, or pressing a keyboard key, depending on the laptop. ^1^
Sleep can happen automatically after the laptop has been idle or when you close its lid.
To change when it sleeps:
- Open Start → Settings → System → Power & battery.
- Select Screen, sleep, & hibernate timeouts.
- Change Make my device sleep after for both battery and plugged-in use.
- Choose Never temporarily if you need to determine whether the laptop is sleeping or actually restarting. ^2^
To change what closing the lid does:
- Search for and open Control Panel.
- Select System and Security → Power Options.
- Select Choose what closing the lid does.
- Choose the required action under On battery and Plugged in, then save the changes. ^1^
If the laptop is actually restarting
A restart means Windows closes and starts again, usually displaying the manufacturer’s logo. If you briefly see “Your device ran into a problem and needs to restart”, a blue or black error screen, or a stop code, Windows encountered a serious error. Hardware, a driver, or software can cause this. ^3^
If it happens repeatedly:
- Record the error: Photograph any stop code, such as
MEMORY_MANAGEMENT, and note what you were doing. - Remove recently connected hardware: Shut down and disconnect any new USB device or other hardware, then test again.
- Check Device Manager: Right-click Start → Device Manager. Look for a device with a yellow exclamation mark; right-click it and select Update driver.
- Install Windows updates: Open Settings → Windows Update → Check for updates.
- Check storage space: Keep approximately 10–15% of the system drive free.
- If Windows cannot stay running normally, start it in Safe Mode and test there. ^3^
If it restarted only once and now operates normally, no further action may be necessary. If it continues, provide the laptop manufacturer/model, whether an error screen appears, and the exact stop code.
References