[Nut-upsuser] [UPS on Serial vs. USB] USB slow to update, serial instant.

Justin Piszcz jpiszcz at lucidpixels.com
Sat Jan 27 12:20:56 CET 2007


When I disconnect my UPS from the wall, I have to wait 15-30 seconds 
before the USB drier 'polls' this information and tells me that the UPS is 
on battery power (via knutclient or syslog via nut):

ups at p34 POWER ALERT on Fri Jan 26 12:49:29 EST 2007

With a serial connection, I would get the alerts IMMEDIATELY (0.5-1 
seconds) after disconnecting the UPS.  My new machine does not have a 
serial port built-in, only a serial header, and of course does not come 
with an included cable, so I chose to use USB.

My question is, how do I change the polling time that nut uses to poll the 
device to match that of the serial port?

The reason I'd like to is I am not going to see any power alerts for 
unless there is a power outage for longer than 15-30 seconds.

I've checked the FAQ on this, do I have to change the 'MAXAGE' parameter 
to force more frequent updates?

Justin.



More information about the Nut-upsuser mailing list