Skip to content
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

WinNUT incorrectly displays a "Not Connected" notification on Resume #145

Open
4 tasks done
yoyoma2 opened this issue Mar 31, 2024 · 8 comments
Open
4 tasks done
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@yoyoma2
Copy link

yoyoma2 commented Mar 31, 2024

  • Searched to see if this issue exists
  • Completed below form
  • Attached debug log file
  • Copy output in File -> UPS Variable

**WinNUT Version: ** v2.2.8719.24624
**Windows OS Version: ** Windows 10 Pro 22H2

Describe the bug
When Windows 10 resumes from hibernation, WinNUT notifications falsely show that it connected then disconnected. It appears that this is a false alarm as WinNUT seems to be connected. The logs below show that the disconnection happens first and the connection happens later albeit the timestamp is identical which may explain the misordered notifications.

To Reproduce
Steps to reproduce the behavior:

  1. Configure Win10 to hibernate and wait for it to happen
  2. Come back hours later and wake up Windows
  3. Look at Windows notifications in the image (most recent notification is at the top):

Expected behavior
The "Connected" notification should appear last since it happened last. Ideally the "Not Connected" notification should appear much earlier when the sleep state is initiated. If I manually shutdown Windows, the "Not Connected" notification is tagged with the time the shutdown was initiated.

Screenshots
WinNUTbug

Additional context
I tried to hibernate manually and immediately resume and that didn't reproduce the problem. I guess the long hibernating time leaves the sockets in a different state than the manual immediate hibernate/resume.

WinNUT-Client-2024-03-28.log
upsvars.txt

@yoyoma2 yoyoma2 added the bug Something isn't working label Mar 31, 2024
@gbakeman
Copy link
Contributor

I definitely noticed some spammy notifications too, usually when resuming a session. I'll look into this.

@gbakeman
Copy link
Contributor

@yoyoma2 I'm about to put up another pre-release with some connection and operational fixes included. I'd like to hear from you if you think I've improved this problem or not. Thanks!

@gbakeman gbakeman added the question Further information is requested label Jul 18, 2024
@yoyoma2
Copy link
Author

yoyoma2 commented Jul 19, 2024

@yoyoma2 I'm about to put up another pre-release with some connection and operational fixes included. I'd like to hear from you if you think I've improved this problem or not. Thanks!

Sure I'll try a July Pre-Release when I see it posted.

@gbakeman
Copy link
Contributor

The new pre-release is up - please let me know what you think!

@yoyoma2
Copy link
Author

yoyoma2 commented Jul 24, 2024

Installed pre-release v2.3.8970 (when running v2.3.8971 appears in the about box however).

The old settings were imported (nice!) but I had to change one calibration setting by 1V then change it back or some of the dials were showing default ranges instead of my custom settings.

As for better suspend/resume support I'll need to test that a little later when the system isn't in use.

@gbakeman
Copy link
Contributor

gbakeman commented Jul 24, 2024

Good catch on the gauge calibrations, I noticed that too at some point or another but forgot to open an issue about it. Feel free to subscribe to #170 if that's something you're interested in seeing fixed.

Thanks for checking in and in advance for testing this further!

@yoyoma2
Copy link
Author

yoyoma2 commented Jul 26, 2024

After coming out of hibernation there were no notifications and the icon in the taskbar had some red on it. Going to Connection->Reconnect fixed everything.
I'll try to reproduce with some logs next time.

@gbakeman
Copy link
Contributor

I'm actually curious if you can test with the build here (once you get the chance) since I've addressed more notification and connection issues since the pre-release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants