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

Justin Piszcz jpiszcz at lucidpixels.com
Sat Jan 27 18:05:36 CET 2007



On Sat, 27 Jan 2007, Peter Selinger wrote:

> If you are using newhidups/usbhid-ups, the option "-x pollfreq=<value>" 
> can be used to set the polling frequency (or put "pollfreq=<value>" 
> into ups.conf). The default is 30 seconds. 
> 
> -- Peter
> 
> Justin Piszcz wrote:
> > 
> > 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.
> > 
> > _______________________________________________
> > Nut-upsuser mailing list
> > Nut-upsuser at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> > 
> 

Very nice-this fixed the issue, thank you!

Justin.



More information about the Nut-upsuser mailing list