Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Need help with wired Xbox 360 controller › Reply To: Need help with wired Xbox 360 controller
Hopefully that worked for you, the chat site seems to be 404ed now.
If you want to run xboxdrv when the raspberry pi boots then you can edit the rc.local file in /etc/.
cd /etc/
sudo nano rc.local
Here is a copy of mine, I’m using 1 xbox controller with analog sticks disabled.
# shutting down xpad
sudo rmmod xpad &
sleep 1
# - xbox driver -
sudo xboxdrv --dpad-only --daemon --id 0 --deadzone 4000 --silent --trigger-as-button --dbus disabled --detach-kernel-driver &
sleep 1
So this shuts down xpad
then loads up xboxdrv,
then it disables any analong sticks (–dpad-only), you may want to remove that,
it also runs xboxdrv –daemon, basically it runs it as a system service,
then it says we want to use the controller with id0,
then it sets up the deadzone area (dont think this is necessary if your using dpad-only mode),
then it tells xboxdrv to not output any controller events (normally it will display all the data from the controller when you press buttons/move the stick/dpad etc etc, this can eat up cpu)
then it disables dbus,
and then it detaches the kernal driver (which i don’t think is necessary if you’ve stopped xpad already, but it works for me!)