You can change what pressing the power button does directly in windows. This is not something you can change in the bios actually.
Do note, holding the power button for 5 seconds is called a hardware shutdown. It instantly shuts down the power as if the cable is unplugged. This cannot be overridden and should not be used to end a windows session unless windows is not responsive and its your only option.
Now, in order to change what the powerbutton does, follow these steps:
- Right click on an empty part of your desktop
- Choose
Personalize
- At the bottom riht, click
Screen Saver
- At the bottom, click
Change power settings
- At the left, click
Choose what the power buttons do
- Either change to
sleep
or do nothing
depending on your preferences.
You can always use the start menu to sleep and shutdown. The reason why do nothing might be preferred, is because you seem to accidentally hit it. Sleeping can be as irritating as shutting down when it comes to accidentally hitting it, so a do nothing
might be preferred.
It is even possible to add buttons in the startmenu, taskbar or desktop that you can use to put the computer to sleep or to shutdown windows, by using the shutdown command.