在這邊找到好東西 - Yuren's Info Area: computer_science 彙整
如何讓X31小紅點的中鍵支援捲軸功能?(在linux中)
而寫這篇的作者是在 TPUSER 看來的~~..
總而言之... 就是趕快記下來... 密技~~~ 🙂
找了好久的東西了... :p
只要把X滑鼠的設定檔改為以下即可:
Identifier "Mouse1"
Option "CorePointer"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "yes"
Option "EmulateWheelButton" "2"
Option "ZAxisMapping" "4 5"
這樣子設定就能在 Xwindow 中使用小紅點的滾輪功能了.. :p
經過這個設定後.. 會發現滑鼠選起來要貼上的功能會不見..
這比沒有滾輪更糟糕....
遇到這樣子該怎麼辦呢?... 到 TPUSER 這邊去看來的作法是..
除了原先設定的之外..
還另外需要設定
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
這個平常是給外接滑鼠用的.. 不過有小紅點那還會想外接滑鼠呢?... 🙂
但是.. 為了複製貼上的功能.. 還是加進去吧..
想當然的..
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Mouse0"
InputDevice "Mouse1" "SendCoreEvents"
EndSection
這邊也是一定要加的.. 🙂
然後還要再作一件事..
由那 TPUSER 中寫的..
查到一些資料.. 他是這樣說的.
Disable the touch pad if you want all three mouse buttons to work for the trackpoint. Otherwise, the middle mouse button won't work with the default PS/2 driver.
所以就到 BIOS 裡, 把 TouchPad 給 disable.
然後.. 就可以盡情的享用了.. Ya... :p
我的設定如下.
1. 先到 BIOS 中把 TouchPad 的功能 disable.(不過這會造成 windows 無法使用小紅點唷
!)
2. 之後設定 XF86Config-4 如下.
Section "InputDevice"
Identifier "Configured Mouse"
Option "CorePointer"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "yes"
Option "EmulateWheelButton" "2"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Mouse1" "SendCoreEvents"
EndSection
即可使用 🙂