Page 1 of 13 12311 ... LastLast
Results 1 to 10 of 218

Thread: Xbox 360 Controller in Feisty

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Solon, OH
    Beans
    37
    Distro
    Ubuntu 7.04 Feisty Fawn

    Xbox 360 Controller in Feisty

    I am attempting to run this tutorial I found here:
    http://ubuntuforums.org/showthread.p...=xbox+360+edgy

    Unfortunatly this doesn't work on my PC.

    I keep getting the following error when I try and make the module
    Code:
    molex@molex-desktop:~/.xpad360$ sudo make
    make modules -C /usr/src/linux-headers-2.6.20-14-generic SUBDIRS=/home/molex/.xpad360
    make[1]: Entering directory `/usr/src/linux-headers-2.6.20-14-generic'
      CC [M]  /home/molex/.xpad360/xpad.o
    /home/molex/.xpad360/xpad.c:54:26: error: linux/config.h: No such file or directory
    /home/molex/.xpad360/xpad.c:62:29: error: linux/usb_input.h: No such file or directory
    /home/molex/.xpad360/xpad.c: In function ‘xpad_process_packet’:
    /home/molex/.xpad360/xpad.c:161: warning: implicit declaration of function ‘input_regs’
    /home/molex/.xpad360/xpad.c: In function ‘xpad_probe’:
    /home/molex/.xpad360/xpad.c:368: error: ‘SLAB_ATOMIC’ undeclared (first use in this function)
    /home/molex/.xpad360/xpad.c:368: error: (Each undeclared identifier is reported only once
    /home/molex/.xpad360/xpad.c:368: error: for each function it appears in.)
    /home/molex/.xpad360/xpad.c:386: warning: implicit declaration of function ‘usb_to_input_id’
    /home/molex/.xpad360/xpad.c:451: warning: passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer type
    make[2]: *** [/home/molex/.xpad360/xpad.o] Error 1
    make[1]: *** [_module_/home/molex/.xpad360] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-14-generic'
    make: *** [all] Error 2
    Suggestions?

    I NEED TO PLAY FRETS ON FIRE WITH MY NEW X-PLORER!
    w00t!

  2. #2
    Join Date
    Apr 2007
    Beans
    2

    Re: Xbox 360 Controller in Feisty

    if you want it to compile you will need to make a few small changes to xpad.c:
    Change
    #include <linux/usb_input.h>
    to
    /* #include <linux/usb/input.h> */


    and change
    input_regs(dev, regs);
    to
    /* input_regs(dev, regs); */

    finally, change
    SLAB_ATOMIC
    to
    GFP_ATOMIC

    these are all results of recent kernel changes. Should compile fine after that. Doesn't mean it'll work though

  3. #3
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by beg1689 View Post
    if you want it to compile you will need to make a few small changes to xpad.c:
    Change
    #include <linux/usb_input.h>
    to
    #include <linux/usb/input.h>

    and change
    input_regs(dev, regs);
    to
    /* input_regs(dev, regs); */

    finally, change
    SLAB_ATOMIC
    to
    GFP_ATOMIC

    these are all results of recent kernel changes. Should compile fine after that. Doesn't mean it'll work though

    also Change
    #include <linux/config.h>
    to
    #include <linux/autoconf.h>
    Laptop: i7 4800MQ 2.7GHz (~3.7GHz); 2x 4GB Kingston HyperX Genesis 1600MHz; Nvidia 780M 4GB; Crucial M4 256GB SSD; Ubuntu 14.04 LTS x64 and Windows 8.1 x64.
    Ubuntu #8076 / Linux #429448

  4. #4
    Join Date
    Apr 2007
    Beans
    8
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Xbox 360 Controller in Feisty

    I'm having the same problem, I've tried the above suggested advice but yet I still get these errors:

    Code:
    joe@joe-laptop:~/.xpad360$ sudo make
    make modules -C /usr/src/linux-headers-2.6.20-15-generic SUBDIRS=/home/joe/.xpad360
    make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
      CC [M]  /home/joe/.xpad360/xpad.o
    /home/joe/.xpad360/xpad.c:60:23: warning: extra tokens at end of #include directive
    /home/joe/.xpad360/xpad.c:62:29: error: linux/usb_input.h: No such file or directory
    /home/joe/.xpad360/xpad.c: In function ‘xpad_probe’:
    /home/joe/.xpad360/xpad.c:386: warning: implicit declaration of function ‘usb_to_input_id’
    /home/joe/.xpad360/xpad.c:451: warning: passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer type
    make[2]: *** [/home/joe/.xpad360/xpad.o] Error 1
    make[1]: *** [_module_/home/joe/.xpad360] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
    make: *** [all] Error 2
    Please help!! I am using the new Feisty Fawn release with kernel linux-headers-2.6.20-15-generic.

  5. #5
    Join Date
    Apr 2007
    Location
    hawick
    Beans
    54
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Xbox 360 Controller in Feisty

    i am also having probs with this

    make modules -C /usr/src/linux-headers-2.6.20-12-generic SUBDIRS=
    make[1]: Entering directory `/usr/src/linux-headers-2.6.20-12-generic'
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    HOSTCC scripts/basic/fixdep
    scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
    scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
    scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
    scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
    scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
    scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
    scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
    scripts/basic/fixdep.c:112:19: error: stdio.h: No such file or directory
    In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
    from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
    from scripts/basic/fixdep.c:113:
    /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
    scripts/basic/fixdep.c:114:19: error: ctype.h: No such file or directory
    scripts/basic/fixdep.c:115:23: error: arpa/inet.h: No such file or directory
    scripts/basic/fixdep.c: In function ‘usage’:
    scripts/basic/fixdep.c:129: warning: implicit declaration of function ‘fprintf’
    scripts/basic/fixdep.c:129: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:129: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
    scripts/basic/fixdep.c:129: error: for each function it appears in.)
    scripts/basic/fixdep.c:130: warning: implicit declaration of function ‘exit’
    scripts/basic/fixdep.c:130: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c: In function ‘print_cmdline’:
    scripts/basic/fixdep.c:138: warning: implicit declaration of function ‘printf’
    scripts/basic/fixdep.c:138: warning: incompatible implicit declaration of built-in function ‘printf’
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:141: error: ‘NULL’ undeclared here (not in a function)
    scripts/basic/fixdep.c: In function ‘grow_config’:
    scripts/basic/fixdep.c:154: warning: implicit declaration of function ‘realloc’
    scripts/basic/fixdep.c:154: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:156: warning: implicit declaration of function ‘perror’
    scripts/basic/fixdep.c:156: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c: In function ‘is_defined_config’:
    scripts/basic/fixdep.c:172: warning: implicit declaration of function ‘memcmp’
    scripts/basic/fixdep.c: In function ‘define_config’:
    scripts/basic/fixdep.c:185: warning: implicit declaration of function ‘memcpy’
    scripts/basic/fixdep.c:185: warning: incompatible implicit declaration of built-in function ‘memcpy’
    scripts/basic/fixdep.c: In function ‘use_config’:
    scripts/basic/fixdep.c:204: error: ‘PATH_MAX’ undeclared (first use in this function)
    scripts/basic/fixdep.c:212: warning: incompatible implicit declaration of built-in function ‘memcpy’
    scripts/basic/fixdep.c:218: warning: implicit declaration of function ‘tolower’
    scripts/basic/fixdep.c:220: warning: incompatible implicit declaration of built-in function ‘printf’
    scripts/basic/fixdep.c:204: warning: unused variable ‘s’
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:223: error: expected declaration specifiers or ‘...’ before ‘size_t’
    scripts/basic/fixdep.c: In function ‘parse_config_file’:
    scripts/basic/fixdep.c:225: error: ‘len’ undeclared (first use in this function)
    scripts/basic/fixdep.c:231: warning: implicit declaration of function ‘ntohl’
    scripts/basic/fixdep.c:242: warning: implicit declaration of function ‘isalnum’
    scripts/basic/fixdep.c: In function ‘strrcmp’:
    scripts/basic/fixdep.c:255: warning: implicit declaration of function ‘strlen’
    scripts/basic/fixdep.c:255: warning: incompatible implicit declaration of built-in function ‘strlen’
    scripts/basic/fixdep.c: In function ‘do_config_file’:
    scripts/basic/fixdep.c:266: error: storage size of ‘st’ isn’t known
    scripts/basic/fixdep.c:270: warning: implicit declaration of function ‘open’
    scripts/basic/fixdep.c:270: error: ‘O_RDONLY’ undeclared (first use in this function)
    scripts/basic/fixdep.c:272: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:272: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:274: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c:276: warning: implicit declaration of function ‘fstat’
    scripts/basic/fixdep.c:278: warning: implicit declaration of function ‘close’
    scripts/basic/fixdep.c:281: warning: implicit declaration of function ‘mmap’
    scripts/basic/fixdep.c:281: error: ‘PROT_READ’ undeclared (first use in this function)
    scripts/basic/fixdep.c:281: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
    scripts/basic/fixdep.c:281: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:288: error: too many arguments to function ‘parse_config_file’
    scripts/basic/fixdep.c:290: warning: implicit declaration of function ‘munmap’
    scripts/basic/fixdep.c:266: warning: unused variable ‘st’
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:295: error: expected declaration specifiers or ‘...’ before ‘size_t’
    scripts/basic/fixdep.c: In function ‘parse_dep_file’:
    scripts/basic/fixdep.c:298: error: ‘len’ undeclared (first use in this function)
    scripts/basic/fixdep.c:300: error: ‘PATH_MAX’ undeclared (first use in this function)
    scripts/basic/fixdep.c:302: warning: implicit declaration of function ‘strchr’
    scripts/basic/fixdep.c:302: warning: incompatible implicit declaration of built-in function ‘strchr’
    scripts/basic/fixdep.c:304: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:304: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:305: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c:307: warning: incompatible implicit declaration of built-in function ‘memcpy’
    scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function ‘printf’
    scripts/basic/fixdep.c:300: warning: unused variable ‘s’
    scripts/basic/fixdep.c: In function ‘print_deps’:
    scripts/basic/fixdep.c:337: error: storage size of ‘st’ isn’t known
    scripts/basic/fixdep.c:341: error: ‘O_RDONLY’ undeclared (first use in this function)
    scripts/basic/fixdep.c:343: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:343: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:345: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:353: error: ‘PROT_READ’ undeclared (first use in this function)
    scripts/basic/fixdep.c:353: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
    scripts/basic/fixdep.c:353: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:360: error: too many arguments to function ‘parse_dep_file’
    scripts/basic/fixdep.c:337: warning: unused variable ‘st’
    scripts/basic/fixdep.c: In function ‘traps’:
    scripts/basic/fixdep.c:372: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:372: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:374: warning: incompatible implicit declaration of built-in function ‘exit’
    make[2]: *** [scripts/basic/fixdep] Error 1
    make[1]: *** [scripts_basic] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-12-generic'
    make: *** [all] Error 2


    has anyone made a 7.04 guide?

  6. #6
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: Xbox 360 Controller in Feisty

    To people who can't get Xbox 360 controllers working with Feisty,

    Attached are a modified xpad.c, xpad.h, and accompanying Makefile to get it working. I found a modified-for-Feisty set of source files somewhere on these forums (I'd link it if I could find it), but the d-pad didn't work. I've hacked d-pad support back into it. Enjoy.
    Attached Files Attached Files

  7. #7
    Join Date
    Jul 2007
    Beans
    10

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by po0f View Post
    To people who can't get Xbox 360 controllers working with Feisty,

    Attached are a modified xpad.c, xpad.h, and accompanying Makefile to get it working. I found a modified-for-Feisty set of source files somewhere on these forums (I'd link it if I could find it), but the d-pad didn't work. I've hacked d-pad support back into it. Enjoy.

    i used this file and all was applied, but when i start jscalibration, it recognize my only Microsoft Wireless Receiver!!!

    I ve two Microsoft Xbox 360 controllers but they are not wireless they are with USB port

    so, Can I use this solution for USB xbox 360 controller?!?

    what solutions for USB gamepads?!?

    thank's in advance and excuse me for my bad english...

  8. #8
    Join Date
    May 2007
    Location
    San Francisco, California
    Beans
    5,851
    Distro
    Ubuntu

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by po0f View Post
    To people who can't get Xbox 360 controllers working with Feisty,

    Attached are a modified xpad.c, xpad.h, and accompanying Makefile to get it working. I found a modified-for-Feisty set of source files somewhere on these forums (I'd link it if I could find it), but the d-pad didn't work. I've hacked d-pad support back into it. Enjoy.
    That should solve the issue right there.

  9. #9
    Join Date
    Oct 2007
    Location
    The States, Florida
    Beans
    18
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Xbox 360 Controller in Feisty

    *Update*

    I tried using the hack versions of xpad.c and xpad.h and I'm still not getting anywhere. I'm still getting to the same spot and failing. dmesg is yielding something new:

    [ 681.800533] usbcore: registered new interface driver xpad
    [ 681.800542] /home/elwood/.xpad360/xpad.c: driver for Xbox controllers v0.1.7
    [ 795.127445] usb 1-3: USB disconnect, address 3
    [ 819.175430] usb 1-3: new full speed USB device using ohci_hcd and address 4
    [ 819.387376] usb 1-3: configuration #1 chosen from 1 choice

    It just doesn't seem to put anything into /dev/input/ Any idea on what could be the problem now?

    Regards,

    Brandon

  10. #10
    Join Date
    Sep 2005
    Location
    Pittsburgh, PA
    Beans
    45
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by FighterOfTheNightMan View Post
    *Update*

    I tried using the hack versions of xpad.c and xpad.h and I'm still not getting anywhere. I'm still getting to the same spot and failing. dmesg is yielding something new:

    [ 681.800533] usbcore: registered new interface driver xpad
    [ 681.800542] /home/elwood/.xpad360/xpad.c: driver for Xbox controllers v0.1.7
    [ 795.127445] usb 1-3: USB disconnect, address 3
    [ 819.175430] usb 1-3: new full speed USB device using ohci_hcd and address 4
    [ 819.387376] usb 1-3: configuration #1 chosen from 1 choice

    It just doesn't seem to put anything into /dev/input/ Any idea on what could be the problem now?

    Regards,

    Brandon

    I have the same problem. I'm not using a Microsoft-branded Xbox 360 controller, but a Logitech Chillstream, which is supported by the xpad driver. I am using the CVS version, though.

Page 1 of 13 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
  •