There are man laptop users who want to close the lid but do not want the laptop to get into sleep mode. Windows 10 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. However, 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.
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.
Set what happens when you close the laptop lid using PowerCFG
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:
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.
I hope the post was easy to follow, and you are now able to change the action when you close the laptop lid using powercfg in Windows 10.
Read next: How to change Laptop Lid Open Action in Windows 10.