https://answers.microsoft.com/en-us/windows/forum/windows_10-power/windows-10-sleeping-when-set-not-to/60841be4-4463-441b-9106-f4751b64b9a3
进入注册表:Win+r输入regedit
然后找到如下注册表选项,修改attritutes的值为2
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0] "Attributes"=dword:00000002
然后会显示"System unattended sleep timeout"选项,修改默认值为300或者你期望的值,ok,下边是原帖子的内容。
I finally found a solution that worked for me. It required changing a value in the registry so that I could see the "System unattended sleep timeout" option but as soon as I did enable it by changing the registry value, the option was visible in the power options and the default of 2 minutes (which explained the 2 minute sleep). I changed it to 1440 minutes and my problem hasn\'t returned (I made the change over a month ago).
Here are the links that gave me the solution:
http://www.sevenforums.com/tutorials/246364-power-options-add-system-unattended-sleep-timeout.html
http://www.tenforums.com/general-discussion/6847-win-10-unattended-sleep-timeout-same-vista-win-7-8-1-a.html
I was nervous about running the registry script so I manually changed it and didn\'t have any problems. Now I know the script would have been fine.
The question to Microsoft is why this hidden option is controlling behavior and only started for me after upgrading from Win 8 to Win 10?
Here is the DWORD Value that I had to change to make the option visible in the power options. (It is the same registry key mentioned in the sevenforum thread)