Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 19024  / 2 Years ago, fri, july 22, 2022, 4:25:17

I'm having some problems with a new R.A.T 3 gaming mouse that I bought today. It works flawlessly under Windows 7, but under Ubuntu 11.10 it keeps misbehaving.



What happens is this:




  1. I connect the mouse to a USB port. The mouse works as expected for a while.

  2. The mouse starts misbehaving: I can still move the pointer around, but it doesn't react to clicking any buttons (at least not right, left, middle, browser forward or browser back...). Furthermore, my trackpad starts behaving the same way - moving works, but no clicking.

  3. I disconnect the mouse. Trackpad starts working again.

  4. I re-connect the mouse. It works for a while, before collapsing (just as the first time I connected it).



I haven't manually changed any settings anywhere, and I've noticed that even when the mouse misbehaves, it shows up in cat /proc/bus/input/devices with the following information:



I: Bus=0003 Vendor=06a3 Product=0ccc Version=0111  
N: Name="Saitek Cyborg R.A.T 3 Mouse"
P: Phys=usb-0000:00:1d.0-1.4/input0
S: Sysfs=/devices/pci0000:00/00:1d.0/usb2/2-1.4/2-1.4:1.0/input/input18
U: Uniq=
H: Handlers=mouse0 event4
B: PROP=0
B: EV=17
B: KEY=3ff0000 0 0 0 0
B: REL=103
B: MSC=10


I've googled around a bit and found this forum post, but I find it quite messy and it is unclear whether there is actually any solution to my problem in it. Also, I feel uncomfortable editing Xconf without knowing what I'm doing - and I'm quite new on Ubuntu, so I don't know what I'm doing... Finally, the product web site doesn't appear to have any drivers for Ubuntu and I've found no updates available through the standard sources.


More From » mouse

 Answers
1

The reason (as I understand) that this particular mouse misbehaves on Linux is because of the mode button. In terms of key presses, each mode corresponds to a different button being held down. For my mouse (R.A.T.7) the mode buttons are 13, 14, and 15 for red, blue, and purple respectively.



I don't know if yours are going to be the same, but there's a nice and easy way to figure it out. Open a terminal and type:



xinput list | grep "id"


Find the entry that has the corresponding label (for me it's "Saitek Cyborg R.A.T.7 Mouse") and note the ID to the right. Then, type:



xinput query-state ID


(Where ID corresponds to the ID of your mouse)



Note which mode color is currently active, switch it to the next one, and retype the above command. Do that one more time.



Now that you know which buttons correspond to the modes, you should be able to edit your xorg.conf file appropriately. Type:



gksu gedit /etc/X11/xorg.conf


(Obviously you can use a different text editor if you feel more comfortable with one. If you use a command-line text editor, use sudo instead of gksu.)



You'll want to insert a block that's similar to this:



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 10 11 12 0 0 0"
EndSection


The important thing is the "ButtonMapping" part. Just go through the list of buttons sequentially until you get to the buttons that correspond to the modes and enter 0s instead.



You'll have to restart your X server for the changes to work, but this should fix it up!


[#41146] Sunday, July 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imonove

Total Points: 82
Total Questions: 113
Total Answers: 106

Location: Saint Vincent and the Grenadines
Member since Wed, Nov 3, 2021
3 Years ago
;