[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 07:13:30 UTC 2007


[...]

>> You can probably change that through upsrw (see 'man 8 upsrw'). You'll
>> want to change the value for 'battery.charge.low', which is currently
>> set at 10%, which is indeed a bit low. Running
>>
>> 	upsrw myupsname
>>
>> should list all the variables that you can modify.
>
> I did this, and it shows (among others):
>
> [battery.charge.low]
> Remaining battery level when UPS switches to LB (percent)
> Type: STRING
> Value: 10
>
> So I tried to change it, using:
>
>   upsrw -s battery.charge.low=20 -u myadminuser -p mypass myupsname
>
> The command completes successfully, and I see a /var/log/messages log
> to that effect, but the value doesn't change.

Note that it may take a while for the value to show up in the list of
variables and sometimes you need to set it twice to take effect. This is
due to a bug in the usbhid-ups driver, which has been fixed in the
development version.

Note that the driver has no means to determine whether the value you set
is valid for the UPS. So it could be that your UPS only supports a couple
of values (say 10%, 25% and 50%) and that all values in between will be
rounded or truncated to the nearest value it supports. So it is worthwhile
to check other values as well.

Last, the UPS may not support changing this value at all.

>> 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.

Best regards, Arjen




More information about the Nut-upsuser mailing list