Homepage Forums RetroPie Project Controller Configuration in RetroPie ShanWan Controller (PS3 Knockoff) sixad Reply To: ShanWan Controller (PS3 Knockoff) sixad

#96068
oklakegoer
Participant

Here is my ‘hacked’ version of the sixad driver to work with Shanwan/other knock off controllers. The controllers don’t seem to support certain bluetooth/sdp responses like the Sony controllers do. This works around the issue.

I also disabled the accelerometers/gyro to help with the ‘noise’ of setting up controllers/etc. I don’t use any of that function but you can enable it again by editing the sixaxis.cpp file, remove the area where I commented it out.

To make/install
download attachment, save on your pi
tar xfvz ps3controller.tar.gz
go into the ps3controller/sixad folder
do a make
sudo service sixad stop
sudo make install
sudo service sixad start

This works for me, your mileage may vary. I also added a call to hciconfig hci0 piscan after adding a controller so you can use more than one controller. At this time I’ve tested it with two controllers (both a mix of a shanwan and a sony, and two shanwan controllers).

FYI, I don’t know bluetooth, this was a lot of trial/error to make things work for me. Your mileage may vary. I also added a lot of debug messages, so check out /var/log/sixad to help in any troubleshooting.

note – I also tried updating bluez to the latest version to work with the Shanwan controllers. Unfortunately for me that didn’t work either because of the SDP requirement, though it worked nicely with the Sony PS3 controllers.

* Updated Link. Hopefully this works.
https://www.dropbox.com/s/bdjx7iy7ic9bd4g/ps3controller.tar.gz?dl=0