Skip to the content.

Run CMD Run as Administrator, then execute these 2 commands

powercfg /hibernate on
powercfg /h /type full

Then from control panel C:\Windows\System32\control.exe

choose power options -> Choose what power buttons –> Change settings that are currently unavailable

source: