Re: 04d9:a055: Trust GXT 18 Gaming Keyboard: error -22

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

 



On Thu, 15 Dec 2011, Sergey Spiridonov wrote:

> I got another PC and installed Debian testing with kernel 3.1.0-1-686-pae on
> it. In attachment you can also find lsusb -v output and usbmon output.
> 
> > Sergey, could you please
> > 
> > 	rmmod usbhid
> > 	rmmod hid
> > 	modprobe hid debug=1
> > 	modprobe usbhid
> > 
> > and share the resulting dmesg?
> 
> Here it is:
> 
> /build/buildd-linux-2.6_3.1.1-1-i386-6vi5gY/linux-2.6-3.1.1/debian/build/source_i386_none/drivers/hid/hid-core.c:
> usage index exceeded

Okay, this is the culprit. And indeed, the lsusb output shows this:

            Item(Local ): Usage, data= [ 0x01 ] 1
                            Consumer Control
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Report ID, data= [ 0x02 ] 2
            Item(Local ): Usage Minimum, data= [ 0x00 ] 0
                            Unassigned
            Item(Local ): Usage Maximum, data= [ 0xff 0x7f ] 32767
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x7f ] 32767

i.e. the device presents 32k of cosumer usages, which is beyond the limit 
on the number of usages the current parser in the kernel supports (12288). 
Bumping up the HID_MAX_USAGES constant would work around the problem, but 
I don't believe the keyboard is actually generating such a wide range of 
consumer page usages.

-- 
Jiri Kosina
SUSE Labs
--
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