<div dir="ltr"><div><div><div>Would you be so kind and provide some examples (commands), please?<br></div>I would run them today in the evening and report back with the logs.<br></div>Thank you.<br><br></div>Jakub S.<div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 10, 2015 at 11:44 PM, <a href="mailto:hyouko@gmail.com">hyouko@gmail.com</a> <span dir="ltr"><<a href="mailto:hyouko@gmail.com" target="_blank">hyouko@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">mmh.. it looks like someone forgot to hit 'reply all'.<br>
<br>
- relaying the originally attached files (gzipped, minus the two<br>
screenshots, to keep size down).<br>
<br>
2015-03-09 23:20 GMT+01:00 Jakub Scepka (private) <<a href="mailto:jakub.scepka@gmail.com">jakub.scepka@gmail.com</a>>:<br>
> Hi everyone!<br>
><br>
> Here is summary for our fellows wit the same/similar UPS to save them 3<br>
> weeks of life :)<br>
><br>
> First of all I'm running Ubuntu 14.10 (Utopic) on a normal laptop (not<br>
> VirtualMachine!) and I had to download the source from:<br>
><br>
> <a href="https://github.com/zykh/nut/tree/nutdrv_qx-fuji" target="_blank">https://github.com/zykh/nut/tree/nutdrv_qx-fuji</a>  (Thank you Charles)<br>
><br>
><br>
> #sudo apt-get remove nut<br>
> #sudo su<br>
> #apt-get install autoconf<br>
> #apt-get install libtool<br>
> #apt-get install libusb-dev<br>
><br>
> #./configure --without-ssl --with-usb --with-user=nut --with-group=nut<br>
> #make<br>
> #make install<br>
><br>
><br>
> #lsusb -vvv -d 0001:0000<br>
><br>
> (see attached lsusb.log)<br>
><br>
><br>
><br>
> Content of ups.conf:<br>
><br>
> [ups]<br>
> driver=nutdrv_qx<br>
> protocol=megatec<br>
> subdriver=fuji<br>
> port=auto<br>
> vendorid=0001<br>
> productid=0000<br>
><br>
><br>
> #/usr/local/ups/bin$ sudo ./nutdrv_qx -a ups -DDDDD<br>
> (see attached log.log)<br>
> - I have tried to pull the plug<br>
> - reinsert / reconnect it (220V)<br>
> - poweroff the UPS (by button)<br>
> - and power on (by button)<br>
><br>
> #/usr/local/ups/sbin$ sudo ./upsdrvctl start<br>
> Network UPS Tools - UPS driver controller 2.7.2.5<br>
> Network UPS Tools - Generic Q* USB/Serial driver 0.13 (2.7.2.5)<br>
> USB communication driver 0.32<br>
> Using protocol: Megatec 0.02<br>
> No values for battery high/low voltages<br>
> Using 'guesstimation' (low: 31.200000, high: 39.000000)!<br>
> Battery runtime will not be calculated (runtimecal not set)<br>
><br>
> # /usr/local/ups/sbin$ sudo ./upsd<br>
> Network UPS Tools upsd 2.7.2.5<br>
> fopen /var/state/ups/upsd.pid: No such file or directory<br>
> listening on 0.0.0.0 port 3493<br>
> Connected to UPS [ups]: nutdrv_qx-ups<br>
><br>
><br>
> NUT monitor (GUI):<br>
> see screenshot3.png<br>
> and screenshot4.png<br>
> I have tested (and it worked like a charm):<br>
> - beeper.toggle<br>
> - test.battery.start<br>
> - test.battery.stop<br>
><br>
> THANKS TO ALL OF YOU PEOPLE<br>
><br>
> ------------------------------------------<br>
> Originally my planes were to install NUT on a router (DD-WRT/Tomato) or on<br>
> QNAP NAS (ARM arch.) but packages for these devices are too old and I don't<br>
> know (so far) anything about compiling on/for these devices.<br>
> My next logical step was to install Debian Virtual Machine on ESX server and<br>
> compile NUT on it.<br>
> But, this setup suddenly didn't worked, I blame ESX USB passthrought, or<br>
> maybe I'm missing something else... Who knows... :)<br>
><br>
> See nutdrv_qx_5xD.txt (commands: ./nutdrv_qx -a ups -DDDDD and ./nutdrv_qx<br>
> -a ups -DDDDD -u root)<br>
> or debianVM.txt (command: lsusb)<br>
> if you are interested...<br>
> It look similar to this:<br>
> <a href="http://comments.gmane.org/gmane.comp.monitoring.nut.user/8970" target="_blank">http://comments.gmane.org/gmane.comp.monitoring.nut.user/8970</a><br>
> ------------------------------------------<br>
><br>
><br>
> BR<br>
><br>
> Jakub<br>
><br>
><br>
><br>
><br>
> On <a href="tel:09.03.2015%2016" value="+421903201516">09.03.2015 16</a>:27, <a href="mailto:hyouko@gmail.com">hyouko@gmail.com</a> wrote:<br>
>><br>
>> Nice!<br>
>> By the way, to avoid the initial protocol autodetection procedure and<br>
>> to speed up the startup, you should set 'protocol=megatec'.<br>
>> Do the various instant commands seem to work? Can you test them all<br>
>> and report back the logs (a debug level of 5 should be enough)?<br>
>> Also, what's the output of 'lsusb -vvv -d 0001:0000' (as root)?<br>
><br>
><br>
<br>
So far, so good!<br>
However, I need a little more testing before I can merge this into master.<br>
<br>
If possible, I'd like you to test and report back the logs (still with<br>
a debug level of 5) of:<br>
- shutdown.stayoff with ups.delay.shutdown set to 30 seconds;<br>
- shutdown.stayoff with ups.delay.shutdown set to 60 seconds;<br>
- shutdown.return with ups.delay.shutdown set to 30 seconds and<br>
ups.delay.start set to 60 seconds;<br>
- shutdown.return with ups.delay.shutdown set to 30 seconds and<br>
ups.delay.start set to 0 seconds;<br>
- shutdown.return with ups.delay.shutdown set to 60 seconds and<br>
ups.delay.start set to 60 seconds;<br>
- shutdown.return with ups.delay.shutdown set to 60 seconds and<br>
ups.delay.start set to 0 seconds;<br>
- shutdown.stop executed after one of the previous commands (while<br>
ups.delay.shutdown elapses);<br>
- load.on executed after one of the previous shutdowns (after a<br>
successful shutdown.stayoff or while ups.delay.start elapses);<br>
- load.off and then load.on.<br>
<br>
Thanks in advance for your patience.<br>
</blockquote></div><br></div>