Martin Husemann <martin%duskware.de@localhost> writes: > On Sun, Jan 23, 2022 at 02:53:43PM +0100, Rhialto wrote: >> It always prints this, run as root or not, even though I have at least a >> USB mouse plugged in: >> >> $ ./usb >> libusb_init: 0 >> count = 0 > > On NetBSD libusb (unfortunately) can only see "ugen" devices. As long as > a different driver (e.g. uhid) claims a device, it is not available for > userland via libusb. > > So does the device you want to talk to attach as ugen? If not (like in the > case of your mouse) you need to add a UQ_HID_IGNORE quirk to > sys/dev/usb/usb_quirks.c. I have successfully used libusb1 for things that attach as ugen. As far as the package and man page, if upstream provides a man page and the package doens't install it, that seems easy to fix. If upstream doesn't have a mag page, that's harder. Or did you mean something else?
Attachment:
signature.asc
Description: PGP signature