<div dir="ltr"><div>The "unknown" fields mean the driver did not get that piece of information from libusb. In case of Manufacturer/Product which are unknown in the later post, but known in the first, I suppose you had another driver running, or the kernel still owned it (udev misbehavior, not handing it off after reconnections, etc.) and so exclusive access was not given to the new (currently reporting) process.</div><div><br></div><div>The "Device" matching specifically had a problem fixed in the master branch a few months ago. You can try to comment it away from your ups.conf for a quick workaround, and match by remaining fields (assuming their values are correct).</div><div><br></div><div>Hope this helps,<br></div><div>Jim Klimov<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 9, 2023 at 7:51 PM Laurent Taieb via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg3543419294502224196"><div style="overflow-wrap: break-word;" lang="FR"><div class="m_3543419294502224196WordSection1"><p class="MsoNormal"><span>Thanks Larry,<u></u><u></u></span></p><p class="MsoNormal"><span>I tried.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Got the following traces and the driver doesn’t start.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036797</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - VendorID: 0463<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036812</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - ProductID: ffff<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036826</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - Manufacturer: unknown<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036840</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - Product: unknown<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036872</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - Serial Number: unknown<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036912</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - Bus: 002<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036942</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - Device: unknown<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036965</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] - Device release number: 0001<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.036980</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] Trying to match device<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.037008</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] match_function_subdriver (non-SHUT mode): matching a device...<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.037044</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D3] match_function_regex: matching a device...<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.037102</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] Device matches<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.037131</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] Reading first configuration descriptor<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.037187</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D3] libusb_kernel_driver_active() returned 1 (driver active)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.037220</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] successfully set kernel driver auto-detach flag<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.040994</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] Claimed interface 0 successfully<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.041063</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.041438</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] Unable to get HID descriptor (Pipe error)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.041480</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D3] HID descriptor length (method 1) -1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.041530</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D3] HID descriptor, method 2: (9 bytes) => 09 21 10 01 21 01 22 e1 01<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.041566</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D3] HID descriptor length (method 2) 481<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.041605</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] HID descriptor length 481<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US"> 1.041926</span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(253,133,26)" lang="EN-US"> </span><span style="font-size:8.5pt;font-family:Menlo;color:black" lang="EN-US">[D2] Unable to get Report descriptor: Resource temporarily unavailable<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Any idea ?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thanks<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Laurent<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><div style="border-color:rgb(181,196,223) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:12pt;color:black">De : </span></b><span style="font-size:12pt;color:black">Nut-upsuser <nut-upsuser-bounces+laurenttaieb=<a href="mailto:free.fr@alioth-lists.debian.net" target="_blank">free.fr@alioth-lists.debian.net</a>> au nom de Larry Fahnoe via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a>><br><b>Répondre à : </b>Larry Fahnoe <<a href="mailto:fahnoe@fahnoetech.com" target="_blank">fahnoe@fahnoetech.com</a>><br><b>Date : </b>jeudi 9 mars 2023 à 18:59<br><b>À : </b>nut-upsuser Mailing List <<a href="mailto:nut-upsuser@lists.alioth.debian.org" target="_blank">nut-upsuser@lists.alioth.debian.org</a>><br><b>Objet : </b>Re: [Nut-upsuser] Question on EATON UPS<u></u><u></u></span></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">On Thursday, March 9th, 2023 at 8:34 AM, Dan Langille via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a>> wrote:<u></u><u></u></span></p></div><div><p class="MsoNormal"><br><br><u></u><u></u></p><blockquote style="margin-top:5pt;margin-bottom:5pt"><blockquote style="margin-top:5pt;margin-bottom:5pt"><div><p class="MsoNormal"><span lang="EN-US">The UPS has been defined in ups.conf as:</span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1"><span lang="EN-US">[myups3]</span></span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1"><span lang="EN-US">driver : usbhid-ups</span></span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1"><span lang="EN-US">port = auto</span></span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1"><span lang="EN-US">vendorid = 0463</span></span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1"><span lang="EN-US">productid = ffff</span></span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1"><span lang="EN-US">desc = "5S"</span></span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1">bus = 002</span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1">device = 014</span><span class="m_3543419294502224196apple-converted-space"> </span><u></u><u></u></p><p class="m_3543419294502224196p1"><span class="m_3543419294502224196s1">pollonly</span><u></u><u></u></p></div></blockquote><p class="MsoNormal">I have only:<br><br>[ups02]<br>driver=usbhid-ups<br>port=auto<u></u><u></u></p><div><p class="MsoNormal">serial = [redacted]<u></u><u></u></p></div></blockquote><div><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">I have an Eaton 5P750 connected via USB and agree, a less specific entry in ups.conf works fine for me:<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><u></u> <u></u></span></p></div><div><p style="margin:0cm"><span style="font-size:10pt;font-family:Menlo;color:black">[ups]<u></u><u></u></span></p><p style="margin:0cm"><span style="font-size:10pt;font-family:Menlo;color:black"> driver = usbhid-ups<u></u><u></u></span></p><p style="margin:0cm"><span style="font-size:10pt;font-family:Menlo;color:black"> port = auto<u></u><u></u></span></p><p style="margin:0cm"><span style="font-size:10pt;font-family:Menlo;color:black"> vendorid = 0463<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">--Larry<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">_______________________________________________ Nut-upsuser mailing list <a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a> <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a> <u></u><u></u></p></div></div>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</div></blockquote></div>