Making the Cyborg RAT 7 Albino Work with Ubuntu

The Cyborg R.A.T. 7 Albino (my review here) is the white version of the Cyborg R.A.T.7 Gaming Mouse for PC and MACand identical in every way – including the unresponsive buttons experienced shortly after log in.

Do not despair! This issue is easily resolved, and the Albino functions perfectly after adding a new section to /etc/X11/xorg.conf.


First, of all, the Cyborg R.A.T. 7 Albino works great with Ubuntu (tested on Ubuntu 10.10 64-bit) even though only PC and Mac compatibility are advertised. However, if you plug in the mouse without modifying xorg.conf, the buttons become unresponsive and the Ubuntu desktop will appear to have locked up even though the cursor still moves. This is the same issue with the black R.A.T. 7, and it has the same solution.

You cannot simply replace the black RAT 7 with the Albino and expect it to work. The Albino buttons lock up because, in the eyes of X, the Albino is a completely different mouse. It needs its own entry in xorg.conf, so let’s add that now.

Open /etc/X11/xorg.conf and add the following section:

Section "InputClass"
 Identifier "Mouse Remap"
 MatchProduct "Saitek Cyborg R.A.T.7 Albino"
 MatchDevicePath "/dev/input/event*"
 Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 0 0 0 0 0 0"
EndSection

Update: The R.A.T. series of mice are now sold under the Mad Catz label, not Cyborg. Because of this, the Mad Catz product string might need modification to make the RAT work in Ubuntu. This means changing the Cyborg portion of the identification string (used to identify the USB device) to the string the Mad Catz RAT sends to the computer in order for X to recognize the RAT without freezing the buttons. Instead of using the string ,

MatchProduct "Saitek Cyborg R.A.T.7 Albino"

the Mad Catz might use something else (not tested). Product strings much match to avoid the button freeze issue.

 

(If xorg.conf does not exist, create it by entering sudo touch /etc/X11/xorg.conf in a terminal. Copy and paste the above lines into the blank file. sudo gedit /etc/X11/xorg.conf)

Reboot or restart X, and the Albino will work perfectly without any buttons becoming unresponsive. (The thumbwheel and red side button are not functional, but that is fine.) If you use the black RAT 7 also, then keep that entry in xorg.conf. There is no need to delete it. Both entries may coexist. In fact, you can copy and paste both entries for both rats together:

Section "InputClass"
 Identifier "Mouse Remap"
 MatchProduct "Saitek Cyborg R.A.T.7 Mouse"
 MatchDevicePath "/dev/input/event*"
 Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 0 0 0 0 0 0"
EndSection

Section "InputClass"
 Identifier "Mouse Remap"
 MatchProduct "Saitek Cyborg R.A.T.7 Albino"
 MatchDevicePath "/dev/input/event*"
 Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 0 0 0 0 0 0"
EndSection

If you notice, the only difference between the two sections is the MatchProduct string. (This was discovered by analyzing /var/log/Xorg.0.log to see what X was registering upon startup.) The thumbwheel and the red side button do not function, which is fine with me since I prefer a high-quality basic mouse to gimmicks.

Another Method

Is xorg.conf missing on your system? A reader shared another X configuration that also fixes the R.A.T. 7 issues and enables the extra red button and the thumbwheel, which is useful for adjusting horizontal sliders.

Here are the instructions given:

1.- Open a terminal (Applications-Accesories-Terminal)

2.- cd /usr/share/X11/xorg.conf.d/

* If the carpet xorg.conf.d not exist, then create it.

3.- sudo mkdir xorg.conf.d

4.- Now, you must create a file named 910-rat.conf

5.- sudo gedit 910-rat.conf

* … and add this text

# Cyborg Mouse R.A.T. 7 in Ubuntu 10.10 (Extra Buttons)
Section “InputClass”
Identifier “R.A.T.”
MatchProduct “R.A.T.7|R.A.T.9″
MatchDevicePath “/dev/input/event*”
Option “Buttons” “17″
Option “ButtonMapping” “1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17″
Option “AutoReleaseButtons” “13 14 15″
Option “ZAxisMapping” “4 5 6 7″
EndSection

6.- Save and reboot

The R.A.T.7 Albino will function properly and the red side button and thumbwheel will also work. You can test these new buttons by going to System > Preferences > Mouse and double-clicking the light bulb icon with the red button. You should see the image respond. Test the thumbwheel by hovering the mouse cursor over any horizontal slider and moving the thumbwheel to it. However, the thumbwheel seems to increment in large steps. This is not a fault of the configuration, but rather, the “feel” of the thumbwheel stepping on the mouse itself. Not sure how to resolve this at the moment, but at least it works.

Advertisements

, , ,

  1. #1 by Tuxkernel on April 30, 2012 - 1:00 AM

    This metod not work. xorg.conf in /etc/X11/ not exist. If you want use you Cyborg Mouse R.A.T 7 In Ubuntu 10.10 (32 or 64 Bits), follow this:

    1.- Open a terminal (Applications-Accesories-Terminal)

    2.- cd /usr/share/X11/xorg.conf.d/

    * If the carpet xorg.conf.d not exist, then create it.

    3.- sudo mkdir xorg.conf.d

    4.- Now, you must create a file named 910-rat.conf

    5.- sudo gedit 910-rat.conf

    * … and add this text

    # Cyborg Mouse R.A.T. 7 in Ubuntu 10.10 (Extra Buttons)

    Section “InputClass”
    Identifier “R.A.T.”
    MatchProduct “R.A.T.7|R.A.T.9”
    MatchDevicePath “/dev/input/event*”
    Option “Buttons” “17”
    Option “ButtonMapping” “1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17”
    Option “AutoReleaseButtons” “13 14 15”
    Option “ZAxisMapping” “4 5 6 7”
    EndSection

    6.- Save and reboot

    That’s all … Happy hacking!

    Tuxkernel

    • #2 by delightlylinux on April 30, 2012 - 1:22 PM

      Thanks for the tip. This indeed works in Ubuntu 10.10. It is more succinct and enables the red side button and the thumbwheel, which is useful for adjusting horizontal sliders.

      If xorg.conf is missing, then the previous method will not work until xorg.conf is created either manually or by the video driver installation. (If xorg.conf is missing there is no way to edit it.) I have sometimes encountered the issue where xorg.conf was missing in some Ubuntu installations, but after manually creating it using sudo gedit /etc/X11/xorg.conf, adding the sections, saving, and restarting, the Albino worked.

      The section you have provided is a good one since it enables the extra buttons and the MatchProduct accommodates for the R.A.T. 9 as well. As you pointed out, not everyone may have /etc/X11/xorg.conf, so this method you shared is helpful. Thanks.

    • #3 by delightlylinux on April 30, 2012 - 1:58 PM

      This is a good section. How did you discover it? Was it through self-experimentation or by consulting an online resource?

      I devised the xorg.conf method through trial and error and by analyzing log files, but it could be better. If you have an online resource, would you mind sharing a link to it?

  2. #4 by Robert on May 16, 2012 - 6:04 PM

    10 karma points to you, Tuxkernel!
    Awesome to finally have my RAT 7 (yeah, works for that, too) running in Ubuntu 12.04
    Thanks a lot

  1. The Cyborg R.A.T. 7 Albino Gaming Mouse « Delightly Linux
  2. Recovering from a Failed AMD Catalyst 12.6 on the Acer Aspire One 722 « Delightly Linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: