Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Ilinsekt
Post subject: evdev recognizes mouse as keyboard  PostPosted: 12.09.2012, 18:13



Joined: 2010-10-29
Posts: 43

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
 
 View user's profile Send private message  
Reply with quote Back to top
Ilinsekt
Post subject: RE: evdev recognizes mouse as keyboard  PostPosted: 13.09.2012, 18:36



Joined: 2010-10-29
Posts: 43

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
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: evdev recognizes mouse as keyboard  PostPosted: 13.09.2012, 19:07



Joined: 2010-08-25
Posts: 736

Status: Offline
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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio