-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hibernate Type Of Stop doesn't hibernate computer #89
Comments
I took a second look at this and the problem was my computer does not have the Hibernate option enabled. Not sure if the a try catch around the Hibernate command would be helpful or if an update to the documentation/UI would be better. |
Same. Shutdown works and hibernation and sleep doesn't. Windows 10, WinNUT 2.0.7722.30975 |
I can confirm this. I was trying to use the "shutdown on FSD" setting with a Synology NAS. It only works for "Shutdown" and NOT for "hibernate" or "sleep". If you have a delay set for hibernate or sleep, the program will crash after the delay. |
I have come all the way to the same final hurdle: Shutdown works great, Hibernate/Sleep just don't trigger an action, whether at the end of the timer, clicking the immediate shutdown button on the timer, or without timer. I have hibernate switched and working otherwise. Have tried this on a PC and laptop, for both v2.0.7722.30975 (stable) and v2.1.7740.35837 (pre-release). Windows 10 21H2 / 21H1, built-in Synology UPS server. If power is restored, timer window disappears and it carries on as normal. I don't know if it has any bearing at all, but on my current windows machines, the command: Whereas: |
I think a possible answer to this may have been suggested in a new post. |
This worked for me as hoped, once SetSystemPowerState was swapped for SetSuspendState, on Windows 10. Not sure quality of my coding, but this worked for me:
Changed to:
|
Hi g-cranson, Is there a fork or installable download that contains this fix? |
https://github.com/g-cranston/WinNUT-Client Have made the changes in a fork in case it is of use (plus another fix for a different issue that works for me). Apologies if I haven't done this in the appropriate manner (first time doing this on github). |
Hey everyone, again apologies for letting these bugs sit for so long without an update. I've been working for a very long time on a big change, but I'm realizing how important it is that we get these high profile bugs fixed. I think @gawindx gave me write access to this repo. @g-cranston do you want to make a pull request here with your changes, then I'll pull it in along with a few other waiting PRs and push out an update? |
I'm glad I could be a part of this, and thank you for the PRs. I'm away from the dev computer right now but I'll make it a priority to get your work by next week, hopefully before. |
Excellent work by the way, thank you! I just found out that I made a mistake sleeping on @gawindx 's invitation. Apparently they expire in 7 days, and that was a long time ago when they sent it. I'll see if I can contact him (maybe you can too if you want to do more?) |
For everyone following this: Thanks to the work of @g-cranston , we have a debug build available. Please download it from here and report back results. |
I have tried to been using 2.0.7722.30975 and I also can only get it shutdown and not sleep I can only assume i am to stupid to get this working. I am running NUT Server on a raspberry Pi, and Win Client on windows 10, fully up to date. It took me the best part of 2 weeks to try and get NUT to run on a pi, so i am not good with code, and I am sure there are other out there like me that need our hands held. Please can someone help. Thanks |
Hi, Development of WinNUT has moved to the repository at nutdotnet/WinNUT-Client. This issue can be found duplicated here. Please try the latest pre-release and see if that works. I'd prefer if all future issues and discussion happen over in the new repository. Thank you for taking the time to provide your feedback, I hope you'll submit some more! |
This really should be indicated in the README. |
I created a PR to do so, but I think it would be a good idea to also forbid new issues and PRs if possible. |
I wish I had the power to do so! @gawindx granted me access years ago but I didn't accept the invite in time. I've lost all contact with them since and GitHub support hasn't been able to help, so this has sort of become a zombie repository. I might try working on some SEO to boost the new repository up in search rankings though. |
Ok, that's too bad. Hopefully the PR will catch the eye of anyone in the same situation and they'll find the new repo more easily. |
When I configure WinNUT to Hibernate my computer the Shutdown GUI will display when the NUT Server sends the FSD signal. The Shutdown GUI will perform the countdown and then hang. When configured to Shutdown instead of hibernate, the shutdown process executes properly.
Steps to reproduce:
I suspect this has something to do with the calls to SetSystemPowerState in the Select Cast statement at line 979 in WinNUT.vb. It looks a bit odd passing a Boolean value when the function is declared as expecting an integer. https://www.tek-tips.com/viewthread.cfm?qid=1086465 talks about similar code only passing integers 1 and 0 instead of Booleans. It has been years since I messed with VB.Net so passing a Boolean could be valid, it just looks off.
My computer is running Windows 10 21H1, NUT Server is the built in Synology NUT server, running latest version of WinNUT
The text was updated successfully, but these errors were encountered: