|
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 |
|
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 |
You are a life saver!!