Kojak wrote:
>
> Hi,
>
> Only recently I've bought a USB tablet, and I want to create an Xinput driver
> for it. I've been messing with it, and I can get a proper report out of it,
> and I can decode that report. I get the report with a GET_DESCRIPTOR call,
> with wValue set to (USB_DT_REPORT<<8).
>
> According to the HID specifications, I should be able to do a GET_REPORT request,
> but if I send the following usb_control_msg (ripped from usbutils:lsusb.c)
>
> usb_control_msg(fd,
> USB_DIR_IN | USB_DT_HID,
> USB_REQ_GET_REPORT,
> reportNumber,
> 0,
> sz,
> mybuf)
>
> it always returns with errno==16: "Device or resource busy"
>
> What I really'd like to do is to set a feature somewhere in the HID report tree.
> How can I do that?
As I see it, you have two decent options, both of which involving blowing off
the direct control message business.
I think the best option is to use the event interface from the existing input
driver system. Look at Vojtech's evtest code (in the linuxconsole CVS archive)
for how this works.
The other option is to use the raw hid device stuff in the latest -ac kernels.
Look at http://athome.wetlogic.net:8008/hiddev/ for documenation and an
example.
Brad
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel