How to change your PC’s power button action on Windows 11

You can configure the power button to perform different actions on Windows 11, and here's how.

Power button controls
Power button controls / Image: Mauro Huculak
  • To change the power button action on Windows 11 (24H2 or higher), open Settings > System > Power, and choose the “Sleep,” “Hibernate,” “Shutdown,” “Display Off,” or “Do Nothing” action in the “Power button controls” settings.
  • On Windows 11 (23H2 and older), open Control Panel > Hardware and Sound > Power > Choose what the power button does, choose the action, and click “Save changes.”

On Windows 11, you can choose the exact action when pressing the power button on your laptop or desktop computer, and in this guide, I will explain the steps to complete this configuration. If you want to reduce the computer’s energy usage, in addition to using the “Energy Saver” or “Battery Saver,” you can change the action of the power button to sleep or hibernate instead of shutdown. However, the way to configure this feature will depend on the version of Windows 11 installed on your computer.

In the case of Windows 11 23H2 and older versions, you will have to use the Control Panel settings, while on version 24H2 and higher releases, the power button controls have been ported to the Settings app. Similar to legacy settings, the options available will depend on the type of device and whether or not it’s connected to a battery.

In this guide, I will teach you the different ways to decide the action when pressing the physical power button of your computer on any supported version of Windows 11.

Change power button action on Windows 11 (24H2 and higher)

To change the action of the power button on version 24H2 and higher releases, use these steps:

  1. Open Settings on Windows 11.

  2. Click on System.

  3. Click the “Power & battery” (or “Power”) page.

  4. Click the “Lid & power button controls” (or “Power button controls”) setting.

  5. Select the action for the power button for “Plugged in” and “On Battery:”

    • Sleep
    • Hibernate
    • Shutdown
    • Display Off
    • Do Nothing

    Windows 11 24H2 Power button controls

If this is a computer with battery backup, you will have the option to change the action of the power button when the device is plugged in and on battery. Otherwise, you will only see the “Plugged in” option.

If this is a laptop, you will also have the option to change the action of closing the lid.

Regardless of the option you choose, you can still press and hold the power button for five or more seconds to trigger the immediate shutdown.

The “Hibernate” option will only be available if the option is supported and it’s been enabled on the device.

Change power button action on Windows 11 (23H2 and older)

To change the power button action on version 23H2 and older releases, use these steps:

  1. Open Start.

  2. Search for Control Panel and click the top result to open the app.

  3. Click on Hardware and Sound.

  4. Click on Power Options.

  5. Click the “Choose what the power button does” option from the left pane.

    Choose what the power button does

  6. Select the action for pressing the power button for “On Battery” and “Plugged in:”

    • Sleep
    • Hibernate
    • Shutdown
    • Do Nothing

    Windows 11 23H2 Power button controls

  7. Click the Save changes button.

Once you complete the steps, whenever you press the power button, the computer will sleep or shut down according to the specified action.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and Email him at [email protected].