-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
battery.charge.low is set to 100 for some reason. APC Back-UPS BGM1500B (Back-UPS Pro Gaming) #2652
Comments
Not sure why You probably can set it as I suppose, if the reading of actual Not sure further why the WinNUT client does not request a shutdown of the PC, it is a third-party project (actually several went by that name). In NUT Likewise, I'd expect the NUT server integration on Unraid to tell the UPS to shut down and/or power-cycle after a timeout, in case the wall power is back. This would disrupt the gaming PC in case of your problem (so it's good it does not happen), but generally this is how the NUT primary shutdowns should happen to maximize uptime in a hands-off manner (so the server is not indefinitely "off") - so it's not right that this acts as it does now. Either the Unraid integration fails to call the NUT driver and cause the UPS shutdown (or reboot after a long timeout), or the call happens but the NUT driver and the device do not agree on the needed command(s). During the recent NUT releases there were also several tweak settings to deal with "OL+DISCHRG" state combo reported by some UPSes, notably modern APCs. Effectively it may mean (vendor/model dependent) that the wall power is supplied, but the load is fed from battery - whether due to dual power conversion or undergoing calibration, for example. CCing @desertwitch for the Unraid part :) |
I've seen this problem before, essentially This can be fixed e.g. by putting
If this telling the UPS to use another value does not work, another possibility is ignoring the low battery flag set by the UPS and overriding the value reported by the UPS with a custom value that is then evaluated by NUT for low battery conditions instead. This can be done by putting into
The gaming PC not shutting off I also suspect that it may not be registered as secondary/slave/client.
This should list, apart from 127.0.0.1, the IP of your gaming PC - if not, WinNUT is not properly configured. The UPS itself not killing the outlet power/shutting down/power cycling is because it's disabled in the settings. In the current situation I'd keep this setting off as not to disrupt power while you're still having weird shutdowns. |
P.S. Don't forget to set the "UPS Driver Debug Level" back to "Default" if it's not needed anymore. |
Thank you both for the great replies. I have since fixed the battery level low issue and so far nothing has happened. Also I did check and it seems NUT does see my gaming PC. I had WinNUT set to shut of my gaming PC if the battery level falls below 20% and whenever I checked WinNUT after my unraid server shut down I would always see the battery level said it was at 20%. So I think maybe it wasn't shutting down because it was at 20% and not below it. I have since set it to shut down at 30%. Not sure if that is going to change anything or not. Also one other weird thing to note: when my unraid server "shuts down" it doesn't actually turn off the computer itself because I can still see the LED on the front of the case lit up and I have to manually shut it down myself in order to reboot it. All dockers and the main dashboard are unreachable and I can see in the logs that NUT is initiating the shut down so not sure what that is all about. |
So I decided to do a little test. I unplugged my UPS from the wall and my gaming PC shut down immediately and my unraid server went offline as well, while the actual pc stayed on like i mentioned in the previous comment. Not sure what's going on. The display on the UPS said the battery was full as well. Very confusing. @desertwitch Also now this is what NUT is reporting once back online. Says low battery at 92%. |
Please post the "NUT Debug Package" that can be found in the "NUT Settings" GUI page. It seems the UPS still forces a low battery condition despite the charge being well above critical limits... |
Well sometimes unraid shuts down while I am at work so it could be sitting for hours and it still doesn't shut down fully, but here is the requested file. |
How old is your UPS battery (guess a bit newer than the reported battery.mfr.date: 1980/01/01)? Is it possible it's not capable of sustaining the load (anymore) and drains fast enough to hit even a configured 30% threshold too fast? You can try doing a test with another non-critical electronic device of similar wattage, to see how fast the UPS loses its power without NUT involved at all. Otherwise you can try going the suggested second route with |
Well I ordered my UPS on June 27th 2024. Not sure what the actual manufacture date of the battery is though. But when I unplugged the UPS from the wall to test before and then both of my PC's shut down. I plugged it back in a few minutes later and it was at 92% and then slowly charged back up to 100. I'm going to try the ignorelb method and see what happens. Also I did have a syslog server running and had an app on my computer to view it but it had a trial period and it ran out. Do you have any recommendations on a free program to use for the syslog server? (windows) |
You don't really need an external server, you can just activate "Local syslog server" in Settings => Syslog Server. |
Hello I am currently using NUT on Unraid and I have this problem where my server just shuts off randomly all the time and I think it has to do with this: the status is always at "On Line - Discharging Battery" and the battery.charge.low is always at 100%. Am I doing something wrong? I also have WinNUT installed on my gaming PC and that PC never shuts off when the Unraid PC shuts off. Not sure what's going on. Also here are my settings:
Output from upsc:
battery.charge: 100
battery.charge.low: 100
battery.mfr.date: 1980/01/01
battery.runtime: 839
battery.runtime.low: 120
battery.type: PbAc
battery.voltage: 27.5
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Back-UPS BGM1500B
device.serial: 0B2118P00686
device.type: ups
driver.debug: 6
driver.flag.allow_killpower: 0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: auto
driver.state: quiet
driver.version: 2.8.2.1
driver.version.data: APC HID 0.100
driver.version.internal: 0.57
driver.version.usb: libusb-1.0.26 (API: 0x1000108)
input.sensitivity: medium
input.transfer.high: 147
input.transfer.low: 88
input.transfer.reason: input voltage out of range
input.voltage: 122.0
input.voltage.nominal: 120
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: 31316S12-31320S10
ups.load: 39
ups.mfr: American Power Conversion
ups.mfr.date: 2021/04/22
ups.model: Back-UPS BGM1500B
ups.productid: 0002
ups.realpower.nominal: 900
ups.serial: 0B2118P00686
ups.status: OL DISCHRG
ups.test.result: Done and passed
ups.timer.reboot: 0
ups.timer.shutdown: -1
ups.vendorid: 051d
The text was updated successfully, but these errors were encountered: