RetroPie-Setup: An initialization script for RetroArch on the Raspberry Pi

If you want to install and setup RetroArch on the Raspberry Pi (TM) together with various emulator cores, all needed libraries for the SNESDev controller interface, and a graphical front end you can now go to https://github.com/retropie/RetroPie-Setup. There you will find an easy-to-use script that installs all essential packages for retro gaming on the Raspberry. I call it RetroPie script.

I prepared a Github repository with a shell script that automatically installs all needed packages. It has a console-based GUI and makes the installation of everything you need for retro gaming very easy. The script was tested on the Raspbian distribution. The following instructions can also be found directly on the Github site.

Download

To obtain the installation script you first need to install two packages with

sudo apt-get update
sudo apt-get install -y git dialog

Then you can download the latest RetroPie setup script with

cd
git clone git://github.com/petrockblog/RetroPie-Setup.git

Installation

The script is executed with

cd RetroPie-Setup
chmod +x retropie_setup.sh
sudo ./retropie_setup.sh

You are welcomed with the following screen

Here, you have the choice between two different ways of installation:

  1. Binaries-based installation: This way of installation will download per-compiled versions of RetroArch, various cores, Emulation Station, and SNESDev. In comparison to the second way of installation this is much faster. Even though the binaries will be updated from time to time, a disadvantage is that you probably will not have the most recent versions of the programs.
  2. Source-code based installation: This way of installation will download and compile the most recentsources of all programs and cores. Compiling everything takes some hours, but you will have the most up-to-date releases of the programs. When you choose this option in the menu a screen will appear that lets you select (with the space and arrow keys) the individual tasks to be done by the setup script:

    The default selection will install the complete set of packages.

Usage

With it’s default configuration the RetroPie setup configures the graphical front end EmulationStation such that a set of emulators can directly be used by the front end. You can start the front end with

emulationstation

Before that, however, you need to copy your ROM files into the according RetroPie/roms/ folders. Every emulator has its own subfolder here. Due to the early stage of the ALSA implementation on the Raspberry you can expect some creaking when using the analog output. I made quite good experiences with the HDMI output. For now, another solution for that seems to be the use of an external USB soundcard until the problems with the ALSA implementation are solved.

I really would like to see this script be further developed by you and me!! I think that Github is the right place for that.

Enjoy!

435 thoughts on “RetroPie-Setup: An initialization script for RetroArch on the Raspberry Pi

  1. Lepracon68 says:

    So i just bought a RPI 3 B, followed the instructions and get the message : SORRY – Raspbian/Debian Stretch is not yet supported on the RPI.
    :-(

  2. Adriaan Verhelst says:

    i got stuck here someone please help

    Getting sources for ‘lr-glupen64’ : N64 emu – GLupeN64 for libretro
    = = = = = = = = = = = = = = = = = = = = =

    git clone –recursive –depth 1 “https://github.com/loganmc10/GLupeN64.git” “/home/pi/RetroPie-Setup/tmp/build/lr-glupen64”
    Cloning into ‘/home/pi/RetroPie-Setup/tmp/build/lr-glupen64’…
    Username for ‘https://github.com’:

  3. Trev says:

    It broke my rpis os i tried running it and it gave me the lxde error so i logged out and signed back in and it rebooted and gave me a root mount error

  4. Ravi Patel says:

    This isn’t in the actual instructions above I don’t think, but can someone tell me how to add roms. I format the USB (FAT32) and plug in and enable USB ROM SERVICE before plugging in, but after waiting about 5 minutes, I plug into my computer and no new folders have been added. Can someone help please.

  5. Matteo Pio Muscat says:

    Can you make this for Ubuntu Mate for the Raspberry Pi 3 and 2 please as I don’t want to have Berryboot. I just want to use a simple OS for all of my stuff including retro gaming and normal desktop uses.

  6. Mike Rosa says:

    Hey I have a problem (I don’t know if it was mentioned before) For almost every ROM that I load up, it goes to terminal for like a second and then switches back into emulation station, not having started the game

  7. tomyhmie says:

    great job you’ve done there mate, much respect. so if i just want n64, what steps would I want to take? Must have been an update, I have more than just the binary and source code options in the beginning when i start the setup script.

  8. Karasu-o-matic says:

    updating from jessie and installing the binaries everything goes smooth though at the end of it reports an error about some libraries (libsdl and another can’t remember now) Thanks for the effort though, really appreciate it!

  9. kevin says:

    Hey thanks for the awesome writeup. I wanted to ask, I noticed not all emulators show up in my list. Will they show when I add ROMS to their respective folders or will I have to add the bios for said emulators for them to show?

  10. Daniel J Mangan says:

    I am having a problem getting the games to start , EMUSTAT runs fine i select emulator , then a game and the screens goes black with a command select says hit x or n key to select defaults so i select the desired defaults (tried all ) no matter what it kicks me back to emu game select screen like rom doesnt load or something

  11. Filipe Lana says:

    Hi !

    Lovely project !

    My Pi 2 arrived 2 days ago, and yesterday i installed Raspbian by a NOOBS image, installed some programs, and then installed Retropie by using the script.

    As i wanted some performance, i left it compiling at night, but today i was presented with some errors at the end, saying couldn’t compile thing like scummvm, gbasp, and couldn’t install some libs like libsdl-ttf2.0-dev , libsdl-mixer1.2-dev , libsdl-image1.2-dev , libsdl-gfx1.2-dev , libxaw7-dev, checkinstall…. What you recommend me to do in order to make a complete sucessfull install from the sources ?
    Anything i could see in the error logs ?

  12. Poker CK says:

    Sorry if this has already been asked. Are these instructions the same for a Raspberry Pi 2? Im just wondering if a different build is needed to use the extra cores and ram?

  13. Tom says:

    I installed everything okay. I’m able to run the EmulationStation and launch the free games included. But, no sound. I’ve tried one of my own ROMs and same thing. I ensured the sound was configured in EmulationStation. I tried forcing the sound via my HDMI in raspi-config and same thing. Probably something simple I’m overlooking. Anyone have suggestions?

  14. Jared Arrington says:

    I followed the tutorial step-by-step with no problems at all. Once I performed the reboot it came to the Raspberry login. I understood it should reboot to the EmulationStation front end? Also once I login to Raspberry, I enter “sudo ./emulationstation” and it returns “:command not found”. I’ve gone over the steps many times and keep getting the same result.

    • AutogyroGuy says:

      just type emulationstation, nothing else, it should work. Keep me posted because i am also trying this for a friend. Also how long did it take you to install?

      • Jared Arrington says:

        Not sure on install time; I started the soirce based knstallation and left for work. UPDATE: I gave up on RetroPie and went to PiPlay. Not nearly as asthetically pleasing or intuitive but I can finally play NES and SNES games.

  15. falcioness says:

    hello, I’m having an issue with the autostart script. When I login manually its fine. Basically, emulation station will start but all I can get to is the setup screen. When I complete the setup, it just goes right back to the setup in emulationstation and I can’t use the actual system. ( It does say 9 games available though). Now when I press start and exit. then type login, and login with the pi account, emulationstation restarts and all my games are there. It seems to not be logging in automatically or something. Is there any way to have it automatically enter my username and password at the command line before launching emulationstation? Thanks.

  16. Santrell Wood says:

    Thanks for the tuts, but one question – If i use the “Binaries-based installation”, How can I update the versions later on? -Thanks In Advance

    • Santrell Wood says:

      And the reason i didn’t use the “Source-code based installation”, is because i assume it would take up more space. And seeing how I don’t need all the emulators (just maybe 3 or 4), i thought it would be quicker to do binary then source somehow!

  17. PhilW says:

    Okay so I chose the source-based installation, and it was running for ages as expected. When finished there were a host of messages saying it failed to compile various emulators (supposedly all this was logged to a debug log, but I can’t find that file anywhere). I tried running emulation station anyway but was told the was no such file or directory. Not sure where to go from here!

    • PhilW says:

      I tried the binaries installation after this, and managed to run emulationstation, but it freezes as soon as I hold any key/button at the start.

    • wrzr123 says:

      Hey, similar problem here! I tried to install mupen64 via source-based installation, and there was the error message ‘Could not successfully compile Mupen 64 Plus RPi. See debug.log for more details.’
      But where is this debug.log-file??

      • petRockBlog says:

        You can find the debug logs of the RetroPie Setup Script in ~/RetroPie-Setup/logs/ To list a log file you can use the command zless LOGFILENAME

  18. JakeTheGreat says:

    Hey i’m kinda a beginner and i need some help getting my PSX controller working in Emulation Station. My first problem is that when i test my controller in the terminal, for couple of the buttons it shows as if i was pressing multiple buttons, while other button presses aren’t detected.
    My second problem is that when i start emulation station it says “No game pads detected, Hold a button on you’re device to configure it.” and when i hold a button down there’s no response. Can someone please help me? Thanks, Jake

  19. Lucas says:

    Hey, the MAME4ALL emulator is not working, I’m trying to load metalslug, streetfighter, pac man, tron and others, and it’s not working .. can someone help me ?

  20. Michael Gibson says:

    If there are a few components that do not install correctly is there a way to run the installation again and only install the things that need to be re-installed?

      • Michael Gibson says:

        The only problem with that is you cannot always tell which parts of the installation went wrong When doing the Installation I left it overnight it taking 16 hours and all but I’m using my laptop to forward the internet to the Raspberry pi so when I got Up the internet was down for the Raspberry pi because the computer went to sleep in a way even though I selected things that were supposed to prevent that

      • petRockBlog says:

        A logging function was added some time ago. You can print the logs with the command zless /home/pi/RetroPie-Setup/logs/.

  21. Vakilando says:

    My SD card is corrupted but I can still mount it on an Debian PC. Can I just copy the Retropie folders to a new SD Card? I want to keep my Games and Savegames…

  22. tri says:

    cd
    git clone git://github.com/petrockblog/RetroPie-Setup.git

    doesnt seem to be working for me, keep getting An error.

    fatal: remote error:
    repository not found.

      • anil says:

        I did git clone without the depth parameter, is this a bad thing?
        can i fix it now, IVE already run the script?
        thanks

      • Bryan Elliott says:

        The –depth=1 param just makes your clone of the repo “shallow” – that is, you only download the latest commit. Without it, you download about 20 megs of repository history in addition to what you actually want. In short, it’s fine.

  23. DomNewell says:

    Hi
    I love the image, and have just done this with the setup script, but for some reason now I just get a white dot in the middle of the screen when it boots up. Do you have any ideas as to what I could do?

    Thanks

    • petRockBlog says:

      In some cases in the past, this was observed when the power source was too weak (<1000mA).

      Are you using the downloadable SD-card image? Od did you use the binaries- or source-based installation of the RetroPie Setup Script?

      • DomNewell says:

        Hi,
        I am using the downloadable sd image, and used the binaries based installation.
        Thanks

      • DomNewell says:

        Thanks, do you know what you use? I have tried two different plugs, one for my phone (1000mA) and the one that came with my pi (330mA).

      • DomNewell says:

        I’ve just had a look on google and it says that the white dot is a memory split problem. How would I get to terminal with this problem?

      • petRockBlog says:

        If you cannot even boot up, you would need to change the configuration in /boot/config.txt by mounting the sd-card from another Linux distribution. However, the image is working in my case as is for many, many others. So, I would not bet too much on the memory split.

      • DomNewell says:

        I’ve just redone the binaries installation onto a raspbian image, but when i type emulationstation into the terminal it just says no such file or directory

      • MojoArcade says:

        I’m having the exact same problem, had a working retropie installation

      • DomNewell says:

        Which emulationstation: /usr/bin/emulationstation
        df /h: ‘/h’: nocsuch file or directory
        df: no file systems processed

      • petRockBlog says:

        If df is not working it sounds as if there are some serious error with the (file) system. I would recommend to copy a new version of the SD-card image onto the SD-card.

      • DomNewell says:

        Hi,

        Ive got an SD image and it all works now, thanks.
        However, for some reason, my retroarch.cfg has a problem where it presses back as well as down, when I press the down button. Here is the code:

        input_player1_joypad_index = “0”
        input_player1_b_axis = “+1”
        input_player1_y_axis = “-0”
        input_player1_select_btn = “2”
        input_player1_start_btn = “3”
        input_player1_up_axis = “-1”
        input_player1_down_axis = “+1”
        input_player1_left_axis = “-0”
        input_player1_right_axis = “+0”
        input_player1_a_btn = “0”
        input_player1_x_btn = “1”
        input_player1_l_btn = “4”
        input_player1_r_btn = “5”

        I thought it was a number mix up, but it doesn’t happen with the a button and the right button, which also have the same number. Could you help? Thanks

      • petRockBlog says:

        Maybe this works?

        input_player1_joypad_index = “0”
        input_player1_b_btn = “6”
        input_player1_y_btn = “7”
        input_player1_select_btn = “2”
        input_player1_start_btn = “3”
        input_player1_up_axis = “-1”
        input_player1_down_axis = “+1”
        input_player1_left_axis = “-0”
        input_player1_right_axis = “+0”
        input_player1_a_btn = “0”
        input_player1_x_btn = “1”
        input_player1_l_btn = “4”
        input_player1_r_btn = “5”

        The lines

        input_player1_b_axis = “+1”
        input_player1_y_axis = “-0”

        look strange – I would have expected button types in these lines.

      • DomNewell says:

        Thanks, that’s that problem sorted, but now that btn has gone completely. For example, it was the accelerate in the snes version of mario kart, and the shoot button in space invaders for atari 2600. Could I map this button?

      • DomNewell says:

        Driver version is 2.1.0.

        Joystick (USB Gamepad ) has 2 axes (X, Y)

        and 10 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4).

        Testing … (interrupt to exit)

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0:-32767 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        Axes: 0:-32767 1:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:

        off 7:off 8:off 9:off

      • DomNewell says:

        Hi,
        could you give me some sort of update as to what is happening, it’s just that it has been a while since I last posted?
        Thanks

      • petRockBlog says:

        what is the output of the command which emulationstation? This command checks for the location of emulationstation.

        what is the output of the command df /h? This command checks for the free space.

  24. Nicholas Moore says:

    Does anyone know how to configure the xbox controller to drop to a terminal when hitting the home button? any help would be great. I have found a work around to play music in the retro pie. I can complete ths via ssh but would like to be able to from the controller without ssh or a local keyboard!.

  25. torturedutopian says:

    Hi ! First, thanks a lot for your work, it’s very much appreciated !

    However, I’m experiencing some issues regarding input. I’m using keyboard input (as I’m using the Pi in an arcade cabinet with an i-pac interface).

    Emulation station reports some “script error” when trying to setup some input settings (dgen for instance). The settings for retroarch do not report any error, but buttons do not work when starting the emulator. Well it seems to partly work actually, I managed to get the start button to work once, but for instance, not when it was mapped to “&” but when it was mapped to “x”. But then the other ingame buttons didn’t work at all (ctrl alt space etc.)

    Anyway, I was using the binary install. Trying to build the sources now :-)

  26. rleyfield says:

    By the way, you don’t need to use SSH to do this. The writer of petRockBlog only did this so they could take screenshots of it.

  27. Pizzahut91 says:

    please tell me that I can do this on windows, too. Their command prompt isn’t a unix based console like on linux or mac, so I can’t see any way for me to get this as it appears to require console commands I am incapable of performing on my current setup.

  28. Kael says:

    Hi everyone.

    I just got my pi a few days ago and this is exactly what I was wanting to do with it. I do have a quick question, however.

    When running the retro-pie setup script, how long did it run for you guys? I loaded raspbian and followed the instructions on the github site. I ran retropie_setup.sh last night before going to bed, compiling everything from the source distro. That was over 12 hours ago and it’s still running. This doesn’t seem normal to me, but is it? Should I start over and do something different or just continue to wait it out?

      • Kael says:

        Thanks for the quick reply.
        I guess since I’m this far in I’ll let it continue to compile. I just wanted to make sure before I go TOO impatient and wiped my sd card and started over. 0.o

  29. Oliver says:

    Hi, first of all, thank you very much for this great script! Unfortunately, I get some errors: the Amiga, Atari 800, GnGeo and PPSSPP could not be compiled successfully. When looking at debug.log, it says that uae4all is not available (“/home/emulator/RetroPie/emulatorcors/uae4all/uae4all does NOT exist.”).
    I’ve selected to install all available emulators, the rPi is running raspian “wheezy” — any idea what went wrong?

    Thanks!

  30. Nick says:

    Hi,

    I am having a problem at the end of the compiling/installing. When the script completes, it says that RetroArch was not successfully compiled or installed. Any suggestions on how to fix this issue?

    Thanks in advance,
    Nick

    • Big D says:

      I’m having the same problem. Hopefully someone can answer this for us. Did you compile from source or binary? I did source, but I’m about to try binary and see if it works that way.

  31. Big D says:

    Please help! Ive tried a few times, but every time the retropie script finishes compiling, the debug list says that retroarch did not install successfully, so none of the snes, nes, etc. emulators show in emulations station.

    • Big D says:

      okay, I added roms, so now they show up, but none of them run. I’m guessing this is because retroarch failed to install correctly, So, I’m still stuck.

      • PiRo says:

        have you configured your controller in both ES and RetroArch? The first allows you to navigate the menu, the 2nd allows you control once in the game.

  32. Screamopancakes49 says:

    Ok so I have emulation station and all that installed,as well as roms,but I’m having trouble running emulation station itself, when I try to run it from LXTerminal it tells me “X is running.please shut down X in order to mitigate problems with loosing keyboard input.for example,logout from LXDE.”
    Does that mean emulation station is open somewhere and I just can’t see it?

    • jmbrnt says:

      Hi there, you can’t run emulationstation from inside LXDE. You need to quit LXDE totally (I click the red ‘power’ icon in the bottom right corner of the screen and select logout). This takes you back to a terminal (not a terminal emulator like LXTerminal). From here you run the ’emulationstation’ command and it opens up.

      I hope that makes sense.

      • Arjan Vlek says:

        At this stage im sent back to a login screen rather than the terminal. If I press CTRL ALT F2 and log in, it still says that x is running even through im using the terminal screen as suggested. Can I bypass thisand open emustation anyway?

      • petRockBlog says:

        You need to exit LXDE completely. To put it simple, this has to do with the way, LXDE uses the graphics resources of the RPi.

      • Miguel Sousa says:

        isnt there a way to creat some kind of shortcut or a dual boot screen between raspien and emulationstation ?

      • William O'Meara says:

        when you get to the terminal type “sudo service lightdm stop” to stop the x server. Replace “stop” with “start” to return to LXDE.

      • Ol Bailey says:

        Hello, I have stopped LDXE as you described, I was left with what I presume is the terminal (a black screen awaiting a command)
        I have typed in emulationstation, and I’m not sure if it was in the middle of something, but I am now left with a black screen and no way to input anything, any help?
        I apologise for the complete beginner SOS call, but any idea what is going on?

      • tmyhmie says:

        I’ve separately installed emulationstation and n64 emulator, went to console without lxde and x running, and getting this – error while loading shared libraries: libboost_locale.so.1.55 : cannot open shared object file: No such fie or directory

        Did i forget to install something?

    • David Martinez says:

      I was having this issue as well. I figured out that my VNC server was keeping some form of X active. I took tightvncserver off my start up sequence, rebooted, and emulationstation was able to start.

      • pokepi says:

        How did you turn off vncserver? i keep getting X is running.please shut down X in order to mitigate problems with loosing keyboard input.for example,logout from LXDE.” when i try to start emulationstation…

      • B Brown says:

        I have emulation station set to start on bootup. I can get back to the desktop with f4, but cant get back into emulationstatio, even when I use sudo…stop. I get a black screen. I tried sudo…stop followed by altf2,but was then asked for a username and pw, which I never set up. Any help would be appreciated.

      • B Brown says:

        Figured it out. I created a user name and pw, entered it where I mentioned before. Then entered ’emulationstation’ to get back in. From then on, I didn’t need to add my username and pw anymore, just ’emulationstation’.

  33. Chase says:

    I don’t understand … WHERE ARE THE ROMS FOR RETROPIE? I looked in the folder named ‘roms’, but they aren’t there. Please help.

  34. nicholas moore says:

    I have been having issues getting my config files for a wired Xbox 360 controller. The issue is inside the emulator its self. The drive works fine and the device is functional. I have tried a few def methods with no luck. Would someone be able to provide an image with the retro-pi being setup with a wired xbox 360 controller in the nes and snes emulators? I can provide a share drop box. Thanks!

  35. meowzen says:

    Hey I’m hoping someone can help me out. Ive set up RetroPie and my wireless controller seems to work but I cant seem get any roms to open up. It only opens Apple II and then I have to use my keyboard to exit out. My roms have the correct file extensions but I can figure out how to get them to open. Also I dont see an option for this Cave game that keeps getting mentioned. Any ideas?

    • petRockBlog says:

      Yes – this is normal, because really a lot compiled with this option. As long as you see output on the console every now and then, everything is fine. I usually let it run during the night and the following work day so that it is ready the next evening.

  36. Baxtex says:

    I want to use my xbox 360 controllers but I can’t seem to install the xbox dvr. When I do the command console tells me that “sudo” is an unknown command. :/

  37. James Miller says:

    Whenever I run

    sudo ./retropie_setup.sh

    It returns ‘Command not found’. I have no idea why because when I remove the ‘sudo’ it returns ‘Permission Denied’. What is going on?

  38. alex carter says:

    hi friends of this great blog,and admin too.
    when i want to compiled script in a new raspbian,2 times,my eth0 is blocked after some moments in the install.(i don’t think it’s a script problem,but raspbian or hdcp.)
    have you see a report of a same problem.i desperate,and i really want to compile it)
    ps:put the image on the card directly ,is the same problem) eth0 cut after some times.
    thanks for help if can,(2 raspi,same effects)

      • alex carter says:

        thanks for your help petRock”Blog”.but no,it’s the first thing i made “expand root file system”.sorry,i know it’s not à retropie problem,and i love your work.it’s magic.i search,and test many solutions for that,and tell here when resolved it.thanks from France.

      • petRockBlog says:

        I have not heard of such a problem so far, so I do not have the 100% solution for that. Maybe your power supply is too weak!? Strangest things can happen in this case.

      • alex carter says:

        ok,thanks,i make an new install today,and the problem come to.install finish badly at 84%.like all the time.
        i see some people have problem with ethernet/usb hardware.when i see install is finish,internet is off.i search for a log of the operation inthe terminal;i see bcm problem.
        i test with my other raspi and report after.thanksand sorry for the new thread.

      • alex carter says:

        at the end,its write 84% :) and seem operations are finished.(the end of instal wasn’t good)no connection internet.but i have similar problem with my other raspi (maybe my network isn’t so great).i finally take your “img” and work great now :) i make other test for understand the problem.
        i try to setting up xbox 360 controller.i have successfuly assigned fonction with gamepad ‘but i dont understand after “add your cfg files to your default RetroPie/configs/all/retroarch.cfg”
        sorry for solicitation and grand merci tout plein ;)

      • alex carter says:

        ok,i found my error.
        in https://github.com/retropie/RetroPie-Setup/wiki/Setting-up-the-XBox360-controller
        xboxdrv –trigger-as-button –wid 0 –led 2 –deadzone 4000 –silent &
        sleep 1
        the first problem i make is wid 0 ,but you say id 0 for wired (my english is poor
        and make this mistake .”wid” i replace by id 0.
        after my second error,is i copy “sleep 1” but i have not another joystick.
        i finally understand it,and delete the “sleep 1” and after the reboot,my joystick
        is detected fine.
        your information is very good,but for a noob in linux like me,some subtility and hard
        to understand.
        copy /paste isn’t all without understood.
        i love your work and appreciate your help.
        scuse my english.if i can help ,tell me,it’s a pleasure if a can contribute.
        thanks

      • alex carter says:

        hi petRock”Blog”.could you,maybe,help me or informed me?(bios loaded fine)I try play psx (game) ,working fine,but colors seem not been good,or quality image.when i quit game (F4) in terminal,i can see the following lines.
        RGB565 Supported,using it
        (other lines seem not important)
        Retroarch (WARN) :: Stock GLSL Shaders will be used
        Retroarch (WARN) :: Failed to init rewind buffer.Rewinding will be disabled

        i see we can modify options in retroarch.cfg/dgen.cfg/…cfg in emulatorn but i’m purely noob;is there a place who indicates the list of options,and what/why we can modify?

        sorry for the relance,i searched everywhere,but not find.(i see on youtube a guy play psx game with retropie in an excellent quality,i dream of that)
        since i have my raspi,i’m addicted,and many projects in my head.
        yours is mine,thanks for help and work.

      • petRockBlog says:

        Hi Alex,
        I cannot help here since I do not have experienced that issue yet. But maybe someone at the forum here has an answer.

      • petRockBlog says:

        Another one just told me that the download link for the binaries is broken. I fixed this right now, maybe this is also related to your issue!?

      • diego says:

        all emulators I work in full screen, less than neogeo (GnGeo 0.7) change the “overscan” to “disable” in raspi-config but only occupies a small percentage of the screen.

        PS: thanks for trying to help me.

  39. DJB says:

    I am having some trouble with my tomee usb snes controller, I have it configured correctly, however the L and R buttons act as save state and load state buttons which is not the desired effect. I’ve tried to find a fix but to no avail, does anyone have any idea why it does this?

    • petRockBlog says:

      Thanks for pointing that out – this is a bug in the RetroPie script and will be fixe with the next commit. You need to remove the lines with the keywords “input_save_state_btn” and “input_load_state_btn” in the file /home/pi/RetroPie/configs/all/retroarch.cfg.

      I hope that helps!

  40. gpalmq says:

    This works great overall, but I have a couple of issues. The SNES roms all have an odd green tinge to them. I can’t seem to find a fix in the config file, but I may be overlooking something. Has anyone run into this problem? Also having an issue where emulationstation seems to change the overscan adjustments that sticks after I exit to the terminal. Is there some config file for ES beyond the es_systems? Any thoughts? Thanks.

  41. Cain says:

    I have followed the instructions to the letter yet get nothing but a blank screen after the “Apple start” screen. What am I or have I done wrong?

    • petRockBlog says:

      This might be related to the HDMI video mode, which I set to VGA with a recent script update. To undo this change you need to comment (i.e., put “#” in front of the lines) the lines “hdmi_mode=1” and “hdmi_group=1”.
      The system-wide VGA mode will be discarded with the next update of the RetroPie Script and be replaced by a more sophisticated way for changing the video resolution in HDMI mode.

  42. Ernest Sheldon says:

    Hello i install and when it boots up i see apple II then while pressing left key i see cave game and then duke then back to apple II .Not seeing snes,or any other console help please.Iam now installing advanced menu see if that helps

  43. Duke3d says:

    Thanks for making this script! :-)

    Just a quick question. I got everything up and running, but how do I install Duke 3D? I have run the binary installation, should I run the source based also to get Duke 3D? just check of only the duke 3d in sourcebased installation and push run? Or can I just download Duke 3D as I do with roms and put it in the duke rom folder?

  44. RetroGameLover says:

    Hi,

    Thanks for this awesome script :-)

    I got everything up and running, but got a problem with my controller in the Emulation Station menu, when pushing up/down, it jumps several places down instead of just one step down. So I can’t really scroll in the menu :-/

    The controller works in the game and I can move left, right, jump up and down. But the problem in the menu limit the fun, as I can’t choose the games I want, it jumps 10-15 steps,, making it impossible to choose the games I want.

    Example:
    I arrive in the menu and it start with game 1 (a), when pushing the controller button down I would like to go to Game 2, but it jumps 10-15 places down, so instead I go to Game 10-15.
    Game 1
    Game 2
    Game 3
    Game 4
    Game 5
    Game 6
    Game 7
    Game 8
    Game 9
    Game 10
    Game 11
    Game 12
    Game 13
    Game 14
    Game 15

    Would be great if you could help me out. Thanks a bunch :-)

    • RetroGameLover says:

      I got it fixed. I had messed up the es_input.cfg file, I just deleted the /home/pi/.emulationstation/es_input.cfg file and did a reboot, after that I got to map my controller when I reloaded emulation station. Sorry for spamming your page with a stupid question like this. Thanks again for making such a awesome script! Have a nice day :-)

  45. retroarch_fan says:

    First of thanks for setting up this amazing script :-) I have my wireless xbox controller connected and everything start automagically (after some hacking with xboxdrv in bashrc) and boot directly into emulationstation. But sadly my xbox controller drops out every now and then, so I have decided to go for wired generic pc joypads/controller instead. So yesterday I bought a generic pc joypad/controller, I thoght this was gonna be easier to setup than the wireless xbox controller, but I can’t get it to work :-(

    I run ./retroarch-joyconfig and get the controller mapped (so it is connected and works), then I add the output of my mapping in the retroarch.cfg file (I got mine in /etc), then I reboot, but the controller just don’t work, the led is lighting up, but nothing happens when I push the buttons. Kind of weird as it does work when mapping in ./retroarch-joyconfig.

    I have also tried ./retroarch-joyconfig >> ~/.retroarch.cfg and map the controller, reboot, but still nothing :-/

    I would be very grateful if you could help me out here, thanks in advanced :-)

      • retroarch_fan says:

        Thanks for the fast reply :-)

        I do not have any folders named /Retropie/configs/all. Should I do a re-install?

        I am pretty sure the retroarch.cfg file placed in my /etc folder has been used by emulation station before, when using the wireless xbox controller I did changes to the retroarch.cfg in /etc and that worked.

      • petRockBlog says:

        The folder should have the absolute path /home/pi/RetroPie/configs/all/. Otherwise I would suggest that you re-install the components with the RetroPie script according to the steps provided, for example, in the wiki.

  46. Flipp says:

    Hey again, sorry for my many questions, i am a real linux noob. Did you ever test RetroArch with the SDTV out? Genesis has just a black screen with sound and the duke3d switches back to the menu after showing a red screen for 1/10 second. Don´t have a HDMI cable and also wanted to use a old school tv. Tried manual installation and your image 1.3. Always the same problem. Doom, SNES and NES work, the others i didn´t test.

  47. Frank says:

    I´ve also solved the problem. I use a german keyboard with the german keymap. I think, because of activating the additional AltGr button, the emulator does not recognize the ESC button. So deactivated the additional AltGr button in raspi-config and it works like a charm!

    • petRockBlog says:

      For now, the only way would be to use the SD card image. The RetroPie Setup Script needs internet access to download the binaries or at least the sources for compilation (depending on the chosen installation type).
      I have added an enhancement suggestion to the repository that will add an automatic copy service for attached USB sticks. I cannot tell, however, when exactly this feature will be implemented.

  48. PI-RO says:

    Does Audio work over the HDMI op? If so, could someone pass this bit
    of information on. I had it working over analog but very poor sounding,
    at 44000 and 44100 it is next to unbearable. I heard of someone getting
    audio over HDMI and was rather impressed by the results…

      • PI-RO says:

        I normally get audio over the HDMI. Raspbian, OpenELEC are working but I get no audio over HDMI with RetroPi… Is there an HDMI setting in config that will force audio over HDMI? Or what am I not doing to get that working? Thanks a lot for all of your work guys, I have tried a couple of other setups, including Glint, and I say, HANDS DOWN, this is the best work done thus far. (I just need the HDMI audio working)

  49. Jeffrey Delorean Lampert says:

    This is most likely a stupid mistake on my part, but when emulation station runs I can navigate perfectly fine with my keyboard, but my Xbox controller doesn’t seem to be have any effect. However once I actually start a rom I have full control. Does anybody know of a way to fix this?

      • PI-RO says:

        then again… I couldn’t find anything there, I am sure when Florian gets back to you, he will have an answer.

    • petRockBlog says:

      I would try and delete the file ~/.emulationstation/es_input.cfg, which contains the control settings for Emulation Station. If you have a joystick / game pad connected, Emulation Station will come up with a config screen on the next start to map your joystick buttons to the controls of Emulation Station. Hope that helps!?

      • PI-RO says:

        Works like a charm. Have my PS3 controllers working well. Still trying to figure out how to get audio over my HDMI. IS there a force audio over HDMI command? Or is there a better way to remedy this?

  50. PI-RO says:

    I am having the same issues with keyboard. Pretty sure it is not a power issue considering it works will all other OS fine. No ESC assigned (or I don’t know the key combo), unable to back out of game once emulation has started. Must unplug (sure Pi loves that) each time I start a game, just to get back to main screen. Also, is there a way to config HDMI for audio output? I have no sound over HDMI, haven’t tried analog, heard it is real poor so I thought I’d save myself the aggravation. Most games run great (just won’t stop)…

  51. Frank says:

    Thanks for the possibility to play these games on the RPi.
    Sadly I also have control issues with my RetroArch. When I am in the emulator e.g. for a Game Boy, I am able to use all control keys on the keyboard (left,right,up,down,A,B,start) except ESCAPE. So I am not able to quit or save the game and the emulator. All modifications of the retroarch.cfg at were unsuccessful. Perhaps you can help me! Thanks!

    • petRockBlog says:

      I have heard of some USB keyboards that need too much power and, hence, lead to some strange behavior when it comes to key inputs. Maybe using another keyboard solves this!?
      Usually you do not need to alter retroarch.cfg for this function, but just to make sure that you are editing the right file: It should be ~/RetroPie/configs/all/retroarch.cfg. If you have a game pad, you could also try to use that for exiting RetroArch emulators.

      • Alan James C says:

        I’m having exactly the same problem, tried with with two keyboards both 5V 100ma, and I can’t escape either. I’ve also tried changing the key in the config. It seems the cfg changes are being ignored? I’ve also tried putting my keyboard into a powered USB hub, this doesn’t fix the issue and causes a constant weird buzzing sound when retropie launches.

      • Alan James C says:

        When do I do this? I installed from the image so my pi automatically boots into retropie, I just tried it remotely from my PC then entered a SNES rom and nothing has changed

  52. Phillip says:

    I know you’ve probably already answered this before but I am having some difficulty figuring out the key mapping for RetroArch. For example, I can’t figure out the “Player 2” controls for SNES and MAME. Thanks!

  53. Bill says:

    Kind of a noob here.. I made this setup for my nephews. I am able to start ES up by running the ’emulationstation’ command, but want it to autostart. Is there a way to do this, so that the only input device I need connected is my gamepad?

  54. Mark Stewart says:

    When installing this on Xbian using your script it seems to install fine but when I try to run emulation station I get:

    “error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory”

    It also seems to break xbmc as the pi boots properly and then Just stays on a black screen forever, I can still ssh into the pi so I think it’s just xbmc that’s broken. The weird thing is I installed retropie without problems on the same version of Xbian (alpha 4) last week and it worked perfectly.

    • petRockBlog says:

      Sorry to hear that!

      Did you use the binaries-based installation? I have also observed this problem recently – running sudo rpi-update from a remote shell, followed by a restart solved that problem for me. I hope to upload a fixed version of the RetroPie script today.

      • Mark Stewart says:

        I had the same results with both source and binaries-based installations.

        I just ran rpi-update and have a similar error when starting xbmc but this time referring to “libtag.so.1”

  55. RetroFan says:

    Is there any change that parts of this project …

    http://chameleon.enging.com/

    … will merge in to RetroPie?

    ChameleonPi already has working (console-based) versions of C64-, Amstrad CPC 464- and other emulators running.
    Although I still prefer this initialization script – compiling (most) of the emulators itself and utilizing EmulationStation – there sure would be some parts in ChameleonPi we could benefit from.

    • petRockBlog says:

      The Chameleon project looks very interesting and it seems as if a lot of work is going into that!

      If you find that some feature should also be included by the RetroPie Project just tell it here or at Github. It would even be better if someone posts a short shell script that could be added to the RetroPie Script without major modifications ;-)

      I really see the RetroPie Project as a community project that lives from the contributions, comments, suggestions, and reports to it! As long as people take part in this project it will further evolve.

  56. acott says:

    Hey, Thanks so much for this amazing piece of software its the only reason I bought a Pi! I have run the install from the project image and emulation station is showing, I can play Duke Nukem but cant play any other roms! I placed all roms in their correct folders and unzipp they accordingly. But when I try to luanch a rom it cuts out and takes me back to emulation station, when i look back it says ‘segementation fault’ any way to fix this?

      • acott says:

        Hey I did a fresh install and all seems to be working now! Just a quick question, its listing games I havent installed roms for, is there a way of clearing these so they dont show and only games which I have the roms for are displayed? Thanks again for all your help and for this cracking piece of software

      • petrockblog says:

        Glad to hear!

        You can manually edit ~/.emulationstation/es_systems.cfg, e.g., via “nano ~/.emulationstation/es_systems.cfg”, delete the systems that are not wanted via Ctrl-K, and exit via Ctrl-X.

      • petRockBlog says:

        Glad to hear!

        You can manually edit ~/.emulationstation/es_systems.cfg, e.g., via “nano ~/.emulationstation/es_systems.cfg”, delete the systems that are not wanted via Ctrl-K, and exit via Ctrl-X.

  57. Louie says:

    Hi guys. I’ve managed to run through the setup and have gotten to the stage when at startup I have a red stripe running across the screen with “prboom” written, and Doom at the top of the page. My problem is that keyboard input has completely stopped working so i can’t navigate away from this page or even launch Doom. What am I doing wrong here ?

      • Louie says:

        all the ROMs are in the appropriate folders, all unzipped and in the correct formats, all tested before they were uploaded. Another strange thing ive noticed is that if i move the mouse when the white dot appears, more dots appear and move with the mouse and then i get a red, garbled screen that is clearly reacting to mouse input but is too garbled to see. Don’t know if this is related. Is there a way of bypassing emulation station booting at startup ? As I said, keyboard input when it loads is completely disabled.

      • petRockBlog says:

        I have not heard of such a behavior so far … maybe it is a powering issue. Does the same thing happen, when you restart the RPi and disconnect the keyboard from the very beginning?

        You might be able to ssh into the RPi, start the RetroPie Setup Script and disable auto-start on boot of Emulation Station in the setup menu.

      • Sam says:

        Has this bee resolved? I am having the same problem. The emulation station boots and it just sits on the doom “prboom” screen. No key press will work except for the enter key, and when I hit enter it just runs a couple lines really fast an comes back to the doom screen.

      • petRockBlog says:

        It sounds as if Emulation Station cannot find any ROMs in your case. The image has no ROMs pre-loaded. You need to copy ROMs into the folders ~/RetroPie/roms/[snes|megadrive| …]. Afterwards you can switch the systems with the left and right keys, start games with ENTER, and so on. I think @Louie has a different kind of problem with his setup.

  58. chelleyf says:

    Hi folks. Setup is mostly working here (Big thanks to all for the serious work gone in to it this far)
    On a different note, My X-Arcade Dual is not being recognised by the Pi in any form. By a game or in Terminal. Any tips to get it up and running??? I have an issue with NES emulation but from reading, a “pull” should sort it.

      • petRockBlog says:

        Unfortunately, I do not own such a such. But I have to admit that it looks tempting!
        First of all you would need to look for how the device registers (if at all) in the system (joystick, keyboard, etc.). You could do that, e.g., with “dmesg”.
        Maybe someone at the official Raspberry Forum has written about this?

      • Phillip Britain says:

        From my understanding, it acts just a usb keyboard so I guess it would be just a matter of matching up the right buttons to the right inputs. Speaking of, how might I go about changing the key mapping for the emulators?

      • Phillip Britain says:

        Sorry to keep bugging you but when I run “dmesg” it defiantly is being recognized as shown in this picture http://imgur.com/gKvgRL2, but I am confused about the path that it is supposedly in. Also I have found that it is working “out of the box” to a certain extent with some games that I’ve tried but the issue is that the keys are mapped to random buttons and neither of the joysticks are working so I’m not quite sure where to go from here.

      • Phillip Britain says:

        when I run “./retroarch-joyconfig” its says “Couldn’t open joystick #0.” Any suggestions?

        Also, I have discovered that the X-Arcades buttons and joysticks are basically configured like a keyboard. In the terminal I have verified that all of these (http://www.xgaming.com/service/images/Layouts/PC-MAC.htm) are correct. The issue that I’m still dealing with is how to set the keymaps so that “2”, “1”, “Left Shift”, etc. is the same things as “down”, “enter”, “A” (SNES games for example), etc. respectivley on the keyboard.

        I know its a simple fix, I just can’t figure out how to do it!

      • petRockBlog says:

        Also keyboard mappings are configured in the file /home/pi/RetroPie/configs/all/retroarch.cfg!

        You can edit it, e.g., via “nano /home/pi/RetroPie/configs/all/retroarch.cfg” and save your changes with “CTRL-X”.

      • chelleyf says:

        Hi. Sorry for the delay. Time on this project is at a premium these days. So far, I can confirm that the X-Arcade registers as a keyboard when the Pi boots. So if you have this and a keyboard plugged in, the X-Arcade registers as keyboard 1 instead of keyboard 0. I haven’t got around to mapping the keys yet. There are different programmable pre-sets on the arcade but I’m not sure if they are useable on the Pi yet!
        On another note, I’m trying the pre-compiled version on another card at the moment but same problem with SNES emulation. Black screen…

      • petRockBlog says:

        If it registers as a keyboard I assume that you “only” need to adapt the key mapping in ~/RetroPie/configs/all/retroarch.cfg.

        I tested the script with a Samsung TV via HDMI and with a Packard Bell LCD screen via HDMI. Sound and video is working there without any issues. People have reported several issues with sound over HDMI oder video over composite/HDMI depending on the devices the Raspberry is attached to … There still has some work do be done, until these kinds of problems have been solved. Community feedback like this is the best way, I would say :-)

      • chelleyf says:

        Hi again. I have looked into the retroarch.cfg file (451 lines). To be honest I don’t know where to start. I know the X-Arcade defaults to 2-4-6-8 for up-down-left-right etc. but how can I map a NES/SNES controller a megadrive/Mastersystem controller through here? Default mappings for the X-Arcade are as in the pic? Any direction would be much appreciated

      • petRockBlog says:

        Just a heads up on this topic: I got an X-Arcade Tankstick as a courtesy of Xgaming. There will be a post about making it work with RetroPie soon.

      • chelleyf says:

        Hi. I am wondering if there is a resource to refer to the keys correctly while trying to map the X-Arcade. e.g. do you type:

        input_player1_a = lctrl OR
        input_player1_a = left ctrl
        Just wondering is there a reference guide anywhere that explains the correct way to refer to the extended keys

      • Phillip Britain says:

        Not yet, I’m still trying to figure out how to get “Player 2” controls to work on things like the SNES emulator. Let me know if you get things working!

  59. devini01 says:

    Hi there, quick question. I got the emulation station to load correctly and was able to play a SNES game and it was working great. I then set it up to boot emulation station on startup but now the menu appears when it loads and I cannot seem to get rid of the menu. I have tried f1 to get rid of it but I am still unsuccessful. Do you have any ideas on what could cause that?

  60. Shaun Anthony says:

    It would be nice to be able to choose which emulators to install, when the install script starts. Most of them I’m never going to use, and it seems tedious to spend hours waiting for them all to install.

  61. hoblin says:

    Thanks for the script but i encountered some troubles with NES. It can’t find libretro.so. This lib has name fceumm_libretro.so and symlink solves the problem. Also, themes files in ~/.emulationstation path has wrong paths for images and sounds. It can’t find files with relative paths but when i changed them to absolute all works. Still have troubles with sound. debug.log here http://pastie.org/6094176

  62. ghostwheel says:

    This script is very cool! Thank you!
    I managed to get psx working by putting cd images in the psx folder. I had to edit the emulationstation es_system config file and add the .pbp type, because that is the type of image I have, but it worked.
    However – it seems that the emulator is based on pcsx_rearmed, which I have also installed independently. But my pcsx_rearmed seems to work much better and faster than the one in retro arch. I tried ff 7, and psx_rearmed is playable, whereas retroarch gets stuck at the stars right at the beginning, and is much slower. On the positive side, retroarch rescales to fill the screen, which just pcsx_rearmed doesn’t.
    Ideas?

    Oh, and another question: can one upgrade? Can I just rerun the script to get a new version? Will anything get overwritten? Is there a new version?

    • petrockblog says:

      Thanks for the hint with the .pbp extension!
      Could you give some directions about how you installed pcsx_rearmed? Maybe I will integrate this into the RetroPie script then.

      An upgrade option for the script itself will be part of the next commit for the RetroPie script. To upgrade the components installed by the script you can simply re-rerun it and de-select all steps that write config files. The entries of these steps are marked with “(C)” at the beginning.

      I hope this helps!?

  63. Poutine says:

    This is Awesome! Have everything up and running except MAME the roms show but selecting them takes it back to selection screen. Also i see psx roms folder.. do i need to install something else for this to work or just drop iso in the folder.. Cheers to you my children and I are enjoying this very much

    • petRockBlog says:

      Currently, the MAME emulator is based on iMame4All, which is quite limited with regard to its supported ROMS. AdvMAME is said to support far more ROMS. However, AdvMAME still has to be included into the script. So, if someone finds some time to do that … ;-)

  64. Andre says:

    Hey I’m having a bit of an issue with my emulation station. I believe everything downloaded and installed correctly. I can run emulation station, doom will work no problem, however other rooms seem to not work. I put the rooms in the correct folder, with correct extensions through x. When I select and try to open a rom, it makes a noise goes blank shows the white dot and goes back to emulation station.

  65. smandrel says:

    Hi,

    I have had the same problem for 1,5 weeks, compiling fails for some reason. Earlier it worked perfectly. The code lines imply that some files are missing.

    You Installed via BerryBoot, do you have the overclocking option in raspi-config? I installed raspbian also with BerryBoot and it had some weird repository address (mirror to somewhere). I changed it to the official one found in here http://www.raspbian.org/RaspbianRepository.

    The debug.log is in RetroPie folder.

  66. Dragonkhanrider says:

    I tried 3 times to run the script, and after 5 hours of compiling, installing and configuring through the script, I get a message which says: “Could not successfully compile and install RetroArch. Could not successfully compile Amiga emulator. Could not compile Atari 2600 core. Could not successfully install ScummVM. Could not successfully compile Emulation Station. See debug.log for more details.” I have the latest Raspbian installed, via BerryBoot. Do I need anything else, like dependencies etc.? Also, where is debug.log located? Thank you.

    • Florian says:

      I did not test the script with the latest Raspbian yet. There might be dependency issues. Unfortunately, I do not have access to an RPi for the next three weeks so that I will need this time to fix the script. But, maybe, someone else takes care for that sooner than me and creates a pull request via Github. I could merge the fix then.

      • Chad Adams says:

        I saw your post on raspberrypi.org and I am eagerly waiting for the update!!

    • dragonkhanrider says:

      I copy-paste:

      I finally managed to run the script successfully, but I had to install an older image of Raspbian. I don’t know if this is important, but I skipped the apt-upgrade part, just in case. Everything is working now except for the gamepad, which it seems to work in EmulationStation but not in the games. Also, gba is slow and laggy as hell.

  67. SeattleSinner says:

    How do you set up emulation station to boot on start up after you’ve installed everything (and exited out of the setup)?

    • Florian says:

      I just tried to clone the repository onto the RPi via “git clone –depth=0 git://github.com/petrockblog/RetroPie-Setup” and it worked without problems. Did you maybe have a typo on your command?

      • Stu says:

        Yep. Didn’t realize it was case-sensitive. Now I’m having a new problem. When I run emulationstation, it tells me that it creates a new config file root/.emulationstation/es_systems.cfg. Yet, when I navigate to that directory, no such file exists.

  68. d4m4s74 says:

    Hi. I’ve been noticing a problem. in retroarch, the player 1 controller (SNES via the gamecon controller) works fine, but the player 2 controller (also snes via gamecon) only works when a button on the player 1 controller is pressed. I’ve switched the controllers in the retroarch config, and the problem keeps persisting, but with the other controller. It can’t be the soldering. it works perfectly in jstest. and I use the default config. Have you got any idea?

    • Florian says:

      I just checked this my own. It seems as if there are some roms that have this problem. Super Mario Kart and NBA Jam are working though. So it seems to be a problem of the emulator. Maybe someone has an answer in the RetroArch thread in the Raspberry Pi forum.

  69. Thomas Mueller says:

    “and then ran the retropie config script”

    that means after i copied the roms in the directory i have to run the script again?

    i have no controller at the moment because i want to make sure that the emu is running on my pi. can i test it with the keyboard connected to the usb port? do i have to change something to use the keyboard?

  70. Thomas Mueller says:

    i’ve installed retropie from binaries, copied some roms to the roms folder and rebooted the pi. when i start emulationstation i see something i don’t understand:

    the word “doom” above, the word “prbroom” with red background and the image of a man (maybe a character from a game i don’t know) at the left side.

    how cani start the snes, nes or gameboy-emu?

    • pfooti says:

      What I’ve noticed is that this is a default game that’s provided for testing of emulationstation, and is a Doom WAD file.

      In emulationstation, the left-right arrows switch between systems. When I launch ES, I get the Doom one, and hitting left-arrow takes me to NES. Well, it used to; then I deleted prbroom.wad from the roms/doom directory.

      It’s also worth noting that I was totally unable to get emulationstation to notice my files until I realized that they needed to be unzipped (all my roms were in .gz format, but I unzipped them and made sure that they had .nes, .smc, and .a26 extensions), I edited the file in ~/.emulationstation and added .a26 as a recognized atari2600 format, and then ran the retropie config script, had the script organize things into alphabetical subdirectories.

      I’m not certain if emulationstation has trouble noticing roms or what, but it was definitely a hit-or-miss kind of thing to finally get it to see that I had a bunch of nes roms in the appropriate folders.

      Once all that happened, left-right arrows would switch between systems, then you see A B C … for subdirectories, up-down to select a letter, enter expands, then select a rom and it launches. Play and have fun, until you have to figure out your sound settings.

  71. Cheesecake says:

    Hi,

    First of, A big thanks for putting this togheter. I now have everything up and running with Emulationstation, cover art, nes, snes… Wireless xbox 360 connected and configured.. The whole nine yards :-)

    But, sadly only my nes roms works at full speed. When trying to run snes the sound is messy and everything is very slow. How much do I have to overclock to get full speed on snes roms? how much overclocking is safe?

    I really like the Retroarch and Emulationstation combo, I now just have to turn the power on and everything autostarts flawlessly, I have even setup the xbox 360 controller to auto-connect at startup. But I would really like to play something else than just nes at full speed. Would be very grateful for any tips on how to get the snes to work at full/ok speed. Beside nes what else emulators works at full speed (or close to full speed)?

    Thanks again for putting this script togheter! :-)

    • Florian says:

      Thanks a lot!
      Do you have enable_rewind set to true? If yes, you will get a speed gain by setting it to false.

      I have updated the handling of retroarch.cfg in the recent update for the RetroPie script. It introduces a global and system specific config files.

      I have PC Engine, Atari, Doom, Megadrive/Genesis, NES, Gameboy Color, and SNES running at full speed (with 950 MHz CPU clock).

  72. Troka says:

    I’ve just tried to run the script with build from sources option but it said it wasn’t able to build gba core.
    After reviewing debug.log it seems some (important?) files are missing too:
    http://pastebin.com/iTge42dg

    Not sure why because I haven’t watched the compile running.

      • Troka says:

        Thanks for your quick bugfix!
        The compile worked now.

        Are those files important?
        /home/pi/RetroPie/../.emulationstation/es_input.cfg does NOT exist.
        /home/pi/RetroPie/supplementary/EmulationStation/LinLibertine_R.ttf does NOT exist.
        /home/pi/RetroPie/emulatorcores/fceu-next/libretro.so does NOT exist.
        /home/pi/RetroPie/emulatorcores/uae4all/uae4all does NOT exist.

        Because I still have some trouble getting emulationstation to work (currently not showing any emulator although I added some snes roms)

  73. martapp says:

    Great work on the script – I set it running and made an source based install of everything.
    At the end emulation station will launch, but the fullscreen view looks zoomed in and I can only access Duke Nukem and PRBoom using the arrow keys – none of the other emulators show up. Do they only appear if there are ROMs on the system, or should I expect a full list? Would I be better off restarting with a binary install first?

      • martapp says:

        Thanks Florian; now I’ve put some other roms on there, it’s showing the extra systems fine.
        I’ll start out configuring controllers next – I have some different USB ones lying around.

  74. ghostwheel says:

    OK, I switched to raspbian + xbmc. Now sound works, almost all seems nice! Really great!!! Thank you!!
    One thing that is not perfect is the aspect ratio. As I mentioned above, I have to manually set the aspect ratio to 0.75 for mame to look nice. But then gba is too narrow.

  75. ghostwheel says:

    I’m also trying to get it to work on raspbmc. The main reason is that I couldn’t get xbmc to produce music on raspian… has anyone managed to do that? I’m just trying to have a retro game machine + jukebox + picture frame working.

    Anyway, the problems I have are the following:
    1. I can’t get any sound. imame4all runs, I can play games, but there is no sound. I noticed that pulse was uninstalled when RetroPie was installed- when there is no pulse, what is the other way imame4all plays sounds? Is there a way to debug what’s going on?
    2. When I first started emulatorstation, it detected that I have a joystick connected, and es_input.cfg contains hat looks like correct data, but the joystick does not work in imame4all.
    3. The image in imame4all looked pretty bad. I managed to get it to look better by setting
    video_smooth = false
    and
    video_aspect_ratio = 0.75
    but it woud have been better if the aspect ratio was just automatically set correctly (without that line, the image has a ratio of 1:1, I think)

  76. shr00msh00ter says:

    dude, this is awesome! i got it working on my Pi now. So I put a SNES marioKart ROM inside the SNES roms folder, started the rom, but its barely playable… i OC’d the Pi to 1000MHz (Turbo Mode) in the raspi-config. But it still doesn’t run better. memory split is on 50:50.

    Could it be that I start the Pi directly into the GUi, and then switch to the F1 shell to start emulationstation? shoulud I rather start the Pi in console first without GUI and stuff?

    or is there any frameskip setting i can try in config of the snes emulator?

    but thanks for you work so far! VERY useful project!

    • Florian says:

      I would try to NOT start X or to completely close X before running the emulators. This definetely will free resources. Mario Kart should well be playable with a clock of 900 MHz.

      Glad that you like the script!

      • shr00msh00ter says:

        Thanks for the quick answer Florian! I tried to directly boot into emulationstation (enabled through the setup item), but it stopped recognizing my inputs for the front end. but it also didn’t ask me to configure the input again… I assume that I need to move or delete/recreate the config file for the frontend input..?

        another question, is there any other config file than the /etc/retroarch.cfg where i can tweak settings of the emulators? Or does every emulator have a seperate config file?

        thanks for the help and keep your good work up!

      • Florian says:

        Enabling Emulation Station to start on boot does not disable X/LXDE to start on boot. Thus, you also need to disable this with the raspi-config script: Use a terminal and start the tool with
        sudo raspi-config. From there you can disable X/LXDE to start on boot.

  77. David says:

    ok, so I did a clean reinstall. It works… kind of. I’ve tried starting the program 3 different ways, and have had no success.

    first, I tried just double clicking the .exe file and starting emulationstation that way. The program loads up, and I can load roms, but, as expected, I lose keyboard control and can’t do anything. The game started up, but I couldn’t interact with it

    I tried launching from the terminal, but it just said it cant start while x running.

    so I tried launching it from the command line, it said it launched, but that no systems were present and nothing happened. It then asked if i had any games in the rom folder. obviously i do since i could open them from the gui. ughh!! I feel like I’m so close!

    • Florian says:

      the whole script is tested and intended to be used with a Raspbian installation from command line without having X (and, thus, LXDE) running in the background. Your third approach seems to be he most promising one.

      By looking at ~/.emulationstation/es_systems.cfg you can see where Emulation Station tries to find your rom. Depending on your settings and the username during the installation these configurations might have to be adapted.

      • David King says:

        would that change depending on how I run the program? It can load the roms with x running in the background, but when I run it from the command line, it can’t find them I guess. idk, I’ll take another look tonight.

        this is so weird, though, in general. I was a computer science major in college and I have a tech job, but this is really my first time with linux, and I’m surprised at how different things are. It’s taking me a little while to wrap my head around.

      • Florian says:

        The “~” refers to the home directory of the current user, so, in principal, yes – it can change.
        There are reports about several issues when X is running in the background and emulators in the foreground, so I recommend not to have X running.
        You can change to another console on-the-fly by by pressing Ctrl-Alt-F1 (and return to X by pressing Ctrl-Alt-F7). In that console you could run another installation with the RetroPie script and see if that works. With this way you would be sure that X/LXDE is not running in the background.

      • David King says:

        hm, ok, that makes sense. I’ll try that Thank you for all of your help, I really appreciate it. I’m sure this is all obvious stuff I’m asking, so thanks for helping.

  78. David says:

    Every time I try to run anything, it doesn’t work. If I run the program directly, it loads, but when I select a ROM, emulationstation minimizes, nothing happens, then it pops back up.

    if I start it from the terminal, the same thing happens, but in the terminal it says “sh: 1: retroarch: not found” … launch terminated!

    the cfg file points to files in the emulatorcores folder, and the files it’s pointing to are there. idk what to do

    • Florian says:

      There were quite some changes in the sources and organization of files and folders recently and that introduced at least one bug. I have just committed an update for the script and it should work now! You can either run the binaries- or source-based installation.
      Does it work for you now?

      • David King says:

        I’m at work right now, but when I get home I’ll remove everything and try a clean install. Thanks for the update to the script and I hope it works. I’ll let you know this afternoon.

  79. wisconsintropic says:

    So I got this up and running and it works great in NES and SNES and with my $15 radioshack controller. however I am having some trouble with MAME. the only game that seems to work so far is Black Tiger, which is awesome, but I can’t seem to get pacman, galaca or anything else to work.

  80. Chris Leathco says:

    I am having a very hard time getting my controller to work with the emulators. It works fine with the frontend, just not with the emulator. I have tried running ./retroarch-joyconfig >> ~/.retroarch.cfg which starts up the joyconfig and creates a new retroarch.cfg in the tools folder. I took the values of what was in that file and added them to the cfg file in the RetroArch-Rpi folder, but still do not have functioning controls in-game other than keyboard.

    • Florian says:

      If you can run a game and it freezes it is probably an hardware issue – you might try to use another overclocking option (if you are overcklocking at all).
      Also, the RetroPie script is only tested on Raspbian.
      You need to be more a bit more specific about your distribution, what you already have done before, what works, what not works … Maybe the problems also come from changes by some recent official firmware updates.

      • Haskell McRavin says:

        I’m using the CNX image of raspbian. I’ve disabled the overclock and zram to test and this wasn’t the issue. Disabled sdl and that wasn’t the issue. I was able to run all the cores on a previous build, though I was never able to get emulationstation working. I have a backup image with working cores, I guess I can update that image and see if it breaks it, but I’m out of ideas.

      • Florian says:

        You could prepare a fresh, working installation with the official Raspbian distribution (non-CNX version) and the RetroPie setup. You could then find all dependencies for emulationstation via ldd etc. and see if your CNX installation contains all these dependencies (if you want to stick to the CNX version). Just an idea …

      • MrCraigL says:

        I put a rom into the SNES folder, same problem. Trying to launch the SNES emulator with the command I got “-bash: /usr/local/bin/retroarch: No such file or directory”

      • Florian says:

        Hmm, according to your debug.log, retroarch exists at “/usr/local/bin/retroarch”.
        Your command looked like this

        retroarch -L /home/pi/RetroPie/emulatorcores/pocketsnes-libretro/libretro.so “PutNameOfRomHere”

        ?

      • MrCraigL says:

        Here’s what I’ve tried:

        pi@raspberrypi:~/RetroPie/roms/snes$ retroarch -L /home/pi/RetroPie/emulatorcores/pocketsnes-libretro/libretro.so /home/pi/RetroPie/roms/snes/MM2.smc
        -bash: /usr/local/bin/retroarch: No such file or directory

        pi@raspberrypi:~/RetroPie/roms/snes$ retroarch -L /home/pi/RetroPie/emulatorcores/pocketsnes-libretro/libretro.so “/home/pi/RetroPie/roms/snes/MM2.smc”
        -bash: /usr/local/bin/retroarch: No such file or directory

        pi@raspberrypi:~/RetroPie/roms/snes$ retroarch -L /home/pi/RetroPie/emulatorcores/pocketsnes-libretro/libretro.so “MM2.smc”
        -bash: /usr/local/bin/retroarch: No such file or directory

        And here’s the relevant file:
        pi@raspberrypi:~/RetroPie/roms/snes$ ls
        MM2.smc theme.xml

      • Florian says:

        Hmm, I would try to re-install the RetroArch emulator: Start the RetroPie script, choose “source-based (custom) installation”, and then de-select everything except “Install RetroArch”. Hitting ENTER starts the download, compilation, and installation of the RetroArch emulator. The script explicitly checks, if /usr/local/bin/retroarch can be found after the installation and gives a warning if it cannot find it. Does this work?

  81. MrCraigL says:

    Like Colin above I’m getting the error: “/usr/bin/emulationstation: line 9: ./emulationstation: No such file or directory”

    I’m not particularly good with Linux but as far as I can see everything has gone through as instructed (tried both methods of installation) – any suggestions?

  82. pfooti says:

    I just today downloaded and ran the installer (install from binaries) from the Git repo. I think it mostly worked, but I was unable to really test things, as emulationstation wasn’t installed at all. There was no EmulationStation directory created, so the /usr/bin/emulationstation command didn’t do anything useful. Creating the appropriate directories and re-running install-from-binary didn’t work either (I had hoped it was a minor script error).

    I don’t know if this is a one-off error (I’m not installing it on raspbian, but instead on a raspbmc installation, which is mostly raspbian), or a change to the underlying system.

    I tried installing emulationstation manually, but the basic git installation of that failed early in the make process (looking for an open GL library, if I read the error correctly). I am working on doing an install-from-source of retropie right now, I’ll see if that works.

    • Florian says:

      The script is only tested on Raspbian. Thus, I would assume that the binaries-based installation will fail due to different shared libraries. The source-based installation might work, if all missing packages could be installed. For compiling Emulation Station you could specifically follow the steps at https://github.com/Aloshi/EmulationStation.
      For now I concentrate on Raspbian – but you could help a lot of people by posting your solution for RaspBMC-specific problems here!

  83. M says:

    What are the default key bindings for mame games? I can get it run, but can never insert a coin or start the game. Im using a keyboard. Or at least wheres the config file to change the key bindings?

    Hopefully performance will increase over time, even NES games are basically unplayable. :(

  84. fidelgvelasquez says:

    I am currently using the standard Raspbian distribution (2012-08-16), and I installed from source (it didn’t take as long as I had expected), but when I tried to start it for the first time (with no ROMs in the folders), all that happened was a white dot showed up in the middle of the screen. I tried again later, after adding ROMs, but it still didn’t work. I am using a 5V 2A power adapter, an Apple Aluminum Keyboard, a 16GB micro SD (not sure what class, probably 4) with an adapter, and I have my Raspberry Pi overclocked to 900 MHz with 500 MHz SD RAM frequency. I have tested on both HDMI (at 1920×1080) and composite (RCA) video (not sure what resolution, but it was 4:3), and with and without ethernet plugged in. Any suggestions?

  85. Biernot says:

    Hi there, I installed RetroPie and put some roms in the /roms/snes/ folder. When I start emulationstation, I can see a list of my roms and can select one of them with the UP and DOWN keys (keyboard). But I cant start a rom. I have tried any other key on my keyboard but nothing happened.

    I also dont have a es_input.cfg in my home/pi/.emulationstation/ folder.

    Please help

  86. Brian says:

    Hi Florian,
    I followed some steps you posted in another forum and removed the install completely, re cloned the git and re-ran the install script. It worked like a charm!
    Thanks Again,
    -Brian

  87. Brian says:

    Hi,

    I went ahead and followed your steps to getting EmulationStation/RetroArch installed on my system today. I followed the Binaries method, as I doubt building from source would be worth it for me. I received the es_systems.cfg error that was described earlier. Is it possible a change was made to the script since? Or should I be looking for something wrong on my end?

    Thanks,
    -Brian

    • Florian says:

      Hi Brian,

      I will check this later today! Update: I ran the script on a fresh Raspbian installation and everything worked out of the box.

      Until then you can first of all try to start a ROM from the command line (https://github.com/retropie/RetroPie-Setup/wiki/How-would-I-start-from-command-line,-say,-the-SNES-emulator-by-itself%3F)
      If this works, it is “just” a problem with the es_systems.cfg. Take care for lower- and uppercase extensions:
      Atari 2600: .bin
      Doom: .WAD
      Game Boy Advance: .gba
      Game Boy Color: .gbc
      MAME: .zip
      Megadrive: smd
      NES: .nes
      SNES: .smc

      • Brian says:

        Thanks for getting back to me so quick! I will try to run it from command line first, if that doesn’t work, I looked at the script so I will just write the es_systems.cfg myself.
        Thanks,
        -Brian

      • Florian says:

        I have found a bug in the binaries-based installation that affects the access rights to the EmulationStation configurations. The repository was just updated and the fixed script might also solve your problem!?

  88. Simon says:

    Somehow the Source-code based installation doesn’t work for me, i tried it last week and afterwards i couldn’t get the Raspberry to boot, i was stuck with a single red LED.
    After that i tried the faster binaries-installation, which worked withouth problems.
    Now i wanted to give the Source-code based installation a new chance as i wanted to have the newest, best running emulators, and again i’m stuck with the red LED.

    Running on a fresh Raspbian, during the installation i got errormessages that no space was available, and it couldn’t write.

    • Florian says:

      It seems as if you might not have your resized your partition to its full size.
      You can check this with the command “df -h”. /dev/root shows you the free space of your “main” partition. What size does your SD card have? You can do a resize of your partition with the shell command “sudo raspi-config” and then choosing “expand_rootfs”. You need to reboot your Raspberry with “sudo reboot” afterwards.
      Does this solve your problem?

      I have updated the free space check in the script. It now checks for 500MB of free space (it was 300MB before).

      • Simon says:

        Thanks for the fast reply,
        resizing the partition did the job, i had 332MB free space
        Now i just need to tackle a few more problems and i’m ready to play secret of mana again =)
        I have the sound barely working and my dualshock2 controller via usb-adapter isn’t always working as it should be.
        Is there an FAQ somewhere to be found? It is a little bit frustrating to keep digging through 4 threads on the Rpi forums that are related to Retroarch and comments on your blog for every little problem someone has perfectly answered before.
        Also i would like to have a list of all the keybindings of the keyboard to the emulationstation and the emulatorcores.

        I’m sorry if I just came up with more problems and questions but I would really love to be able to use Retroarch in all its Glory =)

      • Florian says:

        Good to hear that you are making progress!
        Hmm, Besides the official forum, I do not know any FAQ for running RetroArch etc. on the Pi. I have prepared a wiki on the RetroPie setup site at https://github.com/retropie/RetroPie-Setup/wiki. Right now, there is no content. But that wiki could serve as a source of all kinds of collected information around the components that are installed with the RetroPie setup script.

        WRT to Emulation Station: You can use the arrow keys for navigation, the F1 key for reboot and shutdown, and the F4 key for exiting Emulation Station.

        All settings for retroarch can be found in /etc/retroarch.cfg (if you use only the original RetroPie script) or, alternatively, in your home directory at ~/.retroarch.cfg.

        Sound is an ubiquitous problem with the RPi and is tackled by the community these weeks and months (at least that’s my impression).

  89. Colin says:

    Running into a problem with starting emulationstation and retroarch — both are giving me bash “No such file or directory” errors. The binaries appear to be where they should be, and they both are marked as executable. Also, ldd is telling me that all the .so files are being found… Any thoughts?

    • Florian says:

      Hmm, I tested the current release again and everything is working here. I tested it on a fresh Raspbian installation by following the exact steps that are described above.. Everything must be run from the shell only, without X running in the background.

  90. Gubernatio says:

    HI there, Sorry if this is a really stupid question, but I have gone through the installation script and used the binaries based install. All seemed ok.
    I then put some game roms into a few of the system folders, (snes, gbc, gba and atari 2600).
    I then turn on my pi, log in, and then type emulationstation.
    It then returns with :
    ~/RetroPie/EmulationStation ~
    ~mulationStation cleanly shutting down…te it.ion / es_system.cfg was found but contained no systems

    Being a complete linux novice on a steep learning curve, I haven’t a clue what this is referring to. 8/
    Thanks in advance :D

    • Florian says:

      Hi Gubernatio,
      I just checked this and I found a bug in the script – thank you for pointing me to that one!
      I commited a fix for that that should solve this problem. For you the easiest thing would be to delete the RetroPie-Setup folder and to download and start the setup script again (as described at https://github.com/retropie/RetroPie-Setup). You can then run the binaries-based installation again and things should work!
      Please tell me if this solved your problem.

      • Gubernatio says:

        Thanks for the quick reply!
        I think that helped as I now get into the menu system! yay
        However I don’t seem to be able to start any games. Only F4 on keyboard or Start button on the gamepad seem to do anything, and that’s to open a Restart/Shutdown menu. Am I supposed to do anything to the emulators like add bios files?

      • Florian says:

        Make sure that the extensions of your rom file are written in lower-case letters (except for Doom, there it is “.WAD”).

        Instead of starting the ROMs with EmulationStation, you could also try to start them directly from the console.

        cat ~/.emulationstation/es_systems.cfg

        shows you the commands that EmulationStation is using to start the ROMs. You have to replace %ROM% with the path to your desired rom file.

        I hope this helps?!

  91. tnt06 says:

    Has anyone used this running raspbmc? I was wanting to play NES roms using xbmc with the advanced launcher plugin. I’m not sure what to launch though: Emulation Station/Retro Arcade/NES specific emulator?

    • Fred says:

      I got the RetroPie suite (including retroarch) compiled on raspbmc. In trying to compile retroarch manually I noticed it was looking for several header files which on the wheezy platform exist in /opt/vc/include. These files are put there when the firmware is updated via raspi-config.

      The reason raspi-config won’t run is because the ca-certificates package is missing from raspbmc. So,

      # sudo apt-get install ca-certificates

      Once this dependancy was installed I was able to get through the full source build of RetroPie — including, most importantly, the firmware update which installs the missing headers.

      • Florian says:

        Thanks for that hint!
        I will add this to the RetroPie Setup Script. Just to be sure: Did you use the raspi-config or the rpi-update script to update the firmware?

      • fchagnon says:

        I just chceked my command history, and indeed it was rpi-update. Sorry — I mixed the two up.

        Upon installing the ca-certificates package, I did a git clone of git://github.com/Hexxeh/rpi-update.git. I ran rpi-update manully to confirm that it installs the header files in /opt/vc/include.

        Once those files were in place, running the full source build in retropie-setup.sh worked with no errors (which included re-running rpi-update …. for good measure! )

      • Michael Forcer says:

        I’m trying to install retropie on raspbmc but not being very successful.. it’s breaking raspbmc.. shortly after the installation of retropie starts it asks me if i want to replace or leave udev, udev.conf and a couple of other udev files… i also tried the steps ca-certificates and rpi-update to add header files btu when i check in opt/vc there is no include folder? how would i fix this?

  92. Corey says:

    Thanks so much for this–I installed the binaries very easily and set up the NES, SNES, and 2600 emulators. I do have one question: I’m trying to use a Logitech F510 Joypad with an xbox layout. When I try to run retroarch-joyconfig, it doesn’t detect the gamepad. It shows up if I run lsusb, but retroarch doesn’t seem to detect it. If anyone has any suggestions, I’d really appreciate your help.

    • Florian says:

      Hmm, I just checked this behavior myself with the root user. I run the script with ./retropie_setup.sh and everything works. Maybe you were still in an already removed directory? Usually removing RetroPie and RetroPie-Setup with “rm -rf RetroPie…” followed by a new git clone should give you a completely fresh installation.
      Could you maybe try to describe how this can be reproduced?

  93. Eric Kitt says:

    I was reading in the Pi forum a thread concerning setting up the wireless USB Xbox 360 controller. I looked on Amazon for one of the USB connectors (as I have an old controller laying around) and noticed that there are two of them. A Microsoft (expensive) one for $21.99 and a cheaper Xbox 360 one for $12.45. Has anyone tried the cheaper one, do you know if it works or not the same as the Microsoft brand one?

  94. cardz says:

    hello, I am really greatful for this script, I have RetroArch up & running on my Pi, with snes ROMS tested & working.

    I’m struggling with joypad setup. I have a logitech USB PS3 controlelr which seems to work with the Pi. I have managed to configure navigating the emulators/ROM lists with the joypad but cant seem to get it to work with the SNES emulator. I have tried running retroarch-joyconfig however I always get “command not found”

    Is there another way to set up the gamepad for use withing the snes emulator>? Can anybody help?

    THanks.

    • MIDItheKID says:

      In terminal (before startx), browse to the folder where the retroarch-joyconfig is (default should be /home/pi/RetroPie/RetroArch-Rpi/tools) then use the command
      ./retroarch-joyconfig

      This will get the joyconfig running.

      I’m still stuck after this. Some of the buttons don’t register for some reason, and the ones that do, don’t write themself to the configuration. I took note of which button is which, and then tried to apply them manually to the retroarch.cfg, but I must be doing something wrong, because it’s not working.

      • Cardz says:

        Hey, thankyou for the reply. I was getting nowhere without the “./” at the beginning of retroarch-joyconfig! Linux n00b eh?

        I can help you with your problem, running the retroarch-joyconfig alone isnt enough, the output need to be written (appended) to the retroarch.cfg file so it remains after reboot.

        I think the exact command to use is “./retroarch-joyconfig >> ~/.retroarch.cfg”

        Then run the button config again!

  95. Stephen Hanley (@stephenhanley) says:

    Hi I’ve started to use this and love it.
    I was just wondering is there any way of starting Emulationstation on boot instead of going into the terminal and manually starting it. The reason being is I want to turn on my Pi with Joypad attached and not have to do anything through a keyboard or SSH.

    Great work though as you’ve simplified a huge process!

  96. Shawn says:

    Florian, update the retroarch.cfg file with audio_out_rate = 44100
    Using that config the ALSA sound coming from the headphone jack is a lot clearer and has a lot less static.

  97. De_Cadanz says:

    Great! I’m making retro-emulation console too, but with standard USB gamepads. And put it to Russian famiclone called Dendy Revolver.
    1. When I try to launch emulationstation, it says “missed font”, until I place font to the /home/raspbian folder.
    2. I’m get a problem like a Lukeren says. My USB keyboard get off when I start game. But can I bind system hotkeys (exit game, etc) to the joypad buttons? How I can made it? I’m try to write input_exit_emulator = “6” (or just 6), but it don’t work.
    3. EmulationStation curses to roms named with “(“, “[” and “&” characters, its normally?
    4. If you want to make EmulationStation more beatiful, I can help you with graphical elements. Send me e-mail if you want. Or maybe you try Typhon as frontend?

  98. lukeren says:

    I’ve got it working great for SNES (only thing I’ve used so far), but I’m having a bit of a problem with exiting a game.
    F4 works while at the menu (emulationstation), but the keyboard appears dead (caps lock/numlock doesn’t work) when a game is running.
    Am I missing a setting somewhere?

    • Florian says:

      I observed that the Rasperry is very sensitive to the power source. If you have the possibility I would suggest to try another source with at least 1A (1000mA). Or another USB keyboard or an active USB hub.

      • lukeren says:

        I’ll have to see if I can’t get my hands on one then, I’ve got an extra Apple charger, that should supply sufficient power, just need a cable that fits :)

    • machete234 says:

      You can try running it not in the xserver but in another console like ctrl+alt+f1, log in and start emulation station.
      My keyboard then wasnt dead and I can exit a game with esc, f4 closes the whole emulator.
      Nothing is saved when I use esc, at least I think so.

Leave a Reply

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.