The power button can do more than shut down your PC, although this is the default action for desktop users. If you want to change the power button action in Windows 11, it's easier than you think!
Keep in mind that the physical power button is different from the button in the Start menu, and the changes below will not affect the operation of the latter. Additionally, you'll find slightly different power options depending on whether it's a desktop or laptop.
Why should you change the power button action in Windows 11?
If you put your computer to sleep more often than you shut it down, changing the way the hardware power button (that is, the physical power button on your PC) behaves. The same idea applies to sleep mode or simply turning off the display.
Changing the power button settings in Windows 11 will simplify things and make it easier to use your PC in a personalized way.
1. Using Control Panel
- Press to open the Search menu, type "Control Panel" in the text field, and then click on the relevant search result. WindowsS
- Click "System and Security".
- Click Change what the power button does under Power Options in Windows 11.
- Now, select from the drop-down menu how you want your computer to behave when you press the power button to use battery and to plug in power at the same time. Typically available options are:
- Do nothing: Do not perform any actions
- Sleep: The computer enters sleep mode (on laptops Default setting)
-
HibernateHibernate: The computer enters hibernation mode
-
Shutdown: The computer shuts down (default setting on desktop computers)
-
Turn off Monitors: Power off all attached monitors
- When finished, click at the bottom to save changes .
The settings here may be different for users. For example, when I turn off the lid settings for laptop users, there will be an extra setting. Likewise, some may find the "Turn off display" option missing if their computer doesn't support the S3 standard and has modern standby, which is the newer of the two.
Also, the "Battery Powered" setting is only available for desktop users with a UPS connected. Remember, any changes you make through the control panel only apply to the current power plan.
2. Prompt via settings
These settings are currently available in preview builds and will be rolled out to regular users soon. Update window and check. If you still can't find them, try other options.
- Press to open the Settings app and click Power & Battery to the right of the System tab. WindowsI
- Expand the "Power Button Control" entry.
- Now, select the desired function from the drop-down menu next to Pressing the power button will put my PC in plugged in and battery state.
3. Press to open Run through Windows PowerShell
- , type PowerShell, and then press . Windows#RCtrlShiftEnter
- Place an order at the UAC prompt Click "is".
- Now, paste one of the following commands and click, depending on the power button action you want to force in Windows 11: Enter
-
Use Battery ;
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 1<strong></strong>
powercfg -setdcvalueindex SCHEME_CURR ENT 4f971e89- eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 2<strong></strong>
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e734 7 7648efa3-dd9c-4e3e-b566- 50f929386280 3<strong></strong>
<strong>Inserted: </strong>
Do nothing: Sleep: Hibernate: Shutdown:
- powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd -4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0<strong></strong>
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 76 48efa3-dd9c-4e3e-b566-50f929386280 1<strong></strong>
##powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 2<strong></strong>
powercfg - setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3<strong></strong>
<strong></strong>
Enforced via PowerShell Changes only apply to the current power plan. You can select another power plan and execute commands to modify it.
4. In the Local Group Policy Editor
press to open "Search", type
"Local Group Policy Editor
" in the search bar, and then Click on the relevant result.
Windows
S-
<strong></strong>Expand "Administrative Templates" under "Computer Configuration" and select "System".
-
Now, select Power Management from the left and then Button Settings under it and double click to select Power Button Action (Plugged In) or select Power Button Action from the right (using Battery) to configure these two settings .
-
Select Enabled in the upper left corner, select the desired configuration from the Power Button Action drop-down menu, and click Apply and OK to save changes .
-
<strong></strong>You'll also find policies for other settings here, including lid closure (if it's a laptop). If you don't have the local Group Policy Editor on your PC, check the OS version and if it's Windows 11 Home, install gpedit.msc manually. Keep in mind that these changes will be reflected in all power plans.
5. Use the Registry Editor
- Press to open "Run", type regedit in the text field, and then click "OK". WindowsR
- Click "is" at the UAC prompt.
- Go to the following path from the navigation pane or paste it into the address bar and click: Enter
<strong>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings\ 7648EFA3-DD9C-4E3E-B566-50F929386280</strong>
- #If you cannot find the key or DWORD below, right-click the entry before it in the path and hover your cursor On "New" and select "DWORD (32-bit) Value" or "Key" as appropriate.
- To change the power button function in Windows 11, right-click the DCSettingIndex DWORD and select Modify.
- Replace Value Data with the value provided below for the desired setting:
-
Sleep: 1
-
Hibernate :2
-
Shut down:3
-
Do nothing:0
- To change Power button behavior for powering on in Windows 11, right-click the ACSettingIndex DWORD and select Modify.
- Paste the relevant value into the Value Data text field to configure the power button action settings:
-
Sleep: 1
-
Hibernate : 2
-
Shut down : 3
-
Do not perform any operation : 0
## When finished, click OK to save the changes and then restart your computer to apply the new power button action.
What else can I do with the power button in Windows 11? The power button's range is limited in Windows, primarily related to shutting down the computer and putting it into sleep and hibernation modes. You can also turn off the display, but this feature only exists on older systems that are compatible with the S3 power state. However, you can manually enable S3 sleep state in Windows. If you're wondering about UI changes, removing the power button from the logo screen is easy! Once you learn how to change the behavior of the soft power button in Windows 11, personalization will take a whole new level. For more seamless operation, you can create a shutdown shortcut and shut down your PC quickly. Finally, users have reported issues with power modes, specifically the lack of power plans in Windows 11. Running the built-in troubleshooter or updating your drivers usually solves the problem!
The above is the detailed content of Change the power button action on Windows 11 [5 Tips]. For more information, please follow other related articles on the PHP Chinese website!