Ubuntu 9.10 下 thinpad x200小紅帽的設定

來源:互聯網
上載者:User

筆記本型號: 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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.