Home > Common Problem > body text

Change the power button action on Windows 11 [5 Tips]

WBOY
Release: 2023-09-29 23:29:05
forward
2822 people have browsed it

更改 Windows 11 上的电源按钮操作 [5 提示]

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.

How to change what the power button does in Windows 11?

1. Using Control Panel

  1. Press to open the Search menu, type "Control Panel" in the text field, and then click on the relevant search result. WindowsS
  2. Click "System and Security". 更改 Windows 11 上的电源按钮操作 [5 提示]
  3. Click Change what the power button does under Power Options in Windows 11.
  4. 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 更改 Windows 11 上的电源按钮操作 [5 提示]
  5. 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

更改 Windows 11 上的电源按钮操作 [5 提示]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.

  1. Press to open the Settings app and click Power & Battery to the right of the System tab. WindowsI更改 Windows 11 上的电源按钮操作 [5 提示]
  2. Expand the "Power Button Control" entry.
  3. 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

  1. , type PowerShell, and then press . Windows#RCtrlShiftEnter更改 Windows 11 上的电源按钮操作 [5 提示]
  2. Place an order at the UAC prompt Click "is".
  3. 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. 更改 Windows 11 上的电源按钮操作 [5 提示]

    • 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
  1. <strong></strong>Expand "Administrative Templates" under "Computer Configuration" and select "System".
  2. 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 更改 Windows 11 上的电源按钮操作 [5 提示].
  3. Select Enabled in the upper left corner, select the desired configuration from the Power Button Action drop-down menu, and click Apply更改 Windows 11 上的电源按钮操作 [5 提示] and OK to save changes .
  4. <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

    1. Press to open "Run", type regedit in the text field, and then click "OK". WindowsR更改 Windows 11 上的电源按钮操作 [5 提示]
    2. Click "is" at the UAC prompt.
    3. 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>更改 Windows 11 上的电源按钮操作 [5 提示]
    4. #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.
    5. To change the power button function in Windows 11, right-click the DCSettingIndex DWORD and select Modify.
    6. Replace Value Data with the value provided below for the desired setting:
      • Sleep: 1
      • Hibernate :2
      • Shut down:3
      • Do nothing:0
    7. To change Power button behavior for powering on in Windows 11, right-click the ACSettingIndex DWORD and select Modify.
    8. 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
    9. ## When finished, click OK to save the changes and then restart your computer to apply the new power button action.
    10. 更改 Windows 11 上的电源按钮操作 [5 提示]
    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!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template