Home » Slackware Linux » Slackware配置ThinkPad Trackpoint(指点杆)
  • 03
  • 11月

本人机器是ThinkPad E430C(试水机,说真的,这机器确实不咱滴),现在装的是14.0(很快上14.1),安装完成之后,没什么问题,就是中键加指点杆垂直滚动无法使用,在网上找了很多方法,都没有成功。最后通过GG找到下面的方式搞定了。英文的,懒得翻译了。

适用于Slackware 13.37+(13.0, 13.1未测试)

Since the new X.Org no longer uses HAL, my old method of configuring the TrackPoint in a file “/etc/hal/fdi/policy/11-x11-trackpoint.fdi” no longer works. Instead, the new X.Org uses a configuration directory “/etc/X11/xorg.conf.d/” where you can add configuration files for your hardware. You’ll see the similarities; my old HAL file looks like this:

<match key="info.product" string_outof="TPPS/2 IBM TrackPoint;PS/2 Generic Mouse">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>

While the new way of configuring requires a file (I aptly named it “/etc/X11/xorg.conf.d/20-thinkpad.conf” but any name that ends on “conf” will do) in which I wrote:

Section "InputClass"
    Identifier    "Trackpoint Wheel Emulation"
    MatchProduct    "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
    MatchDevicePath    "/dev/input/event*"
    Option        "EmulateWheel"        "true"
    Option        "EmulateWheelButton"    "2"
    Option        "EmulateWheelTimeout"    "200"
    Option        "XAxisMapping"        "6 7"
    Option        "YAxisMapping"        "4 5"
    Option        "Emulate3Buttons"    "true"
EndSection

You will have perform a similar exercise if you previously had configured a non-US keyboard in a HAL “fdi” file. I will leave it up to you to figure out how to repeat this for the new X.Org.

备注: 不同型号的 ThinkPad 的 MatchProduct 可能略有不同, 若上述配置无法生效, 则需要通过 xinput --list 命令查看机器真实的 MatchProduct.

Reference: