How to customize the power button in Windows 10

How to customize the power button in Windows 10

When shutting down a Windows 10 computer, some users prefer to use the physical power button instead of right clicking the Start button. So how to customize the power button on your computer hardware? In this article, make tech easier than ever to set up the power button to Shutdown, Sleep, Hibernate or turn off the display every time you press it using Control Panel, Command Prompt, Power Options and Advanced Power Options.

  • Is it possible to install Windows 10 from an Android phone, have you tried it?
  • Summary of some ways to open virtual keyboard on Windows XP / 7/8 / 8.1 / 10

Change the function of the power button in Windows 10 using Control Panel

Step 1: Open Control Panel.

Step 2: Find and click System and Security.

Find System and Security in Control Panel

Step 3: Go to Power Options and click on Change what the power buttons do link.

Click on Change what the power buttons do under Power Options

Step 4: Using the When I press the power button drop-down menu, select the action you want the power button to perform when pressed.

Options for physical power button
  • Do nothing: Does nothing
  • Sleep : sleep mode
  • Hibernate: computer hibernation
  • Shut down: turn off the computer completely
  • Turn off the display: turn off the screen

Step 5: Click the Save changes button at the bottom of the window.

After completing the steps above, you should now be able to use the power button with the action just changed.

Note that different system types have different options. For example, a laptop or Surface Pro will have additional options for the device when it is plugged in or running on battery power. Also, not every system supports Windows 10 Hibernation, so if you don’t see this option it means the system doesn’t.

Customize the power button in Windows 10 using Command Prompt

Step 1: Open Command Prompt, run as admin with Run as administrator.

If you use Windows 10 with the latest versions, the Run as administrator button will appear as soon as you search the Command Prompt.

Open Command Prompt in Windows 10 new version

Step 2: To change the task you want the power button to perform when pressed, enter the commands below and press Enter.

1. For computers using power source:

powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0

2. With the computer using the battery:

powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0

You will notice in the examples that both commands have the last value “0”, which is the index value that defines the power button action to perform when pressed, change as desired by me. The specific values are as follows:

  • 0 – Do nothing: Do nothing
  • 1 – Sleep: sleep mode
  • 2 – Hibernate: hibernation mode
  • 3 – Shut down: turn off the computer completely
  • 4 – Turn off the display: turn off the screen

If your computer doesn’t support hibernation, remember not to use a value of 2.

Step 3: Type the following command to apply the changes and press Enter:

powercfg -SetActive SCHEME_CURRENT
Customize the power button in Windows 10 using Command Prompt

After completing the steps above, you should now be able to immediately use the power button with the new action changed.

Change the function of the default power button in Power Options

Step 1 : Open Power Options.

Open Power Options

Step 2 : Click on the link Choose what the power buttons do or Choose what the power button does on the left side.

Click the Choose what the power buttons do link on the left side

Step 3 : In the Power and sleep buttons settings section , choose the desired action for your power button. In the When I press the power button drop-down menu, select the action you want and click Save changes to save the changes.

Select the action you want in the When I press the power button drop-down menu

When I press the power button allows you to change the function of the physical button on the computer. By default, it is set to Shut down – so if you press the button, it’s the same as telling the Shut down command through the Start menu . You can change this option to Sleep, Hibernate, Turn off the display or Do nothing here.

Note that no matter what you choose here, pressing and holding the power button for a few seconds will still cause a forced shutdown, like whirring a plug.

Step 4 : Restart the computer to apply the change.

Change the function of the default power button in Advanced Power Options

Step 1 : Open Advanced Power Options.

Step 2 : Expand the Power buttons and lid and Power button action .

Step 3 : Select the action you want and click OK.

Step 4 : Restart the computer to apply the change.

Change the function of the default power button in Advanced Power Options

Specifies the default source node action in Local Group Policy Editor

Note:

  • You must be logged in as an admin to perform this option.
  • Local Group Policy Editor is only available in Windows 10 Pro, Enterprise, and Education editions.

1. Open Local Group Policy Editor.

2. On the left side of Local Group Policy Editor , click to expand Computer Configuration, Administrative Templates, System, Power Management and Button Settings .

Expand Computer Configuration, Administrative Templates, System, Power Management and Button Settings

3. To the right of Button Settings , double-click the Select the Power button action (plugged in) policy and / or Select the Power button action (on battery) that you want to edit.

4. Do step 5 (default), step 6 (hibernate), step 7 (turn off), step 8 (sleep), or step 9 (No Action) below for the default action you want to specify. .

5. User default selection for power button action: Select Not Configured , click OK and go to step 10 below.

6. To specify the “Hibernate” function as the power button action, select Enabled , click Hibernate in the Power Button Action drop-down menu under Options , click OK, and go to step 10 below.

7. To specify the “Shut down” function as the power button action, select Enabled , click Shut down in the Power Button Action drop-down menu under Options , click OK, and go to step 10 below. .

Specify the “Shut down” function as the power button action

8. To specify the “Sleep” function as the power button action, select Enabled , click Sleep in the Power Button Action drop-down menu under Options , click OK, and go to step 10 below.

9. To specify “Take no action” as the power button action, select Enabled , click Take no action in the Power Button Action drop-down menu under Options , click OK, and go to the step. 10 below.

10. When done, you can close the Local Group Policy Editor if you want.

One of the biggest mistakes Microsoft made when it released Windows 8 was removing the Start button . This makes it difficult for users to turn off their PC. Fortunately, however, the company brought the Start button back to Windows 10 and offers a variety of simple ways to shut down the computer from within the operating system or use the power button on the device.

2