Cyborg RAT 3游戏鼠标在一段时间后停止工作和/或行为不端

我今天买的新RAT 3游戏鼠标遇到了一些问题。 它在Windows 7下完美运行,但在Ubuntu 11.10下它仍然行为不端。

这是怎么回事:

  1. 我将鼠标连接到USB端口。 鼠标按预期工作了一段时间。
  2. 鼠标开始行为不端:我仍然可以移动指针,但它不会对点击任何按钮(至少不是右,左,中,浏览器前进或浏览器后退……)做出反应。 此外, 我的触控板开始以相同的方式运行 – 移动工作,但没有点击。
  3. 我断开了鼠标。 触控板再次开始工作。
  4. 我重新连接鼠标。 在崩溃之前它会工作一段时间(就像我第一次连接它时一样)。

我没有在任何地方手动更改任何设置,我注意到即使鼠标行为不当,它也会显示在cat /proc/bus/input/devices并显示以下信息:

 I: Bus=0003 Vendor=06a3 Product=0ccc Version=0111 N: Name="Saitek Cyborg RAT 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 

我已经google了一下,找到了这个论坛的post ,但我发现它很乱,目前还不清楚是否真的有任何解决方案来解决我的问题。 另外,在不知道我在做什么的情况下编辑Xconf我感到很不舒服 – 我在Ubuntu上很新,所以我不知道我在做什么……最后,产品网站似乎没有Ubuntu的任何驱动程序,我发现没有可通过标准来源获得的更新。

(据我所知)这个特定鼠标在Linux上行为不端的原因是因为模式按钮。 在按键操作方面,每种模式对应于按下的不同按钮。 对于我的鼠标(RAT7),模式按钮分别为13,14和15,分别为红色,蓝色和紫色。

我不知道你的是否会一样,但有一个很好的方法来解决它。 打开终端并输入:

 xinput list | grep "id" 

找到具有相应标签的条目(对我而言,它是“Saitek Cyborg RAT7鼠标”),并在右侧注明ID。 然后,键入:

 xinput query-state ID 

(其中ID对应于鼠标的ID)

请注意当前处于活动状态的模式颜色,将其切换到下一个模式颜色,然后重新键入上述命令。 再来一次。

现在您知道哪些按钮对应于模式,您应该能够适当地编辑xorg.conf文件。 类型:

 gksu gedit /etc/X11/xorg.conf 

(显然你可以使用不同的文本编辑器,如果你觉得它更舒服。如果你使用命令行文本编辑器,使用sudo而不是gksu 。)

您将要插入与此类似的块:

 Section "InputClass" Identifier "Mouse Remap" MatchProduct "Saitek Cyborg RAT7 Mouse" MatchDevicePath "/dev/input/event*" Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 11 12 0 0 0" EndSection 

重要的是“ButtonMapping”部分。 只需按顺序浏览按钮列表,直到找到与模式对应的按钮,然后输入0。

您必须重新启动X服务器才能使更改生效,但这应该可以解决它!

将其添加到xorg.conf

 Section "InputClass" Identifier "Mouse Remap" MatchProduct "Saitek Cyborg RAT3 Mouse" MatchDevicePath "/dev/input/event*" Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 11 12 13 14" EndSection 

我于2013年12月30日在荷兰买了鼠标

RAT3

在Ubuntu 13.04 && 13.10上测试过

我使用了以下设置:

 // Command gksudo gedit /etc/X11/xorg.conf Section "InputClass" Identifier "Mouse Remap" MatchProduct "Madcatz Mad Catz RAT3 Mouse" MatchDevicePath "/dev/input/event*" Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 0 0 0 0 0 0 0 0 0" EndSection 

我不确定,但我认为你需要从’0’开始,其中“button [int] = down”所以在我的情况下,10已关闭,更新后它已经启动了。

“button [int] = down”与以下内容相关:

 xinput query-state 'int' 

‘int’是可以使用以下命令找到的鼠标的ID:

 xinput list | grep "id" 

有时欧洲需要其他硬件配置,因此最好只检查一次。

如果有效或无效,您会如此善意地通知您吗?

如果使用unity,请使用以下命令重新启动x-server:

 sudo restart lightdm 

否则,如果你使用Gnome 3

 sudo service gdm3 restart 

对于我使用RAT 3,我用过:

 Section "InputClass" Identifier "Mouse Remap" MatchProduct "Madcatz Mad Catz RAT3 Mouse" MatchDevicePath "/dev/input/event*" Option "ButtonMapping" "1 2 3 4 5 6 7 8 0 0 0 0 0 0 0 0 0 0 0" EndSection 

在Ubuntu / Mint等中真正有用的是:

首先输入命令以找出您拥有的产品:

 xinput -list 

一旦你发现你有什么鼠标:

 sudo gedit /etc/X11/xorg.conf 

对我来说,我有Madcatz Mad Catz RAT3; 输入:

 Section "InputClass" Identifiers "Mouse Remap" MatchProduct "Madcatz Mad Catz RAT3 Mouse" MatchDevicePath "/dev/input/event*" Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 0 0 0 0 0" EndSection 

适用于Madcatz Saitek Cyborg RAT3; 输入:

 Section "InputClass" Identifier "Mouse Remap" MatchProduct "Saitek Cyborg RAT3 Mouse" MatchDevicePath "/dev/input/event*" Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 0 0 0 13 14" EndSection 

键入和SAVED后,确保重新启动计算机!

或者,如果你使用ubuntu,你只需输入:sudo restart lightdm

实际上,所有提供的解决方案都意味着您的水平轮可能无法正常工作。 我发现以下解决方案有效。 使用以下内容创建文件/etc/X11/xorg.conf.d/20-cyborgrat.conf

 Section "InputClass" Identifier "Mouse Remap" MatchProduct "Saitek Cyborg RAT3 Mouse|Saitek Cyborg RAT5 Mouse|Saitek Cyborg RAT7 Mouse|Saitek Cyborg RAT9 Mouse" 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 

我将它与Saitek Cyborg RAT7鼠标一起使用,并validation了以下function:

  • 鼠标左键和右键(按钮1/3)
  • 按下鼠标中键的垂直鼠标滚轮(按钮2)。
  • 垂直鼠标滚轮垂直滚动(按钮4/5)。
  • 水平鼠标滚轮水平滚动(按钮6/7)。
  • 前进/后退按钮(按钮8/9)。
  • 红色按钮(按钮12)。
  • 速度按钮(按钮16/17)。

颜色切换按钮不适用于此配置。