Results 1 to 10 of 57

Thread: Howto Setup Xbox360 Controller in Edgy Elft

Threaded View

  1. #1
    Join Date
    Sep 2006
    Chicago, IL
    Ubuntu 9.04 Jaunty Jackalope

    Howto Setup Xbox360 Controller in Edgy Elft

    Getting the Xbox360 Controller Working Edgy

    This guide is meant to be really easy; giving you reasons why you're doing things and explaining how to do them in simple language. Don't be afraid it almost impossible to mess up your system. READ the directions.

    You need to have automake1.9 & kernel-headers for your kernel
    sudo apt-get install linux-headers-'uname -r' build-essential
    sudo apt-get install automake1.9

    First you need to download two files:

    Use these links (right click save as)

    Then your going to make a folder in your home directory called .xpad360 (the dot is to make it hidden)
    mkdir ~/.xpad360

    Now you are going to place the two files you downloaded (xpad.c & xpad.x) into the folder (.xpad360) you just created.
    1. Go to places->home
    2. Once in your home folder either press Ctrl H (control key & h at the same time) or go to view-> show hidden files
    3. Paste the two files you downloaded into the folder the folder you created, .xpad360

    Now your going to make a Makefile:

    gedit ~/.xpad360/Makefile
    And add this to that file and save:
    obj-m := xpad.o
    EXTRA_CFLAGS= -I$(shell pwd)
    	$(MAKE) modules -C $(KERNEL_DIR) SUBDIRS=$(shell pwd)
    *It is import that there is an indentation (Tab) before $(Make) in the above file. It will not work without it.
    *Note the first line of the make file: KERNEL_DIR?=/usr/src/linux-headers-2.6.17-10-generic is my kernel and about 90% of everyone else's. If you followed all these steps and still can't get the file to make. You want to check your folder /usr/src/ and see what kernel your are using and amend the script accordingly.

    Now your going to run the Makefile you just made:
    (YOUR NAME should be replaced with your login name)
    cd /home/<YOUR NAME>/.xpad360
    sudo make

    Now Your going to add the xpad360 "driver" into the /usb/inputs
    sudo cp xpad.ko /lib/modules/$(uname -r)/kernel/drivers/usb/input

    Now to finish up:

    sudo depmod -a
    sudo modprobe xpad

    And to reboot:
    sudo shutdown -r now
    Last edited by redDEADresolve; January 22nd, 2007 at 12:26 AM. Reason: error correction 12.21.06
    For All Things Dell Mini 9:
    For All Things Dell 1501:
    Installing Ubuntu, wireless setup, tips, tricks, hacks and workarounds.
    Rock 'n Roll isn't Dead, It Just Lives in My Head.


Posting Permissions

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