These days most of us simply prefer to close the lid of our Windows 11/10 laptops once our work is over. Closing the laptop lid can result in your Windows shutting down, sleeping or hibernating. You can control the behavior and decide what you want to do, once you close the lid.
Some man laptop users want to close the lid but do not want the laptop to get into sleep mode. Windows is built to respond to the closing of the lid by putting the computer into sleep mode. This saves battery, and the work can be resumed as soon as you lid up. Users want to keep running programs in the background, but since the display consumes a lot of battery, they want it to be off. One way of doing this is to dim the display or disable this setting.
Most of us are aware that there are particularly 3 methods for powering down your new Windows 11/10 PC.
- You can make the PC sleep
- You can hibernate the PC
- You can turn it off completely
The Sleep option consumes little power to help your PC wake up faster and in no time so that you are back to where you left off. Chances of losing your work due to battery draining are minimized to zero in the Sleep mode as the OS automatically saves all your work before turning off your PC when the battery is too low. This mode is often brought into use when a person is away from his desk just for a while. Say, for a coffee break or while getting some refreshments.
The Hibernate option, in comparison to the Sleep mode, uses even less power and lands you at the same position where you last left off. The option, however, should be used when you are aware that you won’t use your laptop for an extended period.
Read this post if you are unsure whether you want to select Hibernate or Shutdown and here to see the difference between Sleep & Hibernate.
As mentioned. is it possible to push your laptop to any of the three power states described above, by simply closing the lid of your machine? Let us in this post learn how to shut down, hibernate, sleep Windows PC by closing the lid of your laptop.
Laptop settings – When you close lid
Press Win+R in combination to open the Run dialog. In the box, type powercfg.cpl and press Enter. This will open the Power Options applet of the Control Panel.
Now, in the Power Options window that opens up, click ‘Choose what closing the lid does’ link from the left side panel.
Choose what closing the laptop lid does
Choose what you want your laptop to do, when it’s running on battery and when it’s plugged in. For instance, under the Power button and lid settings section, you can find ‘When I Close the Lid’ option. Adjacent to it you can find options to help you define power button or lid settings.
You can choose from Do Nothing, Sleep, Shutdown, and Hibernate.
You should choose Shut down if you want to shut down Windows as soon as you close the lid. Select the desired option and click Save changes to save the settings.
In a similar fashion, you can also Change what the Power Button does when you press it.
See this post if Choose what closing the Lid does option is missing.
How to set what happens when you close the laptop lid using PowerCFG
Powercfg is a useful utility if you need to change the power setting quickly across the profile without opening the interface. If you have multiple computers at home and need to change settings on each, this is definitely handy. This post will guide how you can set what happens when you close the laptop lid using powercfg in Windows 10.
The first step in this method is to figure out the number of power plans you have on the computer and then change the setting for each of them. Close lid actions offer four methods—Nothing, Sleep, Hibernate, and Shutdown.
Open Command Prompt with admin permission, and then type the command powercfg /L to view all the plans.
It will display a list of GUIDs along with power names. Make sure to note the GUID for which you want to change. An asterisk marks the active or the current plan.
Since laptops run on battery and direct power, you will have to make changes for both or at least one based on your requirement.
We will use two options with the powercfg command:
- -setacvalueindex
- -setdcvalueindex
AC means when the laptop is plugged and DC means when it is running on battery.
powercfg -setdcvalueindex <GUID> 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 <LIDValue> powercfg -setacvalueindex <GUID> 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 <LIDValue>
Where GUID is from the above command, and LIDValue can be 01,2,3 and 4.
- 0 = Nothing
- 1= Sleep
- 2= Hibernate
- 3= Shutdown
It is important to note that GUID may change from computer to computer, and it is always a good idea to find out the exact GUID and then make the change. If you need to change it often, create a batch file and execute it as per need.
Keep laptop running with the lid closed
If you want to keep your laptop running even with the lid closed, select Do Nothing. See this post if you want to charge your Phone in Sleep Mode with the Laptop lid closed.
Can I leave my laptop on sleep mode overnight?
Yes, it’s completely safe to keep your laptop in sleep mode overnight or for 8-10 hours. It won’t drain the laptop battery a lot. Since only the memory consumes battery in sleep mode, there will be around a 5-10% drop in your laptop battery. However, you should use sleep mode for a short break (say 15-30 minutes) and use hibernate mode if you need to leave your laptop for hours and you won’t get the time to charge your laptop.
What are the disadvantages of hibernating computer?
Hibernation mode needs a good amount of hard disk space as the size of the hiberfil.sys (file that stores the content of current memory) file could be in GBs. Your laptop or desktop needs more time to resume your session as your current session is stored on the hard disk (instead of memory). In case of power loss, the unsaved data is lost. Other than that, hibernation mode is a good option to use when you need to leave your system unattended for hours.
Do let us know how you have set your Windows to behave when you close the laptop lid.
Read next: How to change Laptop Lid Open Action in Windows.