aptosid.com

Hardware - evdev recognizes mouse as keyboard

Ilinsekt - 12.09.2012, 18:13
Post subject: evdev recognizes mouse as keyboard
Hi all,

my new mouse does not get recognized properly. When plugging it in it does not work, i.e. the cursor doesn't move and the buttons don't do anything, but does show up in lsusb. I found this curious piece in Xorg.log:
      Code:

[ 30822.066] (II) config/udev: Adding input device Holtek USB Gaming Mouse (/dev/input/event16)
[ 30822.066] (**) Holtek USB Gaming Mouse: Applying InputClass "evdev keyboard catchall"
[ 30822.066] (II) Using input driver 'evdev' for 'Holtek USB Gaming Mouse'
[ 30822.066] (**) Holtek USB Gaming Mouse: always reports core events
[ 30822.066] (**) evdev: Holtek USB Gaming Mouse: Device: "/dev/input/event16"
[ 30822.066] (--) evdev: Holtek USB Gaming Mouse: Vendor 0x4d9 Product 0xa067
[ 30822.066] (--) evdev: Holtek USB Gaming Mouse: Found keys
[ 30822.066] (II) evdev: Holtek USB Gaming Mouse: Configuring as keyboard
[ 30822.066] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/input/input26/event16"
[ 30822.066] (II) XINPUT: Adding extended input device "Holtek USB Gaming Mouse" (type: KEYBOARD, id 17)


The mouse is a Sharkoon Drakonia mouse, it identifies itself as
      Code:
ID 04d9:a067 Holtek Semiconductor, Inc.


Does anyone have any ideas how to fix this?

Cheers
Ilinsekt - 13.09.2012, 18:36
Post subject: RE: evdev recognizes mouse as keyboard
OK, so apparently the reason is that the mouse reports multiple input devices, one of them being a keyboard. Verbose lsusb output:
      Code:

Bus 003 Device 003: ID 04d9:a067 Holtek Semiconductor, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x04d9 Holtek Semiconductor, Inc.
  idProduct          0xa067
  bcdDevice            1.16
  iManufacturer           1 Holtek
  iProduct                2 USB Gaming Mouse
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           84
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      63
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               2
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     175
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               2
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      26
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              16
Device Status:     0x0000
  (Bus Powered)


I've recompiled the kernel with this patch and it works now. slh, is there any chance that you could include this patch in your kernel builds?

Cheers
slh - 13.09.2012, 19:07
Post subject: RE: evdev recognizes mouse as keyboard
I'm sorry, while that patch has been posted 2 years ago, it has never been taken up - so there must be a reason for that rejection. It's either the wrong approach for fixing this or there is some other problem with it.
All times are GMT - 12 Hours
Powered by PNphpBB2 © 2003-2010 The Zafenio Group
Credits