You are not logged in.

#1 2008-08-27 20:47:38

korkadapa
Member
Registered: 2008-08-27
Posts: 32

Xbox 360 gamepad is controlling the mouse!?

Hi everyone, scince the last kernel upgrade it seems like there is support for xbox 360 gamepads out of the box. I thought that I could just start playing games with my psx emulator but that was not the case. Once i connected the controller (I have the wireless one) it started to controll my mouse with one of the analog sticks. This might be a good thing for people who want to use their gamepads as a mouse but i'm guessing most people don't want that tongue Anyways, any idea how to turn this shit off?


My xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder57)  Thu Jul 17 18:40:12 PDT 2008

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder57)  Thu Jul 17 18:39:19 PDT 2008

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/lib/X11/rgb"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "CoreKeyboard"
    Option         "XkbRules"   "xorg"
    Option         "XkbModel"   "pc105"
    Option         "XkbLayout"  "se"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "SAMSUNG"
    HorizSync       15.0 - 46.0
    VertRefresh     49.0 - 61.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP-1: 1280x720 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

And my /proc/bus/input/devices:

[simon@Arch ~]$ cat /proc/bus/input/devices
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/class/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=40001
B: SND=6

I: Bus=0003 Vendor=045e Product=0719 Version=0100
N: Name="Xbox 360 Wireless Receiver"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=mouse1 event5 js0
B: EV=b
B: KEY=78db0000 430003 0 0 0 0 0 0 0 0
B: ABS=3f

I: Bus=0003 Vendor=045e Product=0719 Version=0100
N: Name="Xbox 360 Wireless Receiver"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/class/input/input6
U: Uniq=
H: Handlers=mouse2 event6 js1
B: EV=b
B: KEY=78db0000 430003 0 0 0 0 0 0 0 0
B: ABS=3f

I: Bus=0003 Vendor=045e Product=0719 Version=0100
N: Name="Xbox 360 Wireless Receiver"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/class/input/input7
U: Uniq=
H: Handlers=mouse3 event7 js2
B: EV=b
B: KEY=78db0000 430003 0 0 0 0 0 0 0 0
B: ABS=3f

I: Bus=0003 Vendor=045e Product=0719 Version=0100
N: Name="Xbox 360 Wireless Receiver"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/class/input/input8
U: Uniq=
H: Handlers=mouse4 event8 js3
B: EV=b
B: KEY=78db0000 430003 0 0 0 0 0 0 0 0
B: ABS=3f

I: Bus=0003 Vendor=046d Product=c041 Version=0111
N: Name="Logitech USB Gaming Mouse"
P: Phys=usb-0000:00:1d.1-2/input0
S: Sysfs=/class/input/input9
U: Uniq=
H: Handlers=mouse5 event9
B: EV=17
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
B: MSC=10

Thanks in advance and sorry for bad english, i'm from sweden smile

Offline

#2 2008-09-04 15:50:38

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: Xbox 360 gamepad is controlling the mouse!?

I'd actually like to get my controller to control my mouse along with the clicking. How did you even manage to do it without joy2pad?

Offline

#3 2008-11-17 22:30:49

DePingus
Member
From: Miami, Fl
Registered: 2008-09-07
Posts: 43

Re: Xbox 360 gamepad is controlling the mouse!?

I'm getting the same thing. Did you ever resolve this? I'm also using the wireless controller.
Also, how do I keep the green guide button from constantly blinking? And, how do you turn off the controller?
Thanks for the info!

And in case anyone cares, it works great with Cave Story. Just plug and play, no setup needed. Haven't tried it with anything else yet.

EDIT:
Found the answer to my own questions at...
http://www.gentoo-wiki.info/HOWTO_Xbox_ … controller
No info on the mouse thing tho.

Last edited by DePingus (2008-11-18 00:27:23)

Offline

#4 2008-11-23 19:51:37

korkadapa
Member
Registered: 2008-08-27
Posts: 32

Re: Xbox 360 gamepad is controlling the mouse!?

DePingus wrote:

I'm getting the same thing. Did you ever resolve this? I'm also using the wireless controller.
Also, how do I keep the green guide button from constantly blinking? And, how do you turn off the controller?
Thanks for the info!

And in case anyone cares, it works great with Cave Story. Just plug and play, no setup needed. Haven't tried it with anything else yet.

EDIT:
Found the answer to my own questions at...
http://www.gentoo-wiki.info/HOWTO_Xbox_ … controller
No info on the mouse thing tho.

Nope, haven't found any solution yet but I would love to do so! Dmesg gives:

usb 4-2: new full speed USB device using uhci_hcd and address 2
usb 4-2: configuration #1 chosen from 1 choice
input: Xbox 360 Wireless Receiver as /class/input/input6
input: Xbox 360 Wireless Receiver as /class/input/input7
input: Xbox 360 Wireless Receiver as /class/input/input8
input: Xbox 360 Wireless Receiver as /class/input/input9
usbcore: registered new interface driver xpad
xpad: X-Box pad driver

If there is anything else needed to help me, i'll get it. smile

Edit:
Got it working now, use this: http://wiki.archlinux.org/index.php/Get … ns_Working guide and then it works big_smile

Last edited by korkadapa (2008-11-23 20:44:07)

Offline

#5 2011-12-17 13:21:22

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 146

Re: Xbox 360 gamepad is controlling the mouse!?

necroposting, but it's relevant.

had the same problem. Simply uninstalled package xf86-input-joystick and it doesn't act anymore as mouse. Don't know if this is bad and something eventually won't work.... using qjoypad right now and everything's ok

Offline

#6 2011-12-17 21:34:43

spookyln
Member
From: Czech Rep
Registered: 2009-02-10
Posts: 38

Re: Xbox 360 gamepad is controlling the mouse!?

and what about "SendCoreEvents" in 50-joystick.conf ?
sry its Floating now.

Input device section. "man xorg.conf"

Offline

#7 2011-12-18 04:39:02

mike4ca
Member
Registered: 2011-12-18
Posts: 8

Re: Xbox 360 gamepad is controlling the mouse!?

Another option is to add

Option "StartKeysEnabled" "False"
Option "StartMouseEnabled" "False"

to /etc/X11/xorg.conf.d/50-joystick.conf

Offline

#8 2012-01-04 22:47:58

stillborn
Member
Registered: 2012-01-04
Posts: 3

Re: Xbox 360 gamepad is controlling the mouse!?

i have the same problem with a ps3 controller clone...
it works but the arrow keys and the stick controlls my mouse (annoying at playing games)

mike4ca wrote:

Another option is to add

Option "StartKeysEnabled" "False"
Option "StartMouseEnabled" "False"

to /etc/X11/xorg.conf.d/50-joystick.conf

tried but nothing happened
what is your "50-joystick.conf" look like?

Offline

Board footer

Powered by FluxBB