I have a pi running raspbian with mame4all (and some working roms) installed.
For the last few hours, I've been trying (and failing), to get my Logitech F310 (wired) gamepad to work with the raspberry pi.
What I've done so far:
Installed driver: sudo apt-get install xboxdrv.
Editted /etc/rc.local, adding the following line above "exit 0": xboxdrv --trigger-as-button --wid 0 --led 2 --deadzone 4000 --silent &
sleep 1.
When I boot the pi it gives me an error saying: "No Xbox or Xbox360 controller found".
Same result when I run the "sudo xboxdrv" command.
The message is the same both for X input and for Direct input. However, I noticed that when I boot the pi with the Direct input, it gives the following error while trying to populate /dev: "connect-debounce failed, port 3 disabled".
Also, when set to X input the gamepad shows up when I type "lsusb", but doesn't show up in /dev/input/.
At some point I found the command "sudo xboxdrv --device-by-id 046d:c21d --type xbox360" (the original id was different, so I replaced it with the id of my controller from lsusb), after typing the command the pi showed values which changed when I pressed buttons/moved sticks on the controller.
From looking at all those different forums I figured the problem is in one of the following:
A. Lack of an externally powered usb hub (not enough power is being provided to the controller for proper operation).
B. Some system text file or something that I need to edit.
So before going with A, and spending 30$ on a hub, I wanted to make sure it's really not B...
Sorry if I left out some critically important info... I've only been using the pi for about 3 weeks...