2009年2月26日 星期四

如何在Ubuntu 8.10中啟動x31的中鍵

    相信有在玩Linux的朋友都知道,Ubuntu算是目前人機界面整合最好的Linux distribution,正好前幾天重灌我的古董筆電X31, 灌完之後發覺Ubuntu不只是套件整合度佳, 連driver的整合度也變得超好, 唯一美中不足的是我的X31的中鍵不能動作, 依照我從Ubuntu 5.10一直使用到現在的經驗, 只要在xorg.conf加入關於TracePoint的設定就可以啟動了. 不過8.10改了TracePoint的設定方式. 設定方式如下

>vim /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.XAxisMapping" type="string">6 7</merge>
   <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
   <merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
   <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
 </match>