You are not logged in.

#1 2011-03-23 09:54:31

sylar_5
Member
Registered: 2011-02-07
Posts: 4

[solved] xboxdrv - device detected as Mouse

Hello,

I'm having the problem that my laptop detects the device created by xboxdrv as a (somehow buggy) mouse.
I've tried all woraround for that mentioned at http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html (except disabling the xorg auto detection)

Is there any way I can force xorg (or whatever service is making troubles) to detect the device as a Joystick?



the temporary hal workaround gave no errors, but it was no solution.
about the permanent hal workaround I don't know whether it had errors or not, but it didn't work.

Here the output I had when trying the xinput workaround (don't know what to do here):

$ xinput list                                                   

⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                  id=12    [slave  pointer  (2)]
⎜   ↳ Xbox Gamepad (userspace driver)             id=13    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
    ↳ Power Button                                id=6    [slave  keyboard (3)]
    ↳ Video Bus                                   id=7    [slave  keyboard (3)]
    ↳ Power Button                                id=8    [slave  keyboard (3)]
    ↳ Sleep Button                                id=9    [slave  keyboard (3)]
    ↳ CNF8140                                     id=10    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard                id=11    [slave  keyboard (3)]
    ↳ Xbox Gamepad (userspace driver) (keys)      id=14    [slave  keyboard (3)]

$ xinput set-int-prop 13 'Device Enabled' 32 0     

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  144 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Value in failed request:  0x79
  Serial number of failed request:  18
  Current serial number in output stream:  19

Last edited by sylar_5 (2011-04-25 19:22:13)

Offline

#2 2011-04-23 15:57:08

Ronin-Sage
Member
Registered: 2008-10-24
Posts: 153
Website

Re: [solved] xboxdrv - device detected as Mouse

I don't think this is an xboxdrv-specific issue. There have been a number of reports of *any* joystick being detected as a mouse in Linux as of late.

I was experiencing these issues:
- X crashed whenever gamepad was unplugged
- Gamepad recognized as 'mouse'(dpad moved cursor; some of the buttons were interpreted as mouse clicks)

Editing /etc/x11/xorg.conf.d/50-joystick.conf to use the 'evdev' driver(instead of 'joystick') fixed the former, but I was still getting pointer issues.

In the end, what fixed it was uninstalling xf86-input-joystick(and not even bothering with the .conf file).

(In my case, I'm running 2.6.38 and was using a Microsoft Sidewinder USB gamepad)

Last edited by Ronin-Sage (2011-04-23 16:04:12)

Offline

#3 2011-04-25 19:20:50

sylar_5
Member
Registered: 2011-02-07
Posts: 4

Re: [solved] xboxdrv - device detected as Mouse

Thank you, this helped.

Offline

Board footer

Powered by FluxBB