NetBSD-Users archive

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

Re: libusb-1.0, does it even work?



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.

Martin


Home | Main Index | Thread Index | Old Index