Joined: 10 Aug 2003
|Posted: Tue Apr 15, 2008 3:05 am Post subject: Wired Xbox 360 controller with xboxdrv
|The XBox360 USB Gamepad Driver for Linux (xboxdrv) has recently been released. I considered it the best way to get an wired Xbox 360 controller working. It works very well and won't break with new kernel versions.
- Get Ready
Go to its homepage. Download it and have a look at the README. Now emerge the dependencies:
You need a uinput module and no xpad module. The following applies to gentoo-sources-2.6.24-r4, and assumes that the 360 controller is the only stick or pad you have that requires a special module (other than hiddev and joydev).
|Device Drivers --->
Input device support --->
[*] Joystick interface
[ ] Joysticks/Gamepads --->
[*] Miscellaneous Devices -->
[M] User level driver support
Create a uinput group and add users to it as appropriate. Anyone who wants to run xboxdrv needs to be part of this group.
gpasswd -a username uinput
Build the driver according to the instructions in its README (i.e. go to its directory and type "scons"). This creates an executable file called xboxdrv.
|modprobe joydev uinput |
Plug in the 360 controller
Start xboxdrv in one of two ways:
This works with ZSnes and Project 64 (under Wine, with the N-Rage Direct Input plugin).
To use with Gens
Gens requires special options:
|./xboxdrv --dpad-as-button --deadzone 8000 |
Your 360 controller now has a device node at /dev/input/js0.