Vai al contenuto

Gestione Power config

Change Default Lid Close Action in Command Prompt

  1. Open a command prompt.
  2. Type the following command to change the lid close action when on batterypowercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 <ACTION_ID>.Change Default Lid Close Action In Command Prompt
  3. To do the same for Plugged in, type the command: powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 <ACTION_ID>.Change Default Lid Close Action In Command Prompt When Plugged In
  4. Replace <ACTION_ID> with the appropriate value from the table below, and hit the Enter key to run the command.
  5. Now, type and run the command powercfg -SetActive SCHEME_CURRENT to make Windows 10 apply the power scheme change, and you are done.Apply Lid Close Action Changes In Command Prompt

Pick the required ACTION_ID value from this table.

ACTION_IDAction
0Do nothing
1Sleep
2Hibernate
3Shut down

Here’s how you can specify the default close lid action for the specific Power Plan using the command prompt and powercfg.

Set Lid Close Action for Specific Power Plan in Command Prompt

  1. Open a command prompt.
  2. Type and run the powercfg /L command to list the available power schemes. The active power plan has * to the right of its name.Powercfg List Available Power Plans
  3. Make note of the GUID value, like 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c of the power plan you want to apply the change to.
  4. Type this command to set the lid close action for the close lid action when on battery: powercfg -setdcvalueindex <GUID> 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 <ACTION_ID>.Set Lid Close Action For Specific Power Plan
  5. The following command changes the lid close action for Plugged in: powercfg -setdcvalueindex <GUID> 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 <ACTION_ID>.Set Lid Close Action For Specific Power Plan In Command Prompt
  6. Replace <GUID> with the power scheme GUID value you noted. Replace <ACTION_ID> from the table in the previous chapter.
  7. Restart your computer to make Windows 10 apply the change.

Lascia un commento

Il tuo indirizzo email non sarĂ  pubblicato. I campi obbligatori sono contrassegnati *