Press the power button to select Pause, Hibernate, View and Off.
In Windows, search for and open the Control Panel.
Find the power supply and click Power Options.
Turn on the power option in Windows
Click to specify what happens when you press the power button from the list on the left side of the window.
Select the function of the power button
Click the menu and press the power button to select the settings when using the battery and the settings when you connect the power, then click Save Changes.
Change power button settings
Previous:Use sleep mode-Windows 10