I installed retropie on my Rpi b+. everything good. setup Dualshock 3 drivers and paired with sixaxis utility.. the controller gets detected but the problem is , every time i start my Rpi the emulation station shows no gamepad detected even when my ps3 controller is connected and i have to reconfigure it every time...

so my question is ... it there anyway to permanently setup my ps3 controller so i don't have to reconfigure every time i start my retropie?

1 Answer 1


You need to allow bluetooth to pair up with the controllers by adding extra 5 seconds during Emulation Station boot up. Please modify the following script:

At a command line, run the following:

cd /usr/bin/
sudo nano emulationstation

After the #!/bin/bash line, before the $es_bin, add the command sleep 5 as follows


sleep 5

nb_lock_files=$(find /tmp -name ".X?-lock" | wc -l)
if [ $nb_lock_files -ne 0 ]; then
    echo "X is running. Please shut down X in order to mitigate problem with loosing keyboard input. For example, logout from LXDE"
    exit 1

$es_bin "$@"

RetroPie Project Official Blog

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.