Bug 31044 - Conflict between joystick (Saitek X52) and mouse (Logitech MX)
Summary: Conflict between joystick (Saitek X52) and mouse (Logitech MX)
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/evdev (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 02:50 UTC by Cesare Tirabassi
Modified: 2010-10-26 14:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Cesare Tirabassi 2010-10-22 02:50:33 UTC
I have a conflict under X between my joystick (Saitek X52) and my mouse
(Logitech MX).
What happens is that both are apparently configured as mouses by evdev,
with priority given to the joystick, with the result that both are
unusable (basically, the joystick moves the cursor, and the mouse
buttons act as, well, mouse buttons).
Additional info are given in the bug I originally filed downstream here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582031
Comment 1 Peter Hutterer 2010-10-24 15:43:26 UTC
so the mouse doesn't work at all when you move it? do you see any output from evtest from this device?

The joystick is picked up by evdev but that is a result of your local/distro-specific configuration. you need to modify the xorg.conf.d snippets that the device is picked up by the joystick driver (or simply ignored). 

also, fwiw, there is no priority between input devices. it's a simple list, having the joystick appear first or last has no effect.
Comment 2 Cesare Tirabassi 2010-10-25 07:16:13 UTC
>so the mouse doesn't work at all when you move it?

Both devices (mouse and joystick) are working, but it seems that the joystick works as an absolute pointing device while the mouse as a relative one. The end result is that if I try to move the mouse the pointer position is immediately resets to the initial position (since that is what it gets from the joystick).
The problem could simply be solved if there was a simple way i could change
the way the joystick is being used (from absolute to relative).

>The joystick is picked up by evdev but that is a result of your
>local/distro-specific configuration. you need to modify the xorg.conf.d
>snippets that the device is picked up by the joystick driver (or simply
>ignored). 

To tell you the truth my workaround solution was more drastic. As I mention in the original bug report it is possible that what I'm seeing can be worked around at evdev level by a simple rule. Any pointer (pun intended) I could be given in this regard is appreciated.
Comment 3 Peter Hutterer 2010-10-25 13:12:34 UTC
(In reply to comment #2)
> Both devices (mouse and joystick) are working, but it seems that the joystick
> works as an absolute pointing device while the mouse as a relative one. The end
> result is that if I try to move the mouse the pointer position is immediately
> resets to the initial position (since that is what it gets from the joystick).
> The problem could simply be solved if there was a simple way i could change
> the way the joystick is being used (from absolute to relative).

xinput set-mode "<device name>" RELATIVE
should do the job. though that's runtime only.

as for a permanent configuration: have a look at
http://fedoraproject.org/wiki/Input_device_configuration
I guess the best thing for you is to have a section with Option "Ignore" "on" that matches on the device name.
If you want to use the joystick under X you need to either hook the joystick driver up to it or add Option "SendCoreEvents" "off". the latter sets the device floating and it then doesn't move the system cursor.
Comment 4 Cesare Tirabassi 2010-10-26 13:17:49 UTC
Yep, thanks, these will do.
Comment 5 Peter Hutterer 2010-10-26 14:50:11 UTC
closing as NOTABUG, problem was in configuration setup.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.