fix-this! Posted July 31, 2008 Share Posted July 31, 2008 i have an x-box 360 type controller hooked up to my pc via a usb cable, works fine in vista. how can i get it to work under ubuntu x64 ? Link to comment Share on other sites More sharing options...
Boktai1000 Posted July 31, 2008 Share Posted July 31, 2008 from https://help.ubuntu.com/community/Xbox360Controller - 1. sudo apt-get install linux-headers-`uname -r` build-essential automake1.9 2. sudo apt-get install jscalibrator libgii1 libjsw2 3. mkdir xpad 4. cd xpad 5. 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" The Makefile- go into your home folder, then xpad. right click make document, and then empty file. name the file "Makefile" without the quotes, no extension just Makefile. Double click to open it up, and past this in here. ignore the -----'s, inside is what u want. -------------------------------------------------------------------------------------------------- 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 -------------------------------------------------------------------------------------------------- Right before the $(Make) there is an intend, so press tab on your keyboard, NO spaces, check the link at the top for an example of it, do the same before cp -f xpad.ko. Installation- get your terminal/command line back up if you closed it 1. cd xpad (only if you closed your terminal) 2. make 3. sudo make install 4. sudo modprobe -r xpad 5. sudo depmod -a 6. sudo modprobe xpad thats it, you might have to reboot. any more questions just post them. I've only done this on x32 but I think it should work. Link to comment Share on other sites More sharing options...
fix-this! Posted July 31, 2008 Author Share Posted July 31, 2008 ^ thanks, that did the trick. Link to comment Share on other sites More sharing options...
Recommended Posts