PDA

View Full Version : Configuring mouse side buttons in FC3


s_reynisson
20th November 2004, 04:33 AM
Keywords: Mouse, Fedora Core 3, Side, Button, USB, Wheel, Forward, Back, Configure
Files used: /etc/X11/xorg.conf, /etc/X11/xinit/xinitrc.d/mouse.sh

This is a summary from the many posts here on this topic, credits to the original posters. This works fine on my system, FC3 Kernel 2.6.9-1.678_FC3smp with a USB Logitech MX500 mouse. This is all you need to do, you do not have to install any programs.

As root, add this to your InputDevice section in xorg.conf in folder /etc/X11/, I back up using comments, you can also copy the file first with something like cp xorg.conf xorg.conf.org:
# new part
Section "InputDevice"
# Identifier "USB Mouse"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
# old part
#Section "InputDevice"
# Identifier "Mouse0"
# Driver "mouse"
# Option "Protocol" "IMPS/2"
# Option "Device" "/dev/input/mice"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "yes"Note here that I have commented out Identifier "USB Mouse" and replaced it with my original Identifier "Mouse0". You must do the same. Next create the file mouse.sh in folder /etc/X11/xinit/xinitrc.d/ and paste the following in it:
#!/bin/sh
# /etc/X11/xinit/xinitrc.d/mouse.sh
# Required for the configuration of a 5-button mouse
xmodmap -e "pointer = 1 2 3 6 7 4 5"Finally make it executable with chmod +x mouse.sh. Restart X, I rebooted ;) Good luck!

imdeemvp
20th November 2004, 04:49 AM
Very how info....it will help others.

SilverZero
20th November 2004, 05:07 AM

Very how indeed. ;)

Glad to see a reference to the ".sh" extension requirement for scripts in the xinitrc.d directory. That hummer was eluding me for hours!

adam
3rd December 2004, 08:33 PM
awesome! thank you :)

BandC
3rd January 2005, 01:40 AM
This worked great for me. Thank you for the how-to. I do have one question. Is it possible to play with some of the parameters in these two files and program the side buttons for functions other than "back" and "forward"?

benv84
3rd January 2005, 02:44 AM
thanks alot for the how to, not being able to use my side buttons has really been bugging me after switching to linux

benv84
3rd January 2005, 11:14 PM
does anyone know how to edit the files for a microsoft intellimouse explorer 3.0? because the back and forward buttons still don't work.

Forlorn
4th January 2005, 10:01 AM
does anyone know how to edit the files for a microsoft intellimouse explorer 3.0? because the back and forward buttons still don't work.

same for me :(

vladthedog
5th January 2005, 06:43 PM
oh man thanks. i've been trying to get this mx510 to work for a while. i've read other "walkthroughs" but either i've been doing something wrong, or whatever cause i could never get the dang thing to work... now it works like a charm! i'm a very recent convert from winxp, and that was one of my big complaints :)

saFFyre
8th January 2005, 05:02 PM
Ok ive just attempted this, and all works well when im logged in as root. However when im using my normal user account the mouse wheel and the side buttons have swapped function. The mouse wheel being back and forward and the side buttons scroll up and down. Im using fedora core 3 on a fresh install. I followed the instructions right as far as i can tell.

Cheers
Tom

Aksen
12th January 2005, 08:09 AM
I'm totally new to linux, I've been trying to tackle this problem for two days now. Thank you, this worked on the first try.

Aksen
13th January 2005, 07:30 AM
saFFyre :

I just reinstalled FC3, first time was a test run i guess. Well anyway, now I'm having the same problem as you... but i think i figured it out. log in as root, then go to the "mouse.sh" file, right click and hit properties. Make sure all users have permissions to execute the file!

firstknt
2nd February 2005, 10:06 PM
thanks for the how...

my previously limited intellimouse is currently at it's best... now if i can get the "snap-to" to work and have the hot keys on my desktop elite function, i would be a zealot of linux till eternity :p

micha
2nd February 2005, 11:24 PM
Looks like an old post :
http://www.fedoraforum.org/forum/showpost.php?p=108762&postcount=5

;)

niloppa
5th February 2005, 04:33 PM
there's answer in this link ===> www.s_what_mouse_configuration.op.com (linoczka.blox.pl/html)

Chrus
6th February 2005, 10:29 AM
does anyone know how to edit the files for a microsoft intellimouse explorer 3.0? because the back and forward buttons still don't work.

I got the 4.0and my buttons worked right from the start... they just did strange stuff... after doing all this stuff... they still just do starange stuff...

By strange stuff, I mean go home, to other pages I have visited recently, right click... I cant really figure out any pattern to it.

Does anyone have a solution?

notsonewguy
17th February 2005, 02:36 AM
I'm an extreme n00b with all Linux and I didnt really understand everything in this How- To but I was able to configure my Logitech mouse in a couple of minutes, by doing exactly what it said .....easy.....thanks alot... the side buttons worked before, but I dont know what they did....now everything is proper.. thanks alot for this How to, makes me enjoy linux so much more

sinistar_ice
8th August 2005, 06:51 PM
saFFyre :

I just reinstalled FC3, first time was a test run i guess. Well anyway, now I'm having the same problem as you... but i think i figured it out. log in as root, then go to the "mouse.sh" file, right click and hit properties. Make sure all users have permissions to execute the file!


Yep added the execute permission to mouse.sh and job a goodun...

robman
25th March 2006, 04:34 AM
What I had to do in FC5 for an MS Explorer 2.0

In /etc/X11/xorg.conf under

Section "InputDevice"

change

Option "Protocol" "IMPS/2"

to

Option "Protocol" "ExplorerPS/2"

and in /etc/X11/xinit/xinitrc.d/mouse.sh:

#!/bin/sh
# /etc/X11/xinit/xinitrc.d/mouse.sh
# Required for the configuration of a 5-button mouse
xmodmap -e "pointer = 1 2 3 4 5 8 9 6 7"