Yippee38
01-02-2007, 12:25 AM
I've read a lot of conflicting information about getting the sixth and seventh buttons working on a mouse in linux. It ended up being pretty simple, so I thought I'd share it.
First I changed my /etc/X11/xorg.conf to read the following:
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "7"
Option "Device" "/dev/input/mice"
Option "Name" "Microsoft 5-Button Mouse with IntelliEye(TM)"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "6 7"
EndSection
Then I added the following line to my /etc/X11/xdm/Xsession file:
# xmodmap command to reverse function of buttons 4/5 and 6/7
xmodmap -e "pointer = 1 2 3 6 7 4 5"
I added this right before the following:
# User session
# If the user doesn't have their own xsession, then run
# xinitrc if they exist
I hope this helps somebody. It's a hell of a lot easier than using imwheel.
BTW, I'm using Gnome. I don't know if that matters.
First I changed my /etc/X11/xorg.conf to read the following:
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "7"
Option "Device" "/dev/input/mice"
Option "Name" "Microsoft 5-Button Mouse with IntelliEye(TM)"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "6 7"
EndSection
Then I added the following line to my /etc/X11/xdm/Xsession file:
# xmodmap command to reverse function of buttons 4/5 and 6/7
xmodmap -e "pointer = 1 2 3 6 7 4 5"
I added this right before the following:
# User session
# If the user doesn't have their own xsession, then run
# xinitrc if they exist
I hope this helps somebody. It's a hell of a lot easier than using imwheel.
BTW, I'm using Gnome. I don't know if that matters.