PDA

View Full Version : Cyber Snipa 6-button mouse trouble


andycon
2007-04-11, 08:19 PM CDT
Hello,
my optical mouse recently broke, so I decided to go ahead and buy a 6-button laser mouse made by Cyber Snipa. Of course, the thing comes with a driver and setup CD. Of course, it's Windows only. I believe my attempts to adapt a tutorial for a 5-button mouse to my setup caused a problem which now causes the X server to crash me back out to the login screen when I try to run wine. Does anyone know if FC6 x64 can deal with a 6-button mouse? Any help on setting this up would be most appreciated. Even simply helping me fix the current problem with some of the buttons on the mouse working incorrectly would be great. :confused:

Here's my xorg.conf:

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib64/xorg/modules"
EndSection

Section "Module"
Load "glx"
Load "extmod"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
# Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Monitor"

### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "Monitor 1440x900"
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 70.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "HWCursor" "false"
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1440x900" "1400x1050" "1280x1024" "1280x960" "1280x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

If anything else is required for diagnostics let me know.

1221
2007-04-11, 09:12 PM CDT
I'm not sure but have you tried ChangingSection "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
# Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
EndSection

to Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
# Option "Buttons" "8"
Option "ZAxisMapping" "4 5"
EndSection




Maybe the buttons should be 8.

stevea
2007-04-11, 10:59 PM CDT
Yeah I think it can - I see 7button setups via google.

Do count the wheel-button. If the num is still 6 then .... try
Option "Buttons" "6"
Option "ZAxisMapping" "5 6"

--
No offense to 1221 - but changing a commant will not change the behaviour.

andycon
2007-04-12, 05:20 AM CDT
Ok, so I've managed to at least fix the part about the regular buttons not working properly (click, right-click, and the scrollwheel). Thing is, I'm not sure exactly what the default command even is for the side buttons. There are 2 left side buttons and one right side button. The right side button seems to be a "Home" button in Firefox, and brings me to my home page. I can't figure out the 2 left button functions yet, though. Does anyone know if there is a way to test that they're working, and possibly even to program what they do???

1221
2007-04-12, 11:55 AM CDT
Yeah I think it can - I see 7button setups via google.

Do count the wheel-button. If the num is still 6 then .... try


--
No offense to 1221 - but changing a commant will not change the behaviour.



Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "Buttons" "8"
Option "ZAxisMapping" "7 8"
EndSection

check
http://ubuntuforums.org/archive/index.php/t-28374.html

andycon
2007-04-17, 12:36 PM CDT
As of 5 minutes ago, I believe I have solved the problem. It involves using evdev, and it ended up being very simple. Here's what my mouse section of xorg.conf looks like now:

Section "InputDevice"
Identifier "Mouse[0]"
Driver "evdev"
Option "Device" "/dev/input/event3"
Option "Name" "Cyber Snipa Cyber Snipa LASER Gamer Mouse"
EndSection

To see which "Device" your mouse is, use the following command and sort through the output to find the mouse in the list, and it will have an event associated with it (event0, event1, event2, etc.):

cat /proc/bus/input/devices

Here's the website I found the solution at, with a more detailed explanation of this whole dealie: http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Mouse+Buttons