Click to See Complete Forum and Search --> : 5 button mouse
Tzar Kastik
07-30-2003, 05:01 PM
Hi. Im looking for a way to use the 4th and 5th buttons on my mouse. Its a Trust 350SX mouse and im running Red Hat 9. Under windoze, the buttons act as forward and back buttons for web browsers and i miss having this feature. Does anyone know how to set up the extra buttons? Ive looked for info on it, but had no luck yet.
Cheers.
freakmn
07-30-2003, 05:12 PM
http://www.linuxquestions.org/questions/history/65492
Edit your /etc/X11/XF86Config and add this line to the Mouse Section:
Option "Buttons" "5"
hyp_spec
07-30-2003, 05:14 PM
here in ur XF86Config under mouse make sure to add
Option "ZAxisMapping" "6 7"
and under ur ~/.xinitrc ad exec xmodmap -e "1 2 3 6 7 4 5" and ur good to go!
Icarus
07-30-2003, 05:17 PM
Is it a scroll mouse? All the posted responces are very simular if this is a scroll mouse (technically the 'wheel' is two buttons)
If this mouse also has a scroll wheel, this might be a bit trickier...if not, do what they say :)
Tzar Kastik
07-30-2003, 05:19 PM
Oops. I shoulda mentioned that its a scoll mouse. Sorry, guys.
hyp_spec
07-30-2003, 05:27 PM
OK, so here this should work
in your XF86Config add
Option "ZAxisMapping" "6 7"
Option "Buttons" "5" (might be 7)
add that to the mouse section and put this
exec xmodmap -e "pointer = 1 2 3 6 7 4 5"
into your ~/.xinitrc or add it to gnomes/kde's startup scripts!
mdwatts
07-30-2003, 05:33 PM
How about what I saved in my 7-button text file?
How to get X to use all the Intellimouse Explorer's buttons
This is relatively easy to do. You must be using XFree 4.x for this to work though, as this mouse
technically has 7 buttons, and 3.x only supports up to 5.
The mouse section in your XF86Config should look like this:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "6 7"
Option "Buttons" "7"
EndSection
You have to map the mousewheel out of the way as shown, as otherwise the extra buttons aren't
detected. Now we can swap stuff back though.
Either add this line to your .xinitrc: xmodmap -e "pointer = 1 2 3 6 7 4 5" or add this line to
your ~/.Xmodmap: pointer = 1 2 3 6 7 4 5.
That's it. The side buttons will be 6 and 7 now, and mousewheel scrolling will work as ever.
You can bind the buttons to do whatever you like in your favorite windowmanager and applications.
Tzar Kastik
07-30-2003, 06:11 PM
My XF86Config file looked slightly different. It was
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Should i just change this to resemble yours, mdWatts? (Apart from the device?) or just add the missing lines?
hyp_spec
07-30-2003, 06:23 PM
change it to look like his, then it should work... I used to have a 5 button mouse.. it broke so I went cheap and bought a $5 3 button mouse
mdwatts
07-30-2003, 06:28 PM
Originally posted by Tzar Kastik
My XF86Config file looked slightly different. It was
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Should i just change this to resemble yours, mdWatts? (Apart from the device?) or just add the missing lines?
You are at least missing the
Options "Buttons" "number of buttons"
As for the back and forward, I would really suggest you search around JL and www.google.com/linux for configuring those as they can be a bit different depending on the browser in Linux you are using.
I know that one (or more) of the recent Linux browsers has this functionality, but I've tried it myself and quickly disabled it since it affected my browsing functions. Others perhaps may not have the same problem as me.
Something else that I had saved though it may not be relevant.
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
In /etc/xinit/.Xmodmap:
pointer = 1 2 3 6 7 4 5
In ~/.imwheelrc:
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
Did you start imwheel using
imwheel -k -b "67"
ExplorerPS/2 set as the protocol
Icarus
07-30-2003, 08:09 PM
Try this one, mines really goofy :)
Section "InputDevice"
# Modified by mouseconfig
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/psaux"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "no"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
EndSection
A 5 button scroll mouse (non-name from compUSA)
The scroll works great, the middle button (scroll wheel) works great...the side left button acts like the middle button and the right side button works like a right click :)
I don't know how I did this, but it works...
One day I'll figure out how to just disable that far right button, I click it while dodging in games and end up jumping :)
maybe if I use "Buttons" "6"...?