Cyborg RAT 7 and Ubuntu 13.04

I’ve recently bought a mouse like this and it doesn’t seem to work properly with Ubuntu! The x-server freezes after 1 click. So I thought I’d share this quick fix 🙂

You need to locate the following folder in your system:


Open a terminal (ctrl + alt + T) and enter “cd /user/share/X11/xorg.conf.d”

In this folder there should be a few configuration files, but disregard those. You will need to create your own configuration file for the RAT7 mouse as follows:

1) Create the file and open it with an editor to your choice. In my case VI. The number 910 is the priority of the configuration file. You might want to put that as the highest number to be sure 🙂

sudo vi 910-rat.conf

You can also use nano “sudo nano 910-rat.conf”

2) Paste the following lines in there

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"

3) Reboot

sudo reboot

This should fix the problem for you 🙂 Mind that the configuration file is in /usr/ and not in /etc/! This makes the x-server stop from starting.