How to Fix Saitek Cyborg RAT Series Mice in Ubuntu

Feb 20, 2011 by

Recently I made the move from Windows to Linux, but I noticed a problem with my mouse. It would only focus on one window at a time, unless I pressed the mode button every 2 seconds. This annoyed me to no end, so I set out to fix it. Here is the method:

Basically, the problem is caused by Xorg only letting the mouse focus on one window at a time, because of malfunctioning buttons. All we are going to do is disable these buttons.

1.Open terminal, and login in as root

Then, type this:

xinput –list

2.Look at the output and look for your mouse, and have a look at the id to the right of it. Then enter this command:

xinput watch-props

and search for all the buttons tagged as “Button Unknown”.

3.Create a file named “Xmodmap” in etc/X11 by typing this command:

nano /etc/X11/Xmodmap

next, take the numbers of the buttons that weren’t working and write them down. For example, usually the first 12 buttons work, and the other 6 don’t.

So into the Xmodmap file, type:

pointer = 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0 0 0 0

4. Save this file and log out and in and your mouse should be working correctly.

Related Posts


Share This

  • Timo F

    Saved my day! In case of R.A.T. 9 there were actually 12 buttons working and 9 unknowns, so Xmodmap contents became:
     pointer = 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0 0 0 0 0 0 0

    • This fix also worked for me. I share Timo F’s outcome.

  • Kurts_alive

     I’m new to Linux an i can’t get the Xmodmap File to save
    It gives me something like “file or directory does not exist”
    I’m using ubuntu 11.10 and I got an RAT 5
    Please help me

    • Roberto

       first, make sure you are having admin rights (happens when you use “sudo su”) then, “nano /etc/X11/Xmodmap” will open the file we will modify. Add “pointer = 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0 0 0 0” at the end, and do the following combination : ctrl+x and confirm that you want to save.

      This is the detailed version of what this article tells you to do, hope it’ll be helpful.

  • Erick

    Thank you so much!

  • d4rk0wl

    Fixed a problem I have been fighting for the last couple of hours. Thank you very very much

  • sasukeskapa

    For me only this method worked, but this worked:

    “Cyborg RAT 7 mouse Linux Setup:
    Hi everyone … I dont know if i could help you, but i have also a Rat 7 on my Kubuntu 12.04.
    But post my Solution here. Perhaps someone could use it:

    First run this code:
    xinput -list
    Search for your mouse’s name:
    (My is “Mad Catz Mad Catz R.A.T.7 Mouse” ,but can be other like: “Saitek Cyborg R.A.T.7 Mouse”)

    Paste the following to your /etc/X11/xorg.conf:
    (sudo nano /etc/X11/xorg.conf) for example
    BUT!!! Change the 
    MatchProduct     “Mad Catz Mad Catz R.A.T.7 Mouse”
    line to match your mouse’s name :)

    Section “InputClass”
        Identifier       “Mouse Remap”
        MatchDevicePath  “/dev/input/event*”
        MatchProduct     “Mad Catz Mad Catz R.A.T.7 Mouse”
        Option           “AutoReleaseButtons”    “13 14 15”
        Option           “Buttons”     “17”
        Option           “YAxisMapping”      “10 11”
        Option           “ZAxisMapping”     “4 5 6 7”
        Option           “Emulate3Buttons”  “no”
        Option           “Resolution”   “3200”
        Option           “ButtonMapping”   “1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17″

    Restart and it works :)”

    • Ira

      It is also works for my R.A.T 5 , thank you!

    • Maciej Długosz

      Thank You very much. It works for R.A.T. 5!

    • Moisés Martínez

      It also works for my R.A.T.5. Much thanks!

  • DZCreeper

    Works fine based on the fact that I used my Rat 5 to switch to Google Chrome from Steam, and its still working. Just a PSA, the number of zero’s on the end seems to relate to the number of unidentified buttons. Therefore the Rat 5 requires 6 zero’s, the Rat 3 needs 3. Threw me off at first, another guide I found suggested only 3 would work for the Rat 5.

  • Red

    Not gonna’ lie, this article helped me to no end, but would you please not (since I had to figure this out myself) that European versions of the R.A.T.5 are not known as the Saitek Cyborg and instead need to be listed in the file as Mad Catz Mad Catz.
    I know, it’s kind of annoying, but Ubuntu actually reads it as that, and the only results google brings up are results relating to the Cyborg. Although the same mouse, that little line of text makes all the difference.

  • seb

    Thanks! For my part I needed to set “pointer=135 136 137 138 139 140 141 280 281 282 283 284 0 0 0 0 0 0 0 0 0” . According to the xinput watch-props command.

    It was hard…

  • Examplex

    Thanks a lot .. worked for my Mad Catz R.A.T 9
    Tip – If u cant save your file make sure that the Spelling is right u also have to take care of big and small letters

  • Frank

    You rock! My mouse was working and I almost ditched linux because of at (after all its a ~$70 mouse) thank you so much!

  • Jazz

    This works! Thanks!