WinNUT-Client icon indicating copy to clipboard operation
WinNUT-Client copied to clipboard

Hibernate and Standby do not work in Windows 10/11

Open cinergi2 opened this issue 3 years ago • 1 comments

In WinNut.vb, the Windows SetSystemPowerState function is used to initiate Hibernation or Standby if one of these is the selected method in WinNut. This function seems to be deprecated and doesn't work in Windows 10/11. Microsoft recommends using SetSuspendState instead.

Reference: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setsystempowerstate

Workaround: Only select Shutdown as the shutdown method in WinNUT. This calls shutdown.exe, which works.

cinergi2 avatar Dec 19 '21 23:12 cinergi2

I think this post could be the answer to a previously mentioned one?

#89

g-cranston avatar Jan 25 '22 14:01 g-cranston