<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
hi Jim,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
please see - <a href="https://forums.unraid.net/topic/60217-plugin-nut-v2-network-ups-tools" id="LPlnk">https://forums.unraid.net/topic/60217-plugin-nut-v2-network-ups-tools</a></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9mb3J1bXMudW5yYWlkLm5ldC90b3BpYy82MDIxNy1wbHVnaW4tbnV0LXYyLW5ldHdvcmstdXBzLXRvb2xz" class="LPBorder526526" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer526526" role="presentation" style="padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td style="width: 100%;">
<div id="LPTitle526526" style="font-size: 21px; font-weight: 300; margin-right: 8px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px;">
<a target="_blank" id="LPUrlAnchor526526" href="https://forums.unraid.net/topic/60217-plugin-nut-v2-network-ups-tools" style="text-decoration: none; color: var(--themePrimary);">[Plugin] NUT v2 - Network UPS Tools - Plugin Support - Unraid</a></div>
<div id="LPDescription526526" style="font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;">
On 3/24/2018 at 12:02 PM, huffsper said: Did you find anything weird looking at the log? I noticed in my logs that unBALANCE is using rm -rf to delete files, wouldnt using rsyncs --remove-source-files be better? I took a look and didnt find anything unusual.
 There were a couple of instances where...</div>
<div id="LPMetadata526526" style="font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;">
forums.unraid.net</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
this is the app i am using to use NUT.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
what you say about ups.conf is what i have entered and it fails to start NUT.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
i've PM'ed dmacias on the unraid forums for advice but no response since the weekend when i sent it and the forum thread isn't actively responded to either.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
really need dmacias to respond to enable guidance.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
nut-scanner works, it picks up this:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Scanning for UPS...
<div><br>
</div>
<div>[nutdev1]</div>
<div>driver = "nutdrv_qx"</div>
<div>port = "auto"</div>
<div>vendorid = "0001"</div>
<div>productid = "0000"</div>
<div>product = "MEC0003"</div>
bus = "002"<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
but nutdrv_qx isn't a driver option so i pick "custom" and enter it in, it then appears in UPS.conf and i can start/run NUT but i do not get any readings and it says ONLINE. but if i cut the power, it doesn't change status or act on it.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
since <span style="color:rgb(32, 31, 30);font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important">
nutdrv_atcl_usb doesn't work, i feel its because its missing. if i could know how to put that driver in, it would be interesting to see what NUT did if it saw it.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(32, 31, 30);font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(32, 31, 30);font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(32, 31, 30);font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important">i will
 post on the unraid forum again.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(32, 31, 30);font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(32, 31, 30);font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important">thanks
 for the help Jim. hopefully a solution will be found!</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jim Klimov <jimklimov@gmail.com><br>
<b>Sent:</b> 08 April 2021 09:38<br>
<b>To:</b> James Billinge <jammybisme@hotmail.com><br>
<b>Cc:</b> nut-upsuser@alioth-lists.debian.net <nut-upsuser@alioth-lists.debian.net><br>
<b>Subject:</b> Re: [Nut-upsuser] Powercool UPS compatibility</font>
<div> </div>
</div>
<div>
<div dir="auto">
<div>I took a look at <a href="https://github.com/dmacias72/NUT-unRAID/">https://github.com/dmacias72/NUT-unRAID/</a> plugin source (not sure it is the one you have, just the first recent plugin from googling).</div>
<div dir="auto"><br>
</div>
<div dir="auto">Unfortunately it does not seem to reference actual NUT source well, nor a plugin version, but just hoards several timestamped tarballs with binaries. By commit comments it seems that at least at some point they used the "libusb-0.1+1.0" branch
 which is one of our attempts to handle modern libusb-1 in NUT (note none of the attempts yet were merged to master or released "officially", but we are on it). </div>
<div dir="auto"><br>
</div>
<div dir="auto">I can't quickly say if latest plugin builds are based on that too, or if you may have a mismatch with drivers last built for libusb-0.1 trying to use libusb-1.0 on the server. APIs differ so such mismatch might cause crashes, or just fail to
 start if dynamic linking detects it.</div>
<div dir="auto"><br>
</div>
<div dir="auto">As for ups.conf, I think you should try a minimal config like:</div>
<div dir="auto"><br>
</div>
<div dir="auto">[powercool]</div>
<div dir="auto">driver=nutdrv_atcl_usb</div>
<div dir="auto">port=auto</div>
<div dir="auto"><br>
</div>
<div dir="auto">(port probably may refer to /dev/usb/... if that is persistent across boots and device plugs, but does not have to).</div>
<div dir="auto"><br>
</div>
<div dir="auto">What also comes to mind are issues with linux user privileges - whether that account which runs NUT may connect to USB device nodes. But if nut-scanner worked, probably that is okay.</div>
<div dir="auto"><br>
</div>
<div dir="auto">If you can edit /etc/rc.d/rc.ups, in the line which starts upsdrvctl you can add debugging with -DDDDDD which should show its attempts to find the USB device and possible griefs it may have along the way.</div>
<div dir="auto"><br>
</div>
<div dir="auto"><span style="font-family:sans-serif">Note that currently, an enabled debugging mode may preclude backgrounding of the driver or other NUT daemons so not sure if you'd need to add & to the end of line so upsdrvctl is backgrounded still.</span><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Or if you have shell access, similarly you can run </div>
<div dir="auto">  /usr/libexec/nut/nutdrv_atcl_usb -DDDDDD -a powercool</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hope that helps,</div>
<div dir="auto">Jim Klimov<br>
<br>
<div class="x_gmail_quote" dir="auto">
<div dir="ltr" class="x_gmail_attr">On Thu, Apr 8, 2021, 07:44 James Billinge <<a href="mailto:jammybisme@hotmail.com">jammybisme@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="auto">Hi Jim
<div><br>
</div>
<div>Thanks for the reply. </div>
<div><br>
</div>
<div>In NUT under unRAID there is indeed a setting to enter a driver in. </div>
<div><br>
</div>
<div>Which driver are you suggesting I try as nutdrv_qx makes NUT work, but no communication between NUT and the UPS. </div>
<div><br>
</div>
<div>Just tried nutdrv_atcl_usb.c as driver and NUT will not start. </div>
<div><br>
</div>
<div>Is there anything else I need to enter in UPS.conf to get it to work?</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>James<br>
<br>
<div dir="ltr">Sent from my iPhone</div>
<div dir="ltr"><br>
<blockquote type="cite">On 8 Apr 2021, at 02:22, Jim Klimov <<a href="mailto:jimklimov@gmail.com" target="_blank" rel="noreferrer">jimklimov@gmail.com</a>> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="auto">
<div>I believe nutdrv_atcl_usb is orthogonal to nutdrv_qx "fuji" subdriver. They both handle devices using an "ATCL" USB chip which does not have a registered vendorId/productId, but that is where similarity stops. Different UPS vendors implemented different
 protocols and abilities using that chip as a transport, hence two unrelated drivers.</div>
<div dir="auto"><br>
</div>
<div dir="auto">It seems the HCL entry appeared in relation to this discussion: <a href="https://github.com/networkupstools/nut/issues/203" target="_blank" rel="noreferrer">https://github.com/networkupstools/nut/issues/203</a></div>
<div dir="auto"><br>
</div>
<div dir="auto">Looking at <a href="https://github.com/networkupstools/nut/blob/master/drivers/nutdrv_atcl_usb.c" target="_blank" rel="noreferrer">https://github.com/networkupstools/nut/blob/master/drivers/nutdrv_atcl_usb.c</a> it indeed does not have many
 settings, just an alternate "vendor" string to match on a device which it finds with hardcoded vid:pid by looking at all USB devices.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Unfortunately I can't help with setup of unRAID bit. I'd assume there is a place to state which NUT driver you want.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Jim</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
<br>
<div class="x_gmail_quote" dir="auto">
<div dir="ltr" class="x_gmail_attr">On Tue, Apr 6, 2021, 22:12 James Billinge via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="auto">I have spent the last few days researching the possibility of using a Powercool UPS with NUT under unRAID. 
<div><br>
</div>
<div>I have posted my findings on their forums and not had much response besides other users wanting it to work too. </div>
<div><br>
</div>
<div><a href="https://forums.unraid.net/topic/104685-powercool-ups-compatible/" rel="noreferrer noreferrer" target="_blank">https://forums.unraid.net/topic/104685-powercool-ups-compatible/</a></div>
<div><br>
</div>
<div><br>
</div>
<div>How does one utilise nutdrv_actl_usb?</div>
<div><br>
</div>
<div><a href="https://networkupstools.org/docs/man/nutdrv_atcl_usb.html" rel="noreferrer noreferrer" target="_blank">https://networkupstools.org/docs/man/nutdrv_atcl_usb.html</a></div>
<div><br>
</div>
<div>As a means of connecting to a Powercool UPS along with nutdrv_qx?</div>
<div><br>
</div>
<div>Seeing this - <a href="https://github.com/cbedgar/nut/blob/1e9216399b890b0770a0e8b158109eaa5e61d332/data/driver.list.in" rel="noreferrer noreferrer" target="_blank">https://github.com/cbedgar/nut/blob/1e9216399b890b0770a0e8b158109eaa5e61d332/data/driver.list.in</a></div>
<div><br>
</div>
<div>Fills me with hope that it’s feasible. </div>
<div><br>
</div>
<div><br>
</div>
<div>Is it feasible or am I wasting my time?</div>
<div><br>
</div>
<div>James</div>
</div>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" rel="noreferrer noreferrer" 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 noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>