<div dir="ltr">Charles,<div>     We did notice that there were two categories. Is there a way if we could determine if it is colliding?</div><div><br></div><div>We do have a USB analyzer so I'll see if that can be used to determine if the UPS is disconnecting due to inactivity on the bus.</div><div><br></div><div>Thanks!</div><div>Shade</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 18, 2014 at 8:40 PM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Nov 18, 2014, at 6:28 PM, Shade Alabsa <<a href="mailto:shade34321@gmail.com">shade34321@gmail.com</a>> wrote:<br>
<br>
> I then noticed that in ups.conf I did not set the pollinterval, we normally set it to 15, so I set it to test on a RHEL 6.6 machine which caused this issue to happen again. On our own custom system we took the poll interval out and prelim testing doesn't showing the repeated disconnects/reconnects. I started playing more with this pollinterval and noticed that up to 14, exclusive, it seems to be fine.<br>
<br>
</span>pollinterval defaults to 2, so maybe the UPS is disconnecting due to inactivity on the bus? (It shouldn't, but it might be a workaround for other systems.)<br>
<br>
The usbhid-ups driver splits the polling into two categories: "quick updates", to catch OL/OB/LB transitions, and "full updates" to catch everything else. It is possible that the higher pollinterval values are colliding with the pollfreq interval of 30 seconds.<br>
<br>
The UPS is requesting that the OS (or in the case of Linux, a program like NUT which uses libusb) poll the interrupt endpoint at least every 40 ms, which is fairly often, and would cause higher CPU load. The defaults in NUT strike a compromise.<br>
<br>
Note that the man page for the MGE SHUT driver does recommend a higher value of pollinterval, but that is a special case (it is essentially USB over a serial cable, and the baud rate is not high enough for the defaults) and wouldn't apply to your UPS.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Charles Lepple<br>
clepple@gmail<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>