2007年9月27日 星期四

[教學]在 linux 上,替 ThinkPad 系列 laptop 加上中鍵捲動功能

前些日子跟某長輩聊天,發現有許多使用 ThinkPad 的 linuxer
竟然都沒去用 ThinkPad 的中鍵捲軸?
雖說沒用也不會怎樣,不過還是少了個好用的功能阿
( netman 大大,我絕對不會說是你的)
其實問題要解決很簡單...就只要加上兩行字就可以了
這邊還是以 Ubuntu 為例,其他 Linux 套件發行版本亦雷同
請跟著我這樣做
sudo gedit /etc/X11/xorg.conf
然後找出下面敘述的這一段

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

把他改成
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection

然後重新啟動 X-Window 就可以使用中鍵捲動功能了 :D

沒有留言: