How to customize the physical power button of our Windows 10 computer

Although Microsoft has long insisted on making the button on our computer only serve to turn on the computer, it is true that we can use it for any other function related to the energy management of the computer. So we can make this physical button serve to turn off the computer, to turn off the screen, to put the computer to sleep, or to put the computer into hibernation.

We can make these changes easily thanks to Windows 10 and the command prompt. Some easy changes to make that in return will make us stop turning on the equipment after having given the order to turn off.

The quick and easy option to make these changes is to go to Control Panel and in Power Options we go to Settings where we will find an option that will be to modify the action of the power button. This action can be modified using a drop-down. The default option will be "Do nothing", that is, when the physical button is pressed nothing is done. But we can change it to "Shutdown" going back to the old computers.

For those who handle or like to use the command prompt, we have another option. First we have to run command prompt as administrator. Once we have the window active, we have to write the following if we apply it to a computer that is connected to a power outlet:

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

If, on the contrary, we do it to a computer that is using a battery at that moment, we will use the following:

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

In both codes at the end you will see that the number 0 appears, this is a Windows code. 0 means do nothing; 1 means sleep the team; 2 means hibernate; the 3 means Turn off; and, the 4 means turn off the screen. Thus, with change the 0 to any other number from the above We will make the physical button function change.

After the change, we apply the changes with the following code followed by pressing enter:

powercfg -SetActive SCHEME_CURRENT

After this, the physical power button will work as we have indicated, although the most logical thing is to make the button turn off the system after pressing it a second time Do not you think?


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.