装完ubuntu8.04以后,小红帽的速度和灵敏度都太低了,而且也不能实现中间键滚动。
今天终于忍受不了了,上google搜了搜,终于搞定了,现将过程叙述如下。
参考文献:
一、调整灵敏度、速度、小红帽单击
实现灵敏度和速度自动调整
# echo -n 120 > /sys/devices/platform/i8042/serio0/serio2/speed
# echo -n 250 > /sys/devices/platform/i8042/serio0/serio2/sensitivity
使能小红帽单击
# echo -n 1 > /sys/devices/platform/i8042/serio0/serio2/press_to_select
去使能小红帽单击
# echo -n 0 > /sys/devices/platform/i8042/serio0/serio2/press_to_select
但是系统重启以后之前的设置就变没了,好像每次系统启动的时候都会重新按照默认值初始化一遍speed、sensitivity等值
解决方法是修改/etc/rc.local文件,在return 0;这句之前加入
TRACKPATH=$(find /sys -print0 | grep -FzZ "/serio2/speed" | sed s/speed//)
[ -f $TRACKPATH/speed ] && echo -n 120 > $TRACKPATH/speed
[ -f $TRACKPATH/sensitivity ] && echo -n 200 > $TRACKPATH/sensitivity
[ -f $TRACKPATH/press_to_select ] && echo -n 1 > $TRACKPATH/press_to_select
二、实现中键滚动
先备份一下/etc/X11/xorg.conf,然后对这个文件进行修改。
把CorePointer那段设置改成如下几句:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
EndSection
然后在synaptics touchpad那段设置里添加:
Option "GuestMouseOff" "1"
再来个8.10的
创建文件:/etc/hal/fdi/policy/mouse-wheel.fdi
代码:
true
2
4 5
true
阅读(4369) | 评论(0) | 转发(0) |