<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 4/24/24 18:06, Charles Lepple wrote:<br>
</div>
<blockquote type="cite" cite="mid:219CB949-7A3E-44C7-BE5D-0235F1987C53@gmail.com">
<pre>My guess is that if you sent 520, upsc would return 8 (for a revised
maximum of 511 seconds). If not, the UPS is even weirder than most 🙂
As you found, the ignorelb option is available to work around
limitations in the UPS shutdown logic.</pre>
</blockquote>
<p>I can confirm</p>
<p>upsrw -s battery.runtime.low=520 -w CST150UC@localhost<br>
battery.runtime.low: 8</p>
<p>I also tried</p>
<p>upsrw -s battery.runtime.low=480 -w CST150UC@localhost<br>
battery.runtime.low: 480<br>
<br>
upsrw -s battery.runtime.low=540 -w CST150UC@localhost<br>
battery.runtime.low: 28</p>
<p>I guess none of this makes any sense to me so maybe the ignorelb
option is the way to go unless you have a suggestion as to what
value to use with upsrw -s battery.runtime.low, lol.</p>
<p>This seems to work though</p>
<p>mcedit /etc/nut/nut.conf<br>
[CST150UC]<br>
driver = usbhid-ups<br>
port = auto<br>
ignorelb<br>
ondelay = -1<br>
override.battery.runtime.low = 3600<br>
<br>
upsc CST150UC@localhost<br>
battery.runtime.low: 3600 (system will shutdown when 60 minutes of
runtime is left)<br>
ups.delay.start: -1 (never powers on the load, even when main
power returns)</p>
<p>Thank you<br>
</p>
</body>
</html>