在CentOS中设置TrackPoint

本文介绍如何在CentOS环境下为ThinkPad笔记本配置TrackPoint中间按钮滚动功能。通过设置Xorg配置文件,实现TrackPoint与Synaptics触摸板共存并确保两者正常工作。适用于UltraNav配备的ThinkPad型号。

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

转载自:http://centos.org/modules/newbb/viewtopic.php?topic_id=12665&forum=39

 

The Ultranav Trackpoint on Thinkpads has a great middle button scrolling ability. Some distros [read: Ubuntu, openSUSE] have little to no problem configuring it because, unlike Fedora and CentOS, they have decided to keep the /dev/psaux device instead of completely using the /dev/input/ devices. I searched around and could not find a good way to configure the scrolling in CentOS. Finally, I did some detective work and this is what I found. This is using a IBM ThinkPad T42, but should probably work on must UltraNav equipped ThinkPads.

The default CentOS 5 install configures a single input device using the Synaptics driver. This will give you some 99% of the functionality, but will not allow you to configure Trackpoint scrolling. Here is what it looks like.

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection

What we need to do is have two sections; one for the Synaptics touchpad and another for the Trackpoint. Since /dev/psaux does not exist, we need to find out where the specific touchpad device file is.


[msiner@luigi Desktop]$ cat /var/log/Xorg.0.log | grep Synaptics
(**) |-->Input Device "Synaptics"
(II) Synaptics touchpad driver version 0.14.4 (1404)
(--) Synaptics auto-dev sets device to /dev/input/event1
(--) Synaptics touchpad found
(**) Synaptics: always reports core events
...


Since it is at /dev/input/event1 (use that command on your own machine because yours may be different), we can configure the trackpoint at /dev/input/mice and the touchpad at /dev/input/event1. The last trick we need is to also use the "SendCoreEvents" option to make sure both of them work. Here is my xorg.conf configuration for the device. Notice that I included the ServerLayout section as it had to be changed.

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Trackpoint"
InputDevice "Synaptics"
EndSection

...

Section "InputDevice"
Identifier "Trackpoint"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/event1"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
Option "SHMConfig" "on"
EndSection

...

This setup has worked for me and I hope this post helps somebody else who is having trouble with this or had just accepted the sad fate of not having Trackpoint scrolling. Some of you might have figured this out already, but I cound not find any info through Google or even ThinkWiki.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值