On 2006/05/31 11:12, Claus wrote: > On 5/31/2006 5:43 AM, Stuart Henderson wrote: > >On 2006/05/31 08:52, [EMAIL PROTECTED] wrote: > >>As far as I understand I need either the hidups or the newhidups > >>driver of nut in order to use the APC Back-UPS XS 1500 (aka BX1500) > >>with a USB interface cable. [...] Are the hidups and newhidups > >>only available under Linux? > >Not tested, but NUT is probably looking for /usr/local/include/usb.h > >from the libusb port/package, not the system /usr/include/dev/usb/usb.h > >Programs using libusb should be reasonably portable between OS. > > Thanks Stuart. You are right, the libusb-0.1.10ap1 package contains > the needed /usr/local/include/usb.h file. I got it all compiled now
Good stuff, and thanks for the useful and detailed information you included. > but I'm already stuck again. > The newhidups driver doesn't detect the UPS. I read somewhere [1] > that the uhid device needed to be disabled in order to get the driver > to run in FreeBSD. Apcupsd specifically requires that from OpenBSD > [2]. Does that really mean that a custom build of OpenBSD is required? Well, it needs a change making to the OS, but I don't see any reason for it to be a custom build, it seems like it's quite suitable to go into the standard OS. > uhidev0 at uhub0 port 2 configuration 1 interface 0 > uhidev0: American Power Conversion Back-UPS RS 1500 FW:8.g2 .D USB FW:g2, rev > 1.10/1.06, addr 2, iclass > 3/0 > uhidev0: 123 report ids > uhid0 at uhidev0 reportid 1: input=0, output=0, feature=1 Fortunately matthieu@ recently made it easy to work with this when he made changes to uhid to accommodate the metageek wi-spy. [1] Please try this 1-line change and rebuild the kernel (just GENERIC, you don't need anything custom); Index: /usr/src/sys/dev/usb/usb_quirks.c =================================================================== RCS file: /data/cvsroot/OpenBSD/src/sys/dev/usb/usb_quirks.c,v retrieving revision 1.22 diff -u -r1.22 usb_quirks.c --- /usr/src/sys/dev/usb/usb_quirks.c 14 May 2006 12:00:04 -0000 1.22 +++ /usr/src/sys/dev/usb/usb_quirks.c 31 May 2006 17:33:07 -0000 @@ -128,6 +128,7 @@ { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY920, ANY, { UQ_BROKEN_BIDIR }}, { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY800, ANY, { UQ_BROKEN_BIDIR }}, { USB_VENDOR_METAGEEK, USB_PRODUCT_METAGEEK_WISPY, ANY, { UQ_BAD_HID }}, + { USB_VENDOR_APC, USB_PRODUCT_APC_UPSPRO500, ANY, { UQ_BAD_HID }}, { 0, 0, 0, { 0 } } }; This should prevent the UPS attaching to uhid, instead it should show as ugen in dmesg and be available for apcupsd. [1] (One can see why the wi-spy attaches to uhid since the board is intended for wireless remote keyboard/mouse but someone worked out how to make better use of it - but why this UPS, and the cypress usb-serial, report themselves as being HID is less clear..)