spam_bank
2003-11-30, 08:54 PM CST
Hi all,
After spending the better part of Thanksgiving trying to configure my new MX700, I want to share with you how to get all the buttons (except the program switching one) to work.
First, you need to install imwheel. You can get it at: http://jcatki.no-ip.org/imwheel/.
Next, add the following to /etc/X11/XF86Config
[code:1]Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "MX500"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSection
[/code:1]
and modify the InputDevice line of the ServerLayout section to:
[code:1] InputDevice "MX500" "CorePointer"
[/code:1]
At this point, X knows that you have a 7 button mouse. However, none of the special buttons will do anything. We will use imwheel to map those button functions.
Now add a new file "mx500" to /etc/X11/xinit/xinitrc.d/
Place in this file the following lines:
[code:1]xsetpointer MX500
xmodmap -e "pointer = 1 2 3 6 7 4 5"
killall -9 imwheel
/usr/local/bin/imwheel -k -b "67" &
[/code:1]
do a chmod +x on the file
What this does is to remap the mouse buttons so that the scroll wheel and the "up" and "down" fast scroll buttons work properly.
Finally, create a ~/.imwheerc and put the following into it:
[code:1]".*"
None,Left,Alt_L|Left
None,Right,Alt_L|Right
"(null)"
None,Left,Alt_L|Left
None,Right,Alt_L|Right
[/code:1]
This tells imwheel to map the "forward" button to alt+left and the "back" button to alt+right. Since these are the keyboard shortcuts for "forward" and "back" these buttons now work!
Restart X, login, do a ps to make sure imwheel is running and everything should work!
Problems:
If the buttons don't work, make sure imwheel is still running. Sometimes, imwheel will crash and leave a pid file that can't be deleted by anyone except root. One way to get around this is to SUID imwheel but that's not very secure. I have not found a satisfactory solution to this problem.
After spending the better part of Thanksgiving trying to configure my new MX700, I want to share with you how to get all the buttons (except the program switching one) to work.
First, you need to install imwheel. You can get it at: http://jcatki.no-ip.org/imwheel/.
Next, add the following to /etc/X11/XF86Config
[code:1]Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "MX500"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSection
[/code:1]
and modify the InputDevice line of the ServerLayout section to:
[code:1] InputDevice "MX500" "CorePointer"
[/code:1]
At this point, X knows that you have a 7 button mouse. However, none of the special buttons will do anything. We will use imwheel to map those button functions.
Now add a new file "mx500" to /etc/X11/xinit/xinitrc.d/
Place in this file the following lines:
[code:1]xsetpointer MX500
xmodmap -e "pointer = 1 2 3 6 7 4 5"
killall -9 imwheel
/usr/local/bin/imwheel -k -b "67" &
[/code:1]
do a chmod +x on the file
What this does is to remap the mouse buttons so that the scroll wheel and the "up" and "down" fast scroll buttons work properly.
Finally, create a ~/.imwheerc and put the following into it:
[code:1]".*"
None,Left,Alt_L|Left
None,Right,Alt_L|Right
"(null)"
None,Left,Alt_L|Left
None,Right,Alt_L|Right
[/code:1]
This tells imwheel to map the "forward" button to alt+left and the "back" button to alt+right. Since these are the keyboard shortcuts for "forward" and "back" these buttons now work!
Restart X, login, do a ps to make sure imwheel is running and everything should work!
Problems:
If the buttons don't work, make sure imwheel is still running. Sometimes, imwheel will crash and leave a pid file that can't be deleted by anyone except root. One way to get around this is to SUID imwheel but that's not very secure. I have not found a satisfactory solution to this problem.