lenovokbd

Xorg and Lenovo Traveller Keyboard

Great keyboard, but I want to disable touchpad. Short tips:

ls -l /dev/input/mouse*
crw-rw-rw- 1 root root 13, 32 Feb 19 15:06 /dev/input/mouse0
crw-rw-rw- 1 root root 13, 33 Feb 19 15:06 /dev/input/mouse1
crw-rw-rw- 1 root root 13, 34 Feb 19 15:06 /dev/input/mouse2

Using <pre>cat /dev/input/mouseX</pre> and touching external mouse, trackpoint, touchpoint I realized:

  • external mouse - mouse0
  • trackpoint - mouse2
  • touchpoint - mouse1

Then, it was easy to configure xorg.conf to have external usb mouse + lovely red trackpoint with horizontal and vertical scrolling:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "TrackPoint" "SendCoreEvents"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
#    Option         "Device" "/dev/mouse"
    Option         "Device" "/dev/input/mouse0"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
       Identifier  "TrackPoint"
       Driver      "mouse"
#       Option      "Device"              "/dev/input/mice"
       Option      "Device"              "/dev/input/mouse2"
       Option      "Protocol"            "IMPS/2"
       Option      "Emulate3Buttons"     "on"
       Option      "Emulate3TimeOut"     "50"
       Option      "EmulateWheel"        "on"
       Option      "EmulateWheelTimeOut" "200"
       Option      "EmulateWheelButton"  "2"
       Option      "YAxisMapping"        "4 5"
       Option      "XAxisMapping"        "6 7"
       Option      "ZAxisMapping"        "4 5"
EndSection