fedora 17 配置thinkpad trackpoint中键滚轮【测试机:E40】

2312阅读 0评论2012-11-18 jimylion
分类:LINUX

转自:

参考网页:


实现Trackpoint的中键导航功能

步骤一:在/etc/X11/xorg.conf.d
中创建文件:20-trackpoint.conf
内容为:
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 "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection

步骤二:在/etc/udev/rules.d/
中创建文件:99-trackpoint.rules
内容为:

ACTION!="add|change", GOTO="xorg_trackpoint_end"
KERNEL!="event*", GOTO="xorg_trackpoint_end"

ENV{ID_PATH}!="platform-i8042-serio-1", GOTO="xorg_trackpoint_end"

ENV{x11_options.EmulateWheel}="1"
ENV{x11_options.EmulateWheelButton}="2"
ENV{x11_options.XAxisMapping}="6 7"
ENV{x11_options.Emulate3Buttons}="0"

LABEL="xorg_trackpoint_end"

 

 

调整Trackpoint的灵敏度

第一步: 去  下载 rpm 版本的configure-trackpoing软件来实现对trackpoing灵敏度的调节。 但是重启后会发现灵敏度又回到了从前的状态。

第二步:把如下两行代码写入 /etc/rc.local 就搞定了。 255是灵敏度,180是加速度。范围都是0~255 根据刚才设定的值来修改。

 

echo -n 255 > /sys/devices/platform/i8042/serio1/sensitivity  

echo -n 180 > /sys/devices/platform/i8042/serio1/speed
上一篇:fedora 启动 firefox 提示:/usr/lib/xulrunner/libxul.so: undefined symbol: PR_SetCurrentThreadName
下一篇:你还不懂云计算吗?资深互联网老大详细讲解云计算的应用