You can also check the pairing with ‘sudo bluetoothctl‘:
[NEW] Controller 00:1B:10:00:2A:EC raspi [default] [NEW] Device 01:B6:AD:7F:63:25 PLAYSTATION(R)3 Controller [NEW] Device 01:B6:52:85:63:25 PLAYSTATION(R)3 Controller [NEW] Device 20:73:AB:91:DD:6F Bluetooth V3.0 Keyboard
And with ‘dmesg’, you should see that your controller is registered as a joystick:
sony 0005:054C:0268.0006: input,hidraw2: BLUETOOTH HID v0.00 Joystick [PLAYSTATION(R)3 Controller] on 00:09:dd:50:92:e8
Proceed with the second controller (repeat Step 6). Here LED2 will stay ON, if the pairing was successful.
After pairing the first controller the bluetooth sometimes exits the discovery mode so that pairing of the second controller fails. In such case, check with “hciconfig” before pairing the second controller that its mode is still “UP RUNNING PSCAN”. If you change the mode to PISCAN by running “sudo hciconfig hci0 piscan” after pairing the first controller the bluetooth stays in the discovery mode and it works as expected for the pairing of the second controller. As a workaround you can fix this behavior by inserting the line
hciconfig hci0 piscan
into the /etc/rc.local file just before the ‘exit 0’ line.
Your Raspberry will remember each controller you connect, so after reboot it should be enough to press the PS button in order to pair the controllers again.
If you want to add other bluetooth devices such as keyboards or mice, simply use the retropie-setup.sh script.
In case that you update your Pi (apt-get update && apt-get upgrade), make sure that you re-install bluez (repeat Step 4). It is not recommended to delete the bluez package from Raspbian, because all its dependencies will be removed!
Therefore, you should keep the bluez source code on your Pi, in case that you have to re-install bluez.
Now you are ready to start Emulationstation on your Pi. On startup your gamepads are recognized. Press and hold any controller-button for initial configuration.