You are not logged in.

#1 2012-01-26 00:22:40

JDiPierro
Member
Registered: 2012-01-19
Posts: 10

[SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

SOLUTION: Uninstall xf86-input-joystick

I just installed the xboxdrv program from the AUR and I'm having a weird issue that it seems to be interfering with the mouse. When I launch the program and connect my controller if I touch the controller in the slightest the mouse instantly moves to the top of the screen and usually to the left. If I don't touch the controller I can move the mouse horizontally across the screen but I can't move it vertically. And if I move the joystick to the right a bit the mouse instantly moves to the left corner.

I "solved" the issue by remapping the entire device to emulate the keyboard with this:

xboxdrv --deadzone 4000 --dpad-as-button --ui-axismap "x1=KEY_LEFT:KEY_RIGHT,y1=KEY_UP:KEY_DOWN,trigger=void" --ui-buttonmap "a=KEY_A,b=KEY_B,x=KEY_X,y=KEY_Y,rb=KEY_S,lb=KEY_D," --ui-buttonmap "dl=KEY_LEFT,dr=KEY_RIGHT,du=KEY_UP,dd=KEY_DOWN," --ui-buttonmap "start=KEY_W,back=KEY_Q,guide=KEY_E,tl=void,tr=void"

but this is far from ideal. Is there any way to get this to function like it should?

And to clarify how it should function: On my last system (same machine with Ubuntu 10.10, just reformatted to Arch a few days ago) I let xboxdrv start up on boot as a daemon and I could leave the controller plugged in all the time it never interfered with anything, the buttons weren't tied to any keyboard buttons, and I could use it in Jamestown/snes9x no problem. When I mapped the buttons they showed up as joystick buttons. As I said above now I have to map them to keyboard buttons. I tried mapping them to BTN buttons but that didn't work. I had issues with that emulating mouseclicks and I'd get context-menus when I pushed certain buttons.

I really hope I can get this fixed. I know Linux isn't generally thought of as a gaming system but it is definitely capable of it and there are some great games in the Humble Bundles, and old games in Snes9x that I'd really like to use a controller with.

Thanks for any help you might be able to offer.

Last edited by JDiPierro (2012-01-27 17:42:28)

Offline

#2 2012-01-26 03:03:30

KingX
Member
From: CA
Registered: 2010-03-24
Posts: 324

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

I use xboxdrv also and it has never messed with my mouse. I have a wireless controller, I am not using the daemon for xboxdrv. I simply run "sudo xboxdrv --silent" and that takes care of controller while mouse and keyboard continue to function normally. Did you blacklist xpad module? Try running xboxdrv without the daemon.

Edit: BTW Linux is as good as any other platform for gaming, not sure where you got your info from. tongue

Last edited by KingX (2012-01-26 03:04:32)

Offline

#3 2012-01-26 06:27:56

JDiPierro
Member
Registered: 2012-01-19
Posts: 10

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

I don't know if DE could have any effect on it but I'm using XFCE4/XFWM4. Just running the command, like you said, is what I used to do in Ubuntu and everything worked perfectly; I really want to get back to that and not have to use a workaround like I am.

And I know it is tongue But in general most people don't think it is. Or are just coming around to the idea that it can be I guess.

Edit: I uninstalled the xboxdrv and I get the same issue; when I lsusb it is still recognizing the controller as a 360 controller and if I rmmod xpad it stops the problem. I blacklisted the xpad module and reinstalled xboxdrv and am still having the issue of the mouse going to the top-left and the buttons activating context menus.

Last edited by JDiPierro (2012-01-26 06:41:34)

Offline

#4 2012-01-26 07:05:07

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

Is xorg thinking that it's a mouse? If so, disabling input hotplugging might be another temporary solution.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2012-01-26 14:35:19

JDiPierro
Member
Registered: 2012-01-19
Posts: 10

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

ConnorBehan wrote:

Is xorg thinking that it's a mouse? If so, disabling input hotplugging might be another temporary solution.

I don't think so; When I run lsusb, even when I had xboxdrv uninstalled it was labeled as "Microsoft Corp. Xbox360 Controller". With xpad blacklisted when I plug the controller in nothing happens, when I turn on xboxdrv I still get the mouse weirdness.

Offline

#6 2012-01-26 20:16:01

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

What does /proc/bus/input/devices say?


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#7 2012-01-26 20:42:41

JDiPierro
Member
Registered: 2012-01-19
Posts: 10

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

When I don't have xboxdrv enabled nothing shows up for the gamepad, when I run sudo xboxdrv and cat that file in another terminal there's this:

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="Xbox Gamepad (userspace driver)"
P: Phys=
S: Sysfs=/devices/virtual/input/input15
U: Uniq=
H: Handlers=event8 js1 
B: PROP=0
B: EV=b
B: KEY=7cdb000000000000 0 0 0 0
B: ABS=3061b

When I modprobe xpad and check again I see this:

I: Bus=0003 Vendor=045e Product=028e Version=0114
N: Name="Microsoft X-Box 360 pad"
P: Phys=usb-0000:00:0b.0-7/input0
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-7/2-7:1.0/input/input21
U: Uniq=
H: Handlers=event9 js1 
B: PROP=0
B: EV=20000b
B: KEY=7cdb000000000000 0 0 0 0
B: ABS=3003f
B: FF=107030000 0

Strange side-note: My keyboard shows up twice; Is this normal?

I: Bus=0003 Vendor=045e Product=0750 Version=0111
N: Name="Microsoft Wired Keyboard 600"
P: Phys=usb-0000:00:0b.0-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0/input/input19
U: Uniq=
H: Handlers=kbd event1 
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=045e Product=0750 Version=0111
N: Name="Microsoft Wired Keyboard 600"
P: Phys=usb-0000:00:0b.0-3/input1
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.1/input/input20
U: Uniq=
H: Handlers=kbd event8 js0 
B: PROP=0
B: EV=10001f
B: KEY=4c37fff072ff32d bf54445600000000 c00000000000001 30f908b17c007 ffff7bfad951dfff febeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=ffffff01000701ff
B: MSC=10

Offline

#8 2012-01-27 03:40:43

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

A few threads, one about a USB gamepad and another about an Xbox controller, there were recommendations to remove xf86-input-joypad.  Maybe give that a try.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#9 2012-01-27 03:47:44

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

Yeah, one of them that I recall is this thread: https://bbs.archlinux.org/viewtopic.php?id=129160. It's probably because the gamepad is recognized as a "js1".


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#10 2012-01-27 17:42:41

JDiPierro
Member
Registered: 2012-01-19
Posts: 10

Re: [SOLVED] Xbox 360 gamepad causes mouse to lock to top-left of screen.

alphaniner wrote:

A few threads, one about a USB gamepad and another about an Xbox controller, there were recommendations to remove xf86-input-joypad.  Maybe give that a try.

That did it! Thanks a bunch! You guys rock.

Offline

Board footer

Powered by FluxBB