<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Nov 5, 2014, at 4:39 PM, jani <<a href="mailto:jani.talikka@gmail.com">jani.talikka@gmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">The output of the ldd command is:<div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="courier new, monospace">root@minime:~# ldd /lib/nut/nutdrv_atcl_usb</font></div><div><font face="courier new, monospace">        linux-gate.so.1 (0xb7722000)</font></div><div><font face="courier new, monospace">        libusb-0.1.so.4 => /lib/i386-linux-gnu/libusb-0.1.so.4 (0xb76fe000)</font></div><div><font face="courier new, monospace">        libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xb76e2000)</font></div><div><font face="courier new, monospace">        libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb7536000)</font></div><div><font face="courier new, monospace">        /lib/ld-linux.so.2 (0xb7725000)</font></div></blockquote>The UPS was connected to device 001/002 again as I ran the strace. The output is attached.</div></div><div class="gmail_extra"></div></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">That's strange. The return codes seem to imply that the requests are timing out, rather than there being a permissions problem:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">open("/dev/bus/usb/001/002", O_RDWR)    = 4</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0xbff9a28c) = 4</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0xbff9a28c) = 26</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0xbff9a28c) = 4</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0xbff9a28c) = 26</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0xbff9a28c) = 4</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, SNDRV_CTL_IOCTL_PVERSION or USBDEVFS_CONTROL, 0xbff9a28c) = 26</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 301661}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.365267\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "- VendorID     : 0001\n", 22) = 22</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 303407}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.367013\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "- ProductID    : 0000\n", 22) = 22</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 304892}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.368498\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "- Manufacturer : ATCL FOR UPS\n", 30) = 30</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 306351}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.369957\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "- Product      : ATCL FOR UPS\n", 30) = 30</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 307797}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.371403\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "- Serial Number: ATCL FOR UPS\n", 30) = 30</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 308963}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.372569\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "- Bus          : 001\n", 21)  = 21</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 310519}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.374125\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "Matched expected vendor='ATCL FO"..., 40) = 40</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, USBDEVFS_SETCONFIGURATION, 0xbff9a424) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, USBDEVFS_CLAIMINTERFACE, 0xbff9a424) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 315012}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "   0.378618\t", 12)           = 12</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">write(2, "USB device [0001:0000] opened\n", 30) = 30</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">gettimeofday({1415223033, 316830}, NULL) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, USBDEVFS_SUBMITURB, 0xbff9a580) = 0</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">ioctl(4, USBDEVFS_REAPURBNDELAY, 0xbff9a564) = -1 EAGAIN (Resource temporarily unavailable)</span></font></div><div class="gmail_extra"><font face="Courier New"><span style="font-size: 12px;">select(5, NULL, [4], NULL, {0, 1000})   = 0 (Timeout)</span></font></div><div><br></div></div><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote">On 6 November 2014 00:22, 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: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: relative; z-index: 0;"><div style="word-wrap:break-word"><span class="">On Nov 5, 2014, at 1:36 AM, jani <<a href="mailto:jani.talikka@gmail.com" target="_blank">jani.talikka@gmail.com</a>> wrote:<br></span><div><span class=""><br><blockquote type="cite"><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Ok, I installed a fresh Debian testing (jessie) onto a laptop to try making sure it wasn't my current Ubuntu server causing the issue.  Kernel is 3.16-3-686-pae #1 SMP Debian 3.16.5-1 (2014-10-10). The only thing installed besides the stock debian desktop is nut.</span></blockquote><blockquote type="cite"></blockquote></span></div></div></blockquote></div></div></blockquote><div><br></div><div>When you say the "stock debian desktop", what is running at that point, something like Gnome, Xfce or LXDE?</div><div><br></div><div>If possible, it would be good to do the test on a text-mode console, with nothing else running.</div><br><div class="gmail_extra"><div class="gmail_quote"></div></div><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">The UPS still refuses to talk to the driver, the error messages appear to be identical, but I attached them just in case I'm missing something important. I tried changing the permissions and running as root just in case, and they made no difference.</div></blockquote><div><br></div></span><div>Hmm, maybe those aren't the /dev node names that it is using. Can please you send the output of:</div><div><br></div><div>strace -o nutdrv_atcl_usb.strace /lib/nut/nutdrv_atcl_usb -a name -DD</div></div><div><br></div><div>Also, if you run 'ldd /lib/nut/nutdrv_atcl_usb', is it linking against 'libusb-0.1.so.4' or libusb-compat?</div><span class="HOEnZb"><font color="#888888"><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br>

</div>
<br></font></span></div></blockquote></div><br></div>
<span><nutdrv_atcl_usb.strace.gz></span>_______________________________________________<br>Nut-upsuser mailing list<br><a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a><br>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br></body></html>