Re: HID device lying about Usage

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

 



On Fri, Jan 29, 2010 at 03:50:00PM +0100, Simon Richter wrote:
> Hi,
> 
> On Fri, Jan 29, 2010 at 06:10:59AM -0800, Greg KH wrote:
> 
> > > > >  - Invent a new quirk that prevents the device from being connected to
> > > > >    anything but hidraw.
> 
> > > > If you really want to send HID commands to it.  Does it accept them?
> > > > Odds are, it doesn't.
> 
> > > I have a working protocol implementation on top of hidraw.
> 
> > Then hey, you answered your own question :)
> 
> Not quite. The protocol works, but the input layer still interprets the
> data coming from the device, which results in spurious keyboard input
> and/or the computer going to sleep or shutting down (because the HID
> spec has "sleep" and "power" buttons defined).
> 
> If I was to add the IGNORE quirk, then I'd not get the hidraw device
> anymore, so I'd have to move my protocol stack over to libusb; if I were
> to create a new quirk, then I'd have to get that accepted into the
> kernel to get it somewhat futureproof.

Adding new quirks to the kernel is pretty trivial, I suggest doing that.

thanks,

greg k-h
--
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