Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: QUick question about USB interfaces

I added the Vendor and Product IDs to the USB files, as well as the usb_quirk that FreeBSD says is required for the device to correctly not get grabbed as a keyboard. I'm in the middle of a SUP update to -current again, so it's going to be a while before I can actually test out the patches myself.

Rather than junk up the mailing list, the file is available at

It's three diff files in a tar file, one of which I think isn't needed.... patches against usb_quirks.c and usbdevs.h are in the archive. I thiink that usbdevs_data.h is a mistake, but it's included nonetheless.


On 10/31/2012 2:40 PM, Brian Buhrow wrote:
        Hello.  With that command line, I'd say you need to have the UPS
attach as a uhid device rather than as a ugen device.
What happens if you boot -c, disable the ugen driver and let it boot with
your UPS plugged in?  Do you then get something like:
uhid0 at ohci0 port 3
rather than
ugen0 at ohci0 port 3

If you do, then this programmight attach to the UPS and make it work.

If that doesn't work, then you may need to add the UPS vendor ID and
product IDs to the match routines of the uhid(4) driver specifically.


On Oct 31,  2:12pm, Dave Burgess wrote:
} Subject: Re: QUick question about USB interfaces
} On 10/31/2012 1:50 PM, Brian Buhrow wrote:
} >  Hello.  Can you confirm that the USB library is compiled or linked
} > into the binary you built to support the non-APC UPS's?
} >
} >
} It looks like /usr/pkg/lib/ and
} /usr/pkg/lib/ are getting pulled in.
} libtool: link: gcc -I../include -I/usr/pkg/include
} -I/usr/pkg/include/neon -g -O2 -Wall -Wsign-compare -o usbhid-ups
} usbhid-ups.o libhid.o libusb.o hidparser.o usb-common.o apc-hid.o
} belkin-hid.o cps-hid.o explore-hid.o liebert-hid.o mge-hid.o
} powercom-hid.o tripplite-hid.o idowell-hid.o main.o dstate.o
} -Wl,-R/usr/pkg/lib  ../common/.libs/libcommon.a
} ../common/.libs/libparseconf.a -L/usr/pkg/lib /usr/pkg/lib/
} /usr/local/lib/ -lpthread -pthread -Wl,-rpath
} -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath
} -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/local/lib
} --
} Dave Burgess
} Manager
} Cynjut Consulting Services, LLC
-- End of excerpt from Dave Burgess

Dave Burgess
Cynjut Consulting Services, LLC

Home | Main Index | Thread Index | Old Index