Things You'll Need
Instructions
Open the Menu bar and find "Terminal." Open it and type in the following:
sudo apt-get install linux-headers-`uname -r` build-essential automake1.9
Hit "Enter." This will compile and install necessary drivers and packages.
Type in the following the in same Terminal window:
sudo apt-get install jscalibrator libgii1 libjsw2
Hit "Enter."
Enter the following in Terminal:
cd
mkdir xpad
Hit "Enter." This command will create a directory for the module that will allow you to use your controller in Ubuntu.
Paste the following into Terminal:
cd xpad
wget "http://Xbox-linux.cvs.sourceforge.net/*checkout*/Xbox-linux/kernel-2.6/drivers/USB/input/xpad.c" "http://Xbox-linux.cvs.sourceforge.net/*checkout*/Xbox-linux/kernel-2.6/drivers/USB/input/xpad.h"
Hit "Enter."
Navigate to the Menu bar and find "Text Editor" or a similar program. Paste the following into the file:
KERNEL_PATH?=/usr/src/linux-headers-$(shell uname -r)
EXTRA_CFLAGS=-I$(shell pwd)
obj-m:=xpad.o
all:
$(MAKE) modules -C $(KERNEL_PATH) SUBDIRS=$(shell pwd)
install:
cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/input/joystick
Save the file and name it "Makefile."
Enter the following into Terminal:
make
sudo make install
sudo modprobe -r xpad
sudo depmod -a
sudo modprobe xpad
Hit "Enter." This will compile the controller module. If an error message is displayed, please review the steps and make sure you did not miss anything.
Connect your controller to your computer via USB. Open Terminal and type "dmesg" and hit "Enter." A description like "Xbox 360 Controller" should appear. If so, you are done.