[Nut-upsuser] Can't get 'load.off' to turn off power to the PC: CyberPower 1200AVR
Arjen de Korte
nut+users at de-korte.org
Tue Sep 18 13:48:09 UTC 2007
>>> Alternatively, you might use upsrw and experiment with the value of
>>> 'ups.delay.shutdown', which changes the same value in the UPS as the
>>> 'load.off' command will. Unfortunately, it doesn't have a
>>> 'ups.delay.restart', so you will need to press the power button to
>>> switch the output back on again.
>> Well, using upsrw to set ups.delay.shutdown to various values appears to
>> accept the value, but no change is made to the actual value.
> See above.
Never mind that remark. Changing variables in nut-2.2.0 is broken for
subdrivers that define multiple HID paths for the same NUT variable. It
will only use the first HID path it finds, whether or not it is supported
on the connected UPS. Since the apc-hid.c subdriver only has one mapping
for 'battery.charge.low' this is OK, but it has no less than three for
'ups.delay.restart' and the one you need is the third.
So forget about changing 'ups.delay.start', it won't work with nut-2.2.0
(the development version should work however).
Best regards, Arjen
More information about the Nut-upsuser
mailing list