I had this same problem when using Win7 and recently had it again using win10. I think that when windows does and update it sometimes must change certain registry entries that cause this problem to reoccur. Here is the solution that worked out for me:
1. Bringup the Run option using the Windows key or icon.
NOTE: If usingWin10, hold down the Windows key and press “r” to bring up the Run option.
2. Typeregedit
3.Right-click on regedit icon, click Run as administrator if needed
4. Whenthe Registry file comes up, Go to:
HKEY_LOCAL_MACHINE\
SYSTEM\
CurrentControlSet\
Control\
Power\
PowerSettings\
238C9FA8-0AAD41ED-83F4-97BE242C8F20\
7bc4a2f9-d8fc-4469-b07b-33eb785aaca0
5.Double click on Attributes
6.Enter number 2 and close the Registry editor. This makes visible a hiddensetting in the Advanced power options Sleep settings
7. Goto Advanced power settings (click on Windows button, write power options, clickon Power Options, in the selected plan click on the Change plan settings, clickon the Change advanced power settings.
NOTE: If using Win10, right click on the Windows Icon and selectPower Options – select Change Power Options for the power plan you are using –click on Change Advanced Power Settings and go to # 9.
8.Click on the Change settings that are currently unavailable
9.Click Sleep, then System unattended sleep timeout, then change these settingsfrom 2 Minutes to 20 for example.
10. Youare done. Close any open menus. This should fix the problem.