Is there a way to determine if a device is being added manually?

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

 



The problem: I have a keyboard-faking scanner which is blacklisted in
usbhid: hid/hid-core.c: HID_USB_DEVICE(USB_VENDOR_ID_TENX,
USB_DEVICE_ID_TENX_IBUDDY1)

Apparently, this is because the vendor is stupid and has re-used the USB
ID and descriptor for all kinds of scanner interfaces, not all of which
behave like a keyboard.

Mine does, however. Unfortunately, binding the thing to usbhid by way of
"echo USBPATH > /sys/bus/usb/drivers/usbhid/bind" fails, most probably
because the blacklist is still honored when doing that manually.

So, is there a way to circumvent that blacklist? If usbhid can figure
out whether the probe was triggered via sysfs, this should be fairly
easy.

Thoughts?

-- Matthias


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux