Natural Laser Mouse xorg.conf 設定メモ
Microsoft Natural Laser Mouse 6000 マウスをLinuxで使いたいと言われた。
繋いでも動かないんだけど、と言われたので、設定方法について調べてみる。
設定について、参考にしたサイト。
- http://hibari.2ch.net/test/read.cgi/linux/1066579070/
- http://www.retujyou.com/2008/04/12/ubuntu-5button-mouse/
まずは、defaultのxorg.confで調べて見る。
Option "Protocol" "auto"
Option "Emulate3Buttons" "yes"
Option "ZAxisMapping" "4 5"
xevでeventを確認。wheel tiltは認識されず。
ボタン6,7はtiltに相当するのかな。
1: Left click
2: Middle (Wheel) click
3: Right click
4: Wheel scroll up
5: Wheel scroll down
8: small button (lower)
9: small button (upper)
evdevでチルトホイールマウスの記述を見ると、evdevを使えばtiltも認識されるらしいが、
うまくいかず。今回はtiltは使わないので深追いしない。
今回は、横の小さなボタンにMiddle button (wheel) clickを割り当てる。
xorg.confに "MS Mouse" を追加して、Option "ButtonMapping" "1 2 3 6 7 2 2" とする。
が、ボタンを押しても何も反応しない。xevで見ると、ボタンが7つしか認識されなくなっている。なんで?
気を取り直して、Option "ButtonMapping" "1 2 3 2 2" とする。
今度はうまくいった。
(**) Option "Protocol" "ExplorerPS/2"
(**) MS Mouse: Device: "/dev/input/mice"
(**) MS Mouse: Protocol: "ExplorerPS/2"
(**) Option "CorePointer"
(**) MS Mouse: Core Pointer
(**) Option "Device" "/dev/input/mice"
(**) Option "Emulate3Buttons" "no"
(**) Option "ZAxisMapping" "4 5"
(**) MS Mouse: ZAxisMapping: buttons 4 and 5
(**) Option "ButtonMapping" "1 2 3 2 2"
(**) MS Mouse: Buttons: 5
(II) XINPUT: Adding extended input device "MS Mouse" (type: MOUSE)
xorg.confは、下記のようになった。
ServerLayoutのCorePointer指定は、どうすべきなのか良く判らん。
Section "ServerLayout" InputDevice "MS Mouse" "CorePointer" # InputDevice "Mouse0" "CorePointer" EndSectionSection "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSectionSection "InputDevice"
# generated from default
Identifier "MS Mouse"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 2 2"
EndSection
| 固定リンク
| コメント (0)
| トラックバック (0)
