X.org 6.8 and evdev: type 1 (Key), code 240 (?), value -1

robert evert crimofbai at web.de
Wed Sep 29 09:33:55 PDT 2004


Hi list,

I'm still trying to get my tilt wheel working, but still it doesn't want
to ;)
I patched my X.org with the 9000_all_6.7.99.2-lnx-evdev-core-v2.patch
and the 9002_all_6.7.0-lnx-evdev-mouse.patch, edited my X.org Config to
this:

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Device" "/dev/input/event2"
  Option       "Emulate3Buttons" "off"
  #Option       "ButtonNumber" "7"
  Option       "Name" "Autodetection"
  Option       "Protocol" "evdev"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5 6 7"
  Option       "Resolution" "400"
  Option      "Dev Name"   "*Microsoft*"
EndSection

but xev doesn't show up anything for the tilt wheel, the normal Mouse
Functions are alright. 
When I run evtest /dev/input/event2 I get some events generated by the
tilt wheel, but them too are not specified:


# evtest /dev/input/event2
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x45e product 0x8c version 0x57
Input device name: "Microsoft Microsoft Wireless Optical Mouse� 1.0A"
Supported events:
  Event type 0 (Reset)
    Event code 0 (Reset)
    Event code 1 (Key)
    Event code 2 (Relative)
    Event code 3 (Absolute)
    Event code 20 (Repeat)
  Event type 1 (Key)
    Event code 240 (?)
    Event code 241 (?)
    Event code 256 (Btn0)
    Event code 257 (Btn1)
    Event code 272 (LeftBtn)
    Event code 273 (RightBtn)
    Event code 274 (MiddleBtn)
    Event code 275 (SideBtn)
    Event code 276 (ExtraBtn)
  Event type 2 (Relative)
    Event code 0 (X)
    Event code 1 (Y)
    Event code 8 (Wheel)
  Event type 3 (Absolute)
    Event code 40 (?)
      Value      0
      Min        0
      Max        1
    Event code 41 (?)
      Value      0
      Min        0
      Max        3
    Event code 42 (?)
      Value      0
      Min        0
      Max        3
    Event code 43 (?)
      Value      0
      Min        0
      Max        3
  Event type 20 (Repeat)
Testing ... (interrupt to exit)
Event: time 1096475340.197749, type 1 (Key), code 240 (?), value -1
Event: time 1096475340.197755, type 1 (Key), code 240 (?), value 0
Event: time 1096475340.197757, type 0 (Reset), code 0 (Reset), value 0
Event: time 1096475341.717492, type 1 (Key), code 240 (?), value 1
Event: time 1096475341.717498, type 1 (Key), code 240 (?), value 0
Event: time 1096475341.717500, type 0 (Reset), code 0 (Reset), value 0

The information about the Wireless Optical Mouse� 1.0A is not right, its
a 2.0, is that relevant?
Hope I just did anything wrong, I really like the tilt wheel....

Thanks,
-- 
robert evert <crimofbai at web.de>




More information about the xorg mailing list