Configuring a 5 Button Intellimouse to work in FC
Configuring an advanced input device like this Intellimouse with 5 buttons can be tricky. While this method was tested on Fedora Core 4 it should work on other versions of Fedora Core and could also be modified for other Linux distributions.
Requirements
- 5-Button Intellimouse
- Fedora Core
Doing the work
- Open a terminal.
- Switch to the super user account.
[sglaser@compaqlaptop ~]$ su --login
- Change directory to the X11 directory.
[root@compaqlaptop ~]# cd /etc/X11/
- Create a backup of the xorg.conf file.
[root@compaqlaptop X11]# cp -rp xorg.conf xorg.conf.pre.5buttonmouse
- Open the xorg.conf file in you favorite editor and make the following changes to the section "InputDevice"
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection - Change to the directory /etc/X11/xinit/xinitrc.d/
[root@compaqlaptop X11]# cd /etc/X11/xinit/xinitrc.d/
- Using your favorite editor create a file in this directory named mouse.sh with the following information and save 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" - Now that file needs to be made executable.
[root@compaqlaptop xinitrc.d]# chmod +x mouse.sh
- The next step is pretty easy log out of you session and at the login screen press CTRL+BACKSPACE this combination will restart the x-server. If this does not make the mouse function properly a reboot may be required.

