Personal tools
You are here: Home Fedora Solved Peripheral Solutions Configuring a 5 Button Intellimouse to work in FC

Configuring a 5 Button Intellimouse to work in FC

by scott_glaser last modified Jan 30, 2008 03:44 AM
— filed under:

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

  1. Open a terminal.
  2. Switch to the super user account.
    [sglaser@compaqlaptop ~]$ su --login
  3. Change directory to the X11 directory.
    [root@compaqlaptop ~]# cd /etc/X11/
  4. Create a backup of the xorg.conf file.
      [root@compaqlaptop X11]# cp -rp xorg.conf xorg.conf.pre.5buttonmouse
  5. 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
  6. Change to the directory /etc/X11/xinit/xinitrc.d/
    [root@compaqlaptop X11]# cd /etc/X11/xinit/xinitrc.d/
  7. 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"
  8. Now that file needs to be made executable.
     [root@compaqlaptop xinitrc.d]# chmod +x mouse.sh
  9. 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.

More Information

Disclaimer

We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #fedora on irc.freenode.net

Document Actions
Log in


Forgot your password?
New user?