筆記本型號: thinpad x200 7457
作業系統:
$ uname -a
Linux veini-laptop 2.6.31-18-generic #55-Ubuntu SMP Fri Jan 8 14:55:26 UTC 2010 i686 GNU/Linux
1. 調整小紅帽的靈敏度,速度
$ su -
$<輸入根使用者密碼>
# echo -n 120 > /sys/devices/platform/i8042/serio1/speed
# echo -n 240 > /sys/devices/platform/i8042/serio1/sensitivity
如果在serio1下找不到speed和sensitivity,看serio0是否有,其實,最簡單的方法是用find命令尋找。
每次重啟系統後,之前設定的值又重新設為了預設值,解決方案如下:
在/etc/rc.local添加如下內容(在exit 0語句前):
TRACKPATH=$(find /sys -print0 | grep -FzZ "/serio1/speed" | sed s/speed//)
[ -f $TRACKPATH/speed ] && echo -n 120 > $TRACKPATH/speed
[ -f $TRACKPATH/sensitivity ] && echo -n 240 > $TRACKPATH/sensitivity
2. 實現中鍵滾動
方法一:
建立/etc/hal/fdi/policy/mouse-wheel.fdi檔案,內容如下:
<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
</match>
方法二:
安裝 sudo apt-get install gpointing-device-settings
配置:喜好設定 -> Pinting devices -> Use middle emulation, 選擇Button [2].
更多關於thinkpad在ubuntu上的應用,請瀏覽該網站:ThinkWiki