Add or Remove Lid close action from Power Options in Windows  

    Add or Remove Lid close action from Power Options in Windows

    Add or Remove Lid close action from Power Options in Windows

    How to Add or Remove 'Lid close action' from Power Options in Windows
    Published by Category: Performance & Maintenance
    19 Dec 2020
    Designer Media Ltd


    How to Add or Remove "Lid close action" from Power Options in Windows


    The Lid close action setting in Power Options lets users specify the default action to take when the laptop (system) lid is closed.

    Users can specify one of the following actions to take: do nothing, sleep, hibernate, or shut down.

    This tutorial will show you how to add or remove the Lid close action setting under Power buttons and lid in Power Options for all users in Windows 7, Windows 8, and Windows 10.

    You must be signed in as an administrator to be able to add or remove this setting in Power Options.

    This will not affect the When I close the lid setting in Power Options > Choose what the power buttons do (System Settings) below.
    Add or Remove Lid close action from Power Options in Windows-choose_what_the_power_buttons_do.jpg



    Contents

    • Option One: Add or Remove "Lid close action" in Power Options using Command Prompt
    • Option Two: Add or Remove "Lid close action" in Power Options using REG file



    EXAMPLE: "Lid close action" in Power Options
    Add or Remove Lid close action from Power Options in Windows-lid_close_action_in_power_options.jpg





    OPTION ONE

    Add or Remove "Lid close action" in Power Options using Command Prompt


    1 Open an elevated command prompt.

    2 Copy and paste the command below you want to use into the elevated command prompt, and press Enter.

    (Add - default)
    powercfg -attributes SUB_BUTTONS 5ca83367-6e45-459f-a27b-476b1d01c936 -ATTRIB_HIDE

    OR

    (Remove)
    powercfg -attributes SUB_BUTTONS 5ca83367-6e45-459f-a27b-476b1d01c936 +ATTRIB_HIDE

    3 You can now close the elevated command prompt if you like.






    OPTION TWO

    Add or Remove "Lid close action" in Power Options using REG file


    The downloadable .reg files below will modify the DWORD value in the registry key below.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\4f971e89-eebd-4455-a8de-9e59040e7347\5ca83367-6e45-459f-a27b-476b1d01c936

    Attributes DWORD

    1 = Remove
    2 = Add


    1 Do step 2 (add) or step 3 (remove) below for what you would like to do.


    2 To Add "Lid close action" to Power Options

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Add_Lid_close_action_to_Power_Options.reg

    Download


    3 To Remove "Lid close action" from Power Options

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Remove_Lid_close_action_from_Power_Options.reg

    Download


    4 Save the .reg file to your desktop.

    5 Double click/tap on the downloaded .reg file to merge it.

    6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    7 You can now delete the downloaded .reg file if you like.


    That's it,
    Shawn




  1. Posts : 11
    Windows 10
       #1

    Hi Shawn,

    For Option Two in this tutorial, you have DWORD value of 2 for ADD.
    Shouldn't the value be 0 (zero)?

    I ask because when I ADD using command prompt (Option One), the value in the Registry is set to 0.
    Am I doing something wrong?

    Thanks,
    Seto
      My Computer

  2. Brink's Avatar
    Posts : 56,295
    64-bit Windows 10 Pro for Workstations build 21359
    Thread Starter
       #2

    meinprotaras said:
    Hi Shawn,

    For Option Two in this tutorial, you have DWORD value of 2 for ADD.
    Shouldn't the value be 0 (zero)?

    I ask because when I ADD using command prompt (Option One), the value in the Registry is set to 0.
    Am I doing something wrong?

    Thanks,
    Seto
    Thank you Seto.

    Odd. It used to be 2 instead of 0 to add, but it appears something has changed since originally posted. Tutorial now updated.
      My Computers

  3. JAY B's Avatar
    Posts : 36
    Windows 10
       #3

    Hi @Brink

    On my Windows 10 20H2 (Build 19042.685), I must set the Value at 2, and the lid close action is showing up, if I set it at 0, there's nothing !

    Bye
      My Computer

  4. Brink's Avatar
    Posts : 56,295
    64-bit Windows 10 Pro for Workstations build 21359
    Thread Starter
       #4

    JAY B said:
    Hi @Brink

    On my Windows 10 20H2 (Build 19042.685), I must set the Value at 2, and the lid close action is showing up, if I set it at 0, there's nothing !

    Bye
      My Computers


 

Tutorial Categories

Add or Remove Lid close action from Power Options in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 03:21.
Find Us




Windows 10 Forums