2012/3/5 Zach La Celle <[email protected]>:
> Yes, I can test on trunk or on a patched version, but I cannot shut down
> or restart this particular UPS during the day.  Hopefully we won't need
> to do that to figure out the Report 89 / Report 90 stuff.

perfect.
indeed, I just need a driver debug output + an upsc one.
so, no shutdown ahead.

> Would you like me to run off of stable or devel?  Also, can I check out
> stable with subversion/git, or should I just download it manually?

$ svn co svn://anonscm.debian.org/nut/trunk
$ cd trunk
$ patch -p0 < /path/to/apc-skip-rpt.diff
$ ./autogen.sh && ./configure --sysconfdir=/etc/nut
--with-statepath=/var/run/nut --with-altpidpath=/var/run/nut
--with-drvpath=/lib/nut --with-pidpath=/var/run/nut
--datadir=/usr/share/nut --with-pkgconfig-dir=/usr/lib/pkgconfig
--with-user=nut --with-group=nut --without-all --with-usb
$ make
$ sudo ./drivers/usbhid-ups -D -a <devname>

should be good.
remember to stop the previous usbhid-ups instance (if needed) and to
have upsd running.
please send back both the driver output and an upsc output.

cheers,
Arno
Index: drivers/libhid.c
===================================================================
--- drivers/libhid.c	(révision 3484)
+++ drivers/libhid.c	(copie de travail)
@@ -291,6 +291,12 @@
 				continue;
 			}
 		}
+		/* Skip on APC for the same reason? */
+		if (vendorID == 0x051d) {
+			if ((pData->ReportID == 89) || (pData->ReportID == 90)) {
+				continue;
+			}
+		}
 #endif
 
 		/* Get data value */
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to