Page 1 of 17 12311 ... LastLast
Results 1 to 10 of 169

Thread: Getting a Xbox 360 WIRELESS controller to work in 7.10 Gutsy Gibbons 32bit edition

  1. #1
    Join Date
    May 2007
    Beans
    22

    Getting a Xbox 360 WIRELESS controller to work in 7.10 Gutsy Gibbons 32bit edition

    I have been following many threads and checking IRC for help in getting a xbox 360 wireless controller to work in the latest Ubuntu (7.10) 32bit edition. I am starting a new thread that more specific on the desired goal which should be a lot cleaner then many other threads that get hijacked. I have no intent and using a wired version, original xbox game pad, ps2 with usb adapter, as many others have suggested; for those solution don't help in the actual problem!

    I have found these two threads to be the most useful, but I still can't the wireless to work.
    http://gentoo-wiki.com/HOWTO_Xbox_36...oller_on_Linux
    http://ubuntuforums.org/showthread.php?t=404577

  2. #2
    Join Date
    Nov 2005
    Beans
    13

    Re: Getting a Xbox 360 WIRELESS controller to work in 7.10 Gutsy Gibbons 32bit editio

    AFAIK, the wireless support is still experimental...

    However, the xpad module file goes to diffirent directory in Gutsy than in Feisty...
    Here's the source package file with modified Makefile to take this into account.
    Yes, I know this is quite an ugly, ugly way to do this, but it works (and I'm yet not much of a programmer)...

    For a quick how-to for the new ones around: Decompress the source file to desired location, open terminal, go to that dir and copy-paste:
    Code:
    $ sudo apt-get install linux-headers-`uname -r` build-essential automake1.9 jscalibrator libgii1 libjsw2
    $ make
    $ sudo make install
    $ sudo depmod -a
    $ sudo modprobe xpad
    Now plug in the controller - the lights should blink only few times and then go off. To calibrate your pad, Alt+F2 and run
    Code:
    jscalibrator
    [EDIT] And for the record, at least jscalibrator recognizes two controllers at the same time just fine.
    Attached Files Attached Files
    Last edited by MattiViljanen; October 10th, 2007 at 07:27 PM. Reason: Two pad work at the same time, too

  3. #3
    Join Date
    May 2007
    Beans
    22

    Re: Getting a Xbox 360 WIRELESS controller to work in 7.10 Gutsy Gibbons 32bit editio

    I am starting to get frustrated. Not sure if I messed up. I followed your instructions verbatim. Wireless controller continues to blink and I get an error with jscalibrator. I attached error message.
    I used your MakeFile that came with the compressed file. It appears you already made the change to the MakeFile.
    Code:
    mike@mi:~/Desktop/xpad360$ cat Makefile 
    obj-m := xpad.o
    KDIR := /lib/modules/$(shell uname -r)/build
    EXTRA_CFLAGS=-I$(shell pwd)
    
    all:
            $(MAKE) modules -C $(KDIR) SUBDIRS=$(shell pwd)
    
    install:
            cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/usb/input
            cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/input/joystick
    Code:
    mike@mi:~/Desktop/xpad360$ sudo apt-get install linux-headers-`uname -r` build-essential automake1.9 jscalibrator libgii1 libjsw2
    [sudo] password for mike:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-headers-2.6.22-14-generic is already the newest version.
    build-essential is already the newest version.
    jscalibrator is already the newest version.
    libgii1 is already the newest version.
    libgii1 set to manual installed.
    libjsw2 is already the newest version.
    libjsw2 set to manual installed.
    The following packages were automatically installed and are no longer required:
      unixodbc odbcinst1debian1
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
      autoconf autotools-dev
    Suggested packages:
      autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc
      automake1.9-doc
    Recommended packages:
      automaken
    The following NEW packages will be installed:
      autoconf automake1.9 autotools-dev
    0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    Need to get 898kB of archives.
    After unpacking 3355kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://us.archive.ubuntu.com gutsy/main autoconf 2.61-4 [448kB]
    Get:2 http://us.archive.ubuntu.com gutsy/main autotools-dev 20070306.1 [61.6kB]
    Get:3 http://us.archive.ubuntu.com gutsy/main automake1.9 1.9.6+nogfdl-3ubuntu1 [388kB]
    Fetched 898kB in 4s (185kB/s)       
    Selecting previously deselected package autoconf.
    (Reading database ... 216783 files and directories currently installed.)
    Unpacking autoconf (from .../autoconf_2.61-4_all.deb) ...
    Selecting previously deselected package autotools-dev.
    Unpacking autotools-dev (from .../autotools-dev_20070306.1_all.deb) ...
    Selecting previously deselected package automake1.9.
    Unpacking automake1.9 (from .../automake1.9_1.9.6+nogfdl-3ubuntu1_all.deb) ...
    Setting up autoconf (2.61-4) ...
    
    Setting up autotools-dev (20070306.1) ...
    Setting up automake1.9 (1.9.6+nogfdl-3ubuntu1) ...
    
    mike@mi:~/Desktop/xpad360$ make
    make modules -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/mike/Desktop/xpad360
    make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
      CC [M]  /home/mike/Desktop/xpad360/xpad.o
      Building modules, stage 2.
      MODPOST 1 modules
      CC      /home/mike/Desktop/xpad360/xpad.mod.o
      LD [M]  /home/mike/Desktop/xpad360/xpad.ko
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
    mike@mi:~/Desktop/xpad360$ sudo make install
    cp -f xpad.ko /lib/modules/2.6.22-14-generic/kernel/drivers/usb/input
    cp -f xpad.ko /lib/modules/2.6.22-14-generic/kernel/drivers/input/joystick
    mike@mi:~/Desktop/xpad360$ sudo depmod -a
    mike@mi:~/Desktop/xpad360$ sudo modprobe xpad
    mike@mi:~/Desktop/xpad360$ jscalibrator
    Attached Images Attached Images
    Last edited by Silent_Hunter; October 11th, 2007 at 04:54 AM.

  4. #4
    Join Date
    Oct 2006
    Beans
    9

    Re: Getting a Xbox 360 WIRELESS controller to work in 7.10 Gutsy Gibbons 32bit editio

    Quote Originally Posted by Silent_Hunter View Post
    I am starting to get frustrated. Not sure if I messed up. I followed your instructions verbatim. Wireless controller continues to blink and I get an error with jscalibrator. I attached error message.
    I used your MakeFile that came with the compressed file. It appears you already made the change to the MakeFile.
    Code:
    mike@mi:~/Desktop/xpad360$ cat Makefile 
    obj-m := xpad.o
    KDIR := /lib/modules/$(shell uname -r)/build
    EXTRA_CFLAGS=-I$(shell pwd)
    
    all:
            $(MAKE) modules -C $(KDIR) SUBDIRS=$(shell pwd)
    
    install:
            cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/usb/input
            cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/input/joystick
    Code:
    mike@mi:~/Desktop/xpad360$ sudo apt-get install linux-headers-`uname -r` build-essential automake1.9 jscalibrator libgii1 libjsw2
    [sudo] password for mike:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-headers-2.6.22-14-generic is already the newest version.
    build-essential is already the newest version.
    jscalibrator is already the newest version.
    libgii1 is already the newest version.
    libgii1 set to manual installed.
    libjsw2 is already the newest version.
    libjsw2 set to manual installed.
    The following packages were automatically installed and are no longer required:
      unixodbc odbcinst1debian1
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
      autoconf autotools-dev
    Suggested packages:
      autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc
      automake1.9-doc
    Recommended packages:
      automaken
    The following NEW packages will be installed:
      autoconf automake1.9 autotools-dev
    0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    Need to get 898kB of archives.
    After unpacking 3355kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://us.archive.ubuntu.com gutsy/main autoconf 2.61-4 [448kB]
    Get:2 http://us.archive.ubuntu.com gutsy/main autotools-dev 20070306.1 [61.6kB]
    Get:3 http://us.archive.ubuntu.com gutsy/main automake1.9 1.9.6+nogfdl-3ubuntu1 [388kB]
    Fetched 898kB in 4s (185kB/s)       
    Selecting previously deselected package autoconf.
    (Reading database ... 216783 files and directories currently installed.)
    Unpacking autoconf (from .../autoconf_2.61-4_all.deb) ...
    Selecting previously deselected package autotools-dev.
    Unpacking autotools-dev (from .../autotools-dev_20070306.1_all.deb) ...
    Selecting previously deselected package automake1.9.
    Unpacking automake1.9 (from .../automake1.9_1.9.6+nogfdl-3ubuntu1_all.deb) ...
    Setting up autoconf (2.61-4) ...
    
    Setting up autotools-dev (20070306.1) ...
    Setting up automake1.9 (1.9.6+nogfdl-3ubuntu1) ...
    
    mike@mi:~/Desktop/xpad360$ make
    make modules -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/mike/Desktop/xpad360
    make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
      CC [M]  /home/mike/Desktop/xpad360/xpad.o
      Building modules, stage 2.
      MODPOST 1 modules
      CC      /home/mike/Desktop/xpad360/xpad.mod.o
      LD [M]  /home/mike/Desktop/xpad360/xpad.ko
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
    mike@mi:~/Desktop/xpad360$ sudo make install
    cp -f xpad.ko /lib/modules/2.6.22-14-generic/kernel/drivers/usb/input
    cp -f xpad.ko /lib/modules/2.6.22-14-generic/kernel/drivers/input/joystick
    mike@mi:~/Desktop/xpad360$ sudo depmod -a
    mike@mi:~/Desktop/xpad360$ sudo modprobe xpad
    mike@mi:~/Desktop/xpad360$ jscalibrator
    The same problem here. Does anybody have a solution?

  5. #5
    Join Date
    Nov 2005
    Location
    Modesto, CA
    Beans
    294
    Distro
    Ubuntu 11.04 Natty Narwhal

    Ubuntu Gutsy and Xbox 360 Controller

    Hello, everyone.

    I was just wondering if anyone knows how to get a regular wires Xbox 360 controller up and running in Gutsy? I had no problem compiling the xpad module in Feisty, but it does not seem to work in Gutsy for some reason.

    Any suggestions would be greatly appreciated.

    Thanks in advance.

    Take care.
    Proud visually impaired user of Ubuntu.
    Member of the Ubuntu Accessibility Team
    Registered Linux User #423082

  6. #6
    Join Date
    Apr 2007
    Location
    Phoenixville, PA
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Ubuntu Gutsy and Xbox 360 Controller

    what happens when you do

    Code:
    cat /dev/input/js0
    Edwin Soto
    Ubuntero Developer - Ubuntero.org
    Jaunty Jackalope i386 - Custom Shuttle PC

  7. #7
    Join Date
    Nov 2005
    Location
    Modesto, CA
    Beans
    294
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu Gutsy and Xbox 360 Controller

    Thanks for the response, macness.

    Here is what I get after running the above command:

    Code:
    cat: /dev/input/js0: No such file or directory
    I'm kind of stumped on this one, as the module compiled and installed successfully.

    Thanks for the help.

    Take care.
    Proud visually impaired user of Ubuntu.
    Member of the Ubuntu Accessibility Team
    Registered Linux User #423082

  8. #8
    Join Date
    Apr 2006
    Beans
    11

    Re: Ubuntu Gutsy and Xbox 360 Controller

    If you're referring to the module from this thread:

    http://ubuntuforums.org/showthread.php?t=404577

    The problem is that the install script provided by this package is placing the file in the wrong place.

    Specifically, this line:

    Code:
    mv -f xpad.ko /lib/modules/2.6.22-14-generic/kernel/drivers/usb/input
    It appears that drivers/usb/input no longer exists as a directory, so this actually ends up moving xpad.ko to a file named input, in the directory drivers/usb/.

    Instead, move the file manually after a successful build:

    Code:
    sudo cp -f xpad.ko /lib/modules/`uname -r`/kernel/drivers/input/joystick/
    Works for me.

  9. #9
    Join Date
    Mar 2007
    Location
    Tennessee, United States
    Beans
    36

    Re: Ubuntu Gutsy and Xbox 360 Controller

    Sweet! It works for me.
    I modified the makefile so you should be able to do
    Code:
    make
    sudo make install
    and have it done with.
    Attached Files Attached Files

  10. #10
    Join Date
    Jul 2006
    Beans
    28

    Re: Getting a Xbox 360 WIRELESS controller to work in 7.10 Gutsy Gibbons 32bit editio

    That driver isn't going to work; it doesn't have wireless support for the 360 controller at all.

    I've attached the source I used to build the module.

    To install:
    Code:
    make
    sudo rmmod xpad
    sudo cp xpad.ko /lib/modules/`uname -r`/kernel/drivers/input/joystick 
    sudo depmod -a
    sudo modprobe xpad
    Once it's loaded you should have js0-js3 in /dev/input, even with no controller synced to the wireless adapter.

    My dmesg output after loading the module:

    Code:
    [1034065.968000] input: Microsoft Xbox 360 Wireless Controller (PC) as /class/input/input26
    [1034065.968000] input: Microsoft Xbox 360 Wireless Controller (PC) as /class/input/input27
    [1034065.968000] input: Microsoft Xbox 360 Wireless Controller (PC) as /class/input/input28
    [1034065.968000] input: Microsoft Xbox 360 Wireless Controller (PC) as /class/input/input29
    [1034065.968000] usbcore: registered new interface driver xpad
    [1034065.968000] /home/nicolae/src/xpad360/xpad.c: driver for Xbox controllers v0.1.7
    Everything seems to work.

    I don't remember where I got this source from, but I'm pretty sure it was someone on the forums. IIRC there were some slight modifications from the "official" source to get it to work in feisty.
    Attached Files Attached Files

Page 1 of 17 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •