Skip to content

Instantly share code, notes, and snippets.

@kelvingakuo
Forked from andineck/0-README.md
Last active July 21, 2019 12:02
Show Gist options
  • Save kelvingakuo/23d1634cf887d81497c39e5d30541a1c to your computer and use it in GitHub Desktop.
Save kelvingakuo/23d1634cf887d81497c39e5d30541a1c to your computer and use it in GitHub Desktop.
retropie bluez sixaxis shanwan PS3 controller bluetooth connection

shawnwan ps3 controller bluetooth connection problem fix

if your ps3 controller just vibrates when connecting to the retropie, or when your ps3 controller does not connect via bluetooth, this writedown might help you.

Since no exact description did work for me, I decided to write it down, what I did based on other descriptions, in order to get it to work.

links

cd ~
echo "enter your password: most likely `raspberry` if you haven't set it"
sudo su -
# install prerequisites
apt-get update
apt-get install -y git pyqt4-dev-tools qt4-designer libjack-dev
apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
# get patched bluez repo
cd /opt
git clone https://github.com/luetzel/bluez && cd bluez
# make install
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-sixaxis
make -j3
make install
# restart bluetooth
hciconfig
systemctl daemon-reload
systemctl start bluetooth
service bluetooth status
# get, patch and install sixaxis
cd /opt
wget http://downloads.sourceforge.net/project/qtsixa/QtSixA%201.5.1/QtSixA-1.5.1-src.tar.gz
tar xvfz QtSixA-1.5.1-src.tar.gz
cd QtSixA-1.5.1
wget https://launchpadlibrarian.net/112709848/compilation_sid.patch
patch -p1 < compilation_sid.patch
apt-get install libbluetooth-dev
make
# make sixpair available globally
cd /opt/QtSixA-1.5.1/utils/bins
chmod 755 sixpair
# connect controller and pair
echo "connect the controller via USB"
dmesg
sixpair
sudo ln -s /lib/firmware/ /etc/firmware
# reboot
reboot
# disconnect controller, led should flash first and then become stable, if not :-(
pi@retropie:~ $ sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: failed (Result: signal) since Fri 2017-01-13 22:17:11 UTC; 31min ago
Docs: man:bluetoothd(8)
Process: 637 ExecStart=/usr/libexec/bluetooth/bluetoothd (code=killed, signal=KILL)
Main PID: 637 (code=killed, signal=KILL)
Status: "Running"
Jan 13 22:17:08 retropie bluetoothd[637]: Bluetooth daemon 5.43
Jan 13 22:17:08 retropie systemd[1]: Started Bluetooth service.
Jan 13 22:17:08 retropie bluetoothd[637]: Starting SDP server
Jan 13 22:17:08 retropie bluetoothd[637]: Bluetooth management interface 1.10 initialized
Jan 13 22:17:08 retropie bluetoothd[637]: Failed to obtain handles for "Service Changed" characteristic
Jan 13 22:17:08 retropie bluetoothd[637]: Failed to set privacy: Rejected (0x0b)
Jan 13 22:17:11 retropie systemd[1]: bluetooth.service: main process exited, code=killed, status=9/KILL
Jan 13 22:17:11 retropie systemd[1]: Unit bluetooth.service entered failed state.
sudo systemctl stop bluetooth.service
mv /home/pi/.config/pulse /home/pi/.config/pulse-backup
sudo hciconfig -a hci0 reset
sudo systemctl start bluetooth.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment