I'm trying to get all of the mouse buttons on my Trust MI-6950R to work with Ubuntu 8.10. The mouse has left/right mouse buttons, the scroll wheel (which can tilted left/right as well), zoom in and zoom out buttons, and forward/back buttons. Only the scroll wheel and left/right mouse buttons work with this entry in xorg.conf:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection
So I researched a little on ubuntuforums and Google and came up with some new stuff to try. First, I tried the command: cat /proc/bus/input/devices (full output in the code section). When I did this, I noticed this entry in particular:
I: Bus=0003 Vendor=04fc Product=0801 Version=0111
N: Name="USB Multi-Smart Mouse"
P: Phys=usb-0000:00:12.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.0/input/input4
U: Uniq=
H: Handlers=kbd mouse2 event4
B: EV=1f
B: KEY=837fff002c3027 bf00444400000000 f1f0001 f848a27c000 667bfad9415fed 8e000000000000 0
B: REL=1c3
B: ABS=100000000
B: MSC=10
Looks like what I'm looking for. So next, I tried to run "xev" to figure out the buttons section of the xorg.conf. The button results look like this:
Left Main: 1
Center (Scroll Button Pushed): 2
Right Main: 3
Scroll Up: 4
Scroll Down: 5
Wheel Tilt Left: (no button or event shown when pressed)
Wheel Tilt Right: (no button or event shown when pressed)
Zoom In: (no button or event shown when pressed)
Zoom Out: (no button or event shown when pressed)
Side Button/Back: 8
Side Button/Forward: 9
Counting the wheel tilting and all, the mouse has 11 buttons. Given that, I changed my xorg.conf to this:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "Protocol" "evdev"
Option "Dev Name" "USB Multi-Smart Mouse"
Option "Dev Phys" "usb-*/input0"
Option "Device" "/dev/input/event4"
Option "Buttons" "11"
Option "ZAxisMapping" "4 5"
EndSection
I then restart X. When I get to the login screen, the mouse doesn't respond at all. I can move it, but the cursor doesn't go anywhere. I hit CTRL-ALT-F5 and changed the config back to the original one, restarted X, and the mouse started working fine again.
I'm not sure what I'm doing wrong to cripple the mouse. I'm also not sure of how to get the zoom in/out buttons working, or how exactly the ZAxisMapping should look. Would the scroll up/down, zoom in/out, and tilt left/right all be entered under ZAxisMapping, or just the scroll up/down?
My xorg.conf:
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
EndSection
Section "Module"
Load "glx"
EndSection
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "Protocol" "evdev"
Option "Dev Name" "USB Multi-Smart Mouse"
Option "Dev Phys" "usb-*/input0"
Option "Device" "/dev/input/event4"
Option "Buttons" "10"
Option "ZAxisMapping" "4 5"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection
============================================
cat /proc/bus/input/devices:
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=050d Product=0815 Version=0110
N: Name="Honey Bee Nostromo SpeedPad2 "
P: Phys=usb-0000:00:12.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=100013
B: KEY=e080ffdf01cfffff fffffffffffffffe
B: MSC=10
I: Bus=0003 Vendor=050d Product=0815 Version=0110
N: Name="Honey Bee Nostromo SpeedPad2 "
P: Phys=usb-0000:00:12.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.1/input/input3
U: Uniq=
H: Handlers=mouse1 event3
B: EV=20017
B: KEY=70000 0 0 0 0
B: REL=103
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=04fc Product=0801 Version=0111
N: Name="USB Multi-Smart Mouse"
P: Phys=usb-0000:00:12.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.0/input/input4
U: Uniq=
H: Handlers=kbd mouse2 event4
B: EV=1f
B: KEY=837fff002c3027 bf00444400000000 f1f0001 f848a27c000 667bfad9415fed 8e000000000000 0
B: REL=1c3
B: ABS=100000000
B: MSC=10
I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=3
B: KEY=10000000000000 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=10000000000000 0
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input7
U: Uniq=
H: Handlers=kbd event7
B: EV=40001
B: SND=6
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
Select allOpen in new window
by: gheistPosted on 2009-04-24 at 01:26:28ID: 24222821
ZAxisMapping "4 5 6 7" and so on...