Comment 16 for bug 277915

Revision history for this message
Philip Kovac (pkovac) wrote : Re: [Bug 277915] Re: XBox 360 Controller Automatically becomes mouse in Xorg

I wrote a quick little one-liner you could call at login, based off of the
bit Daniel posted (assuming you leave the controller plugged in.)
xinput set-int-prop `xinput list | grep "X-Box 360 pad" | perl -ne 'print
/id=(\d+)/'` 'Device Enabled' 32 0

Since you're using an XBox gamepad you may need to change grep's arguments.
I've not really looked for a "right way" to fix this, since in my current
use case I don't logout of X or unplug/replug the controller very often,
both of which require rerunning this. You could probably hack around a bit
and make it run as part of a udev event, on a guess, though I could very
easily be wrong.

On Mon, Jan 5, 2009 at 11:44 AM, Luke Clements <email address hidden>wrote:

> Good command to fix it, however is there any way to automatically read
> the ID and patch it, say in a launcher script for games, or at
> startup... I can confirm this fix though for a wired Xbox (original)
> controller.
>
> --
> XBox 360 Controller Automatically becomes mouse in Xorg
> https://bugs.launchpad.net/bugs/277915
> You received this bug notification because you are a direct subscriber
> of the bug.
>