转自:
参考网页:
实现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
阅读(2320) | 评论(0) | 转发(0) |