<div dir="auto">Adding to Greg's good questions, is the UPS (battery) new or old? Perhaps the PbAc worked over ~3 years and indeed the UPS became a glorified power strip? I had some BackUPSes do that every couple of years a decade to two ago...<div dir="auto"><br></div><div dir="auto">Hope this helps, </div><div dir="auto">Jim Klimov</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 19, 2022, 14:18 Greg Troxel <<a href="mailto:gdt@lexort.com">gdt@lexort.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
>> 0.430484 ups_status_set: seems that UPS [GamingUPS] is in OL+DISCHRG<br>
>> state now. Is it calibrating or do you perhaps want to set<br>
>> 'onlinedischarge' option? Some UPS models (e.g. CyberPower UT<br>
>> series) emit OL+DISCHRG when offline.<br>
<br>
I think the first questions are:<br>
<br>
  what is the UPS actually doing?<br>
<br>
  what do other programs, especially from the manufacturer, say?<br>
<br>
and then perhaps there is need to  have a quirk table in the code to be<br>
able to express things like<br>
<br>
  For APC BGM1500, if it says OL+DISCHRG, rewrite that to OL, because<br>
  it's confused.<br>
<br>
so that then the later logic will be ok with it.<br>
<br>
Presumably you are watching battery voltage and it's 26ish, assuming 2<br>
12V in series, or similar, so not actually discharging.  True?<br>
<br>
What is the status when the power fails?  You said it included DISCHRG,<br>
but anything else?<br>
<br>
Did you trace/debug-log the code that led to OL+DISCHRG?   What bits is<br>
the UPS really sending?  Is this is a UPS bug or a nut bug, or the UPS<br>
has an odd spec or ?<br>
<br>
More questions than answers, but hope it helps<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>