ThinkPad Trackpoint 配置(linux)

本文介绍了如何在Linux环境下为ThinkPad配置TrackPoint功能,包括在xorg.conf文件中添加配置来实现鼠标的各项功能,以及如何调整Firefox浏览器中的水平滚动行为。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一直在用IBM原产的ThinkPad 产品

 

因此把WiKi的ThinkPad Trackpoint 配置分享

 

 

 

配置Trackpoint
http://www.linux-wiki.cn/index.php/%E9%85%8D%E7%BD%AETrackpoint%E7%9A%84%E4%B8%AD%E9%94%AE%E6%BB%9A%E8%BD%AE%E5%8A%9F%E8%83%BD
 其它发行版

其它发行版,如Fedora 9及以前的版本,或其它在/etc/X11/xorg.conf中没有Configured Mouse小节的发行版中,修改的基本思路都是在/etc/X11/xorg.conf中有关鼠标一项如上设置即可,并注意更改ServerLayout部分(如果有的话)的设备名称。下面以Fedora 9为例介绍:

Fedora中,/etc/X11/xorg.conf中没有Configured Mouse一项,需要添加:

# ServerFlags一节对Fedora 9来说是必要的[3]
Section "ServerFlags"
       Option  "AutoAddDevices"        "false"
EndSection
Section "InputDevice"
      Identifier  "Configured Mouse"
      Driver      "mouse"
      Option      "CorePointer"
      Option      "Device"              "/dev/input/mice"
      Option      "Protocol"            "ExplorerPS/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

Section "InputDevice"
     Identifier    "Synaptics Touchpad"
     Driver        "synaptics"
     Option        "SendCoreEvents"    "true"
     Option        "Device"        "/dev/psaux"
     Option        "Protocol"        "auto-dev"
     Option        "HorizScrollDelta"    "0"
     Option        "SHMConfig"            "on"
EndSection


Section "ServerLayout"
中,去掉(如果有的话)

 InputDevice    "Synaptics" "CorePointer"

加入:

InputDevice    "Configured Mouse"
InputDevice    "Synaptics Touchpad"

配置完成,重新启动X就可以看到效果。
Firefox中水平滚动的配置

Firefox中垂直滚动是没有问题的,但是当试图水平滚动时可能执行的是前进、后退操作。如果要修正,请在地址栏中输入

about:config

回车。更改下列设置:

mousewheel.horizscroll.withcontrolkey.action = 3;
mousewheel.horizscroll.withcontrolkey.numlines = 1;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;

mousewheel.horizscroll.withnokey.action = 0;
mousewheel.horizscroll.withnokey.numlines = 1;
mousewheel.horizscroll.withnokey.sysnumlines = true;
 
mousewheel.horizscroll.withshiftkey.action = 1;
mousewheel.horizscroll.withshiftkey.numlines = 1;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;

你也可以直接做如下更改(仅仅避免了由中键导致的前进、后退功能):

mousewheel.horizscroll.withnokey.action = 0;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值