PDA

View Full Version : F7 and 5 button mice



Thetargos
7th June 2007, 07:10 AM
Does F7 now magically manages more than 3 button mice out of the box, yet? Or should I still need to hack xorg.conf and issue xmodmap from an xinit to reflect the order of the mouse buttons? (not that I wouldn't do it anyway, but I'd rather have the distro manage it).

daihard
7th June 2007, 07:43 AM
Does F7 now magically manages more than 3 button mice out of the box, yet? Or should I still need to hack xorg.conf and issue xmodmap from an xinit to reflect the order of the mouse buttons? (not that I wouldn't do it anyway, but I'd rather have the distro manage it).
I believe it is now recommended that you configure your mouse buttons solely in xorg.conf; i.e. without using .Xmodmap. I have my 5-button wireless mouse configured properly by tweaking xorg.conf only, as follows:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7"
Option "Emulate3Buttons" "no"
EndSection

Thetargos
7th June 2007, 07:50 AM
I believe it is now recommended that you configure your mouse buttons solely in xorg.conf; i.e. without using .Xmodmap. I have my 5-button wireless mouse configured properly by tweaking xorg.conf only, as follows:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7"
Option "Emulate3Buttons" "no"
EndSection
Nice... Because to get not only my mouse working right, but my Wacom Graphire 4 tablet I had to resort to xmodmap (for some reason). My input device entries in Xorg.conf look like this:



Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "9"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "USB" "on"
Option "Tilt" "on"
# Option "PressCurve" "0,0,100,100"
Option "Mode" "Relative"
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "USB" "on"
# Option "PressCurve" "0,0,100,100"
Option "Mode" "Relative"
Option "Speed" "1.5"
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom" # USB ONLY
Option "Type" "cursor"
Option "USB" "on" # USB ONLY
Option "Speed" "1.5"
EndSection

Section "InputDevice"
Identifier "pad"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
Option "Button1" "6"
Option "Button2" "7"
Option "Button3" "4"
Option "Button4" "5"
EndSection


This makes my MS IME work and be able to use my tablet's buttons and wheel (buttons as back and forward in FF [quite convenient] and programmable for apps like Gimp and Inkscape)