[Nut-upsuser] Eaton 5PX broken interrupt on usbhid-ups, also pollfreq vs pollinterval?
Kris Jordan
nut01.kj at sagebrushnetworks.com
Fri Jan 10 00:37:10 UTC 2014
Linux NUT 2.7.1
Eaton 5PX usbhid-ups
It would appear that interrupts are not actually working on my 5PX using
the usbhid-ups driver. I will be trying the serial mge-shut driver next.
It just seemed like it was working before because of the default
pollinterval of 2 seconds. The status update comes in during the
pollinterval no matter what I have pollfreq set to. And I can set
pollonly and get the same behavior.
With the driver usbhid-ups, what is the relationship between pollfreq
and pollinterval? It looks like pollinterval overrides pollfreq.
usbhid-ups -a ups -DDDDD -x pollfreq=30 -i 30 2>&1 | egrep
'(update|ups.status)'
8.580411 upsdrv_updateinfo...
8.831572 Quick update...
8.832351 send_to_all: SETINFO ups.status "OL CHRG"
8.832807 upsdrv_updateinfo...
9.084535 Quick update...
38.833152 upsdrv_updateinfo...
39.085481 Quick update...
(AC removed at this point)
68.833928 upsdrv_updateinfo...
68.844373 Full update...
69.511072 send_to_all: SETINFO ups.status "OB DISCHRG"
(AC restored)
98.833548 upsdrv_updateinfo...
98.839093 Quick update...
98.955823 send_to_all: SETINFO ups.status "OL CHRG"
Regards.
More information about the Nut-upsuser
mailing list