Homepage Forums RetroPie Project Controller Configuration in RetroPie xbox 360 wireless controller works in UI but not in any emulator Reply To: xbox 360 wireless controller works in UI but not in any emulator

#114436
labelwhore
Participant

Firstly, exit 0 should be the very last line in rc.local, if it’s missing, add it.

The next thing I see that’s wrong is that you need either this:

"/opt/retropie/supplementary/xboxdrv/bin/xboxdrv" --daemon --detach --wid 0 --led 2 --deadzone 4000 --silent --trigger-as-button --next-controller --wid 1 --led 3 --deadzone 4000 --silent --trigger-as-button --dbus disabled --detach-kernel-driver

or this (not both):


xboxdrv --trigger-as-button --wid 0 --led 2 --deadzone 4000 --silent &
sleep 1
xboxdrv --trigger-as-button --wid 1 --led 3 --deadzone 4000 --silent &
sleep 1
xboxdrv --trigger-as-button --wid 2 --led 4 --deadzone 4000 --silent &
sleep 1
xboxdrv --trigger-as-button --wid 3 --led 5 --deadzone 4000 --silent &

You may also need to add a line that says rmmod xpad before either of those lines.

However, something else also strikes me as wrong. You say the lights on the controller never light up? not even once? If that’s true, we may be chasing our tails here. maybe it’s not a code issue at all, but a power issue. if you have a power supply that’s not up to par, the pi will act in all kinds of strange ways. this could be one of them.

How many amps is your power supply? it should be at least 2 amps. Test it with a multimeter if you have one. These micro USB power suppplies are typically really cheap, (crappy, made in china) and may say 2 amps, but actually be outputting 1.5.