Hi,
I have two questions:
first:
What's wrong with this:
dstate_setinfo("battery.runtime.low","%d",3500);
it doesnt work.
second:
If I figure out how can I shutdown PC and UPS that ups shutdown too and if I
plug back the power PC start automatic.
I put this command in upsdrv_shutdown, is it right?
Or I need put it in other function?
Thanks your advice.
2010/7/15 Arjen de Korte <[email protected] <nut%[email protected]>>
> Citeren Robert Jobbagy <[email protected]>:
>
> I know it,but I tried my ups On Battery with Liebert java app and when
>> java
>> app shutdown PC and after shutdown UPS.
>> Later I plugin back the power and UPS started and after PC started
>> automatic
>> too.
>> And I think NUT know it just I need configure NUT.
>>
>> I read this instcmd :
>>
>> shutdown.return | Turn off the load possibly after a delay |
>> | | and return when power is back
>>
>> but I didn't can use it.
>>
>> And if I can send other shutdown command to UPS from this NUT function :
>>
>> void upsdrv_shutdown(void)
>> {
>> /* replace with a proper shutdown function */
>> fatalx(EXIT_FAILURE, "shutdown not supported");
>> }
>>
>> ???
>> Is it help for me ?
>>
>
> When people write to the development mailing list, we expect them to read
> the full thread:
>
>
> http://lists.alioth.debian.org/pipermail/nut-upsdev/2010-July/004875.html
>
>
> Best regards, Arjen
> --
> Please keep list traffic on the list
>
>
> _______________________________________________
> Nut-upsdev mailing list
> [email protected]
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
>
--
Best Regards,
Robert
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev