RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    SSH: Quit emulationstation command?

    Scheduled Pinned Locked Moved Help and Support
    10 Posts 7 Posters 31.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      opensourcefan
      last edited by

      What command do I use to gracefully quit Emulation Station during an SSH session?

      RPI3, v 3.7 from SD Image, Last update, Bluetooth v1.0, Child-Friendly ES, 3 amp Power Supply, Case w/fan.

      1 Reply Last reply Reply Quote 1
      • S
        sselph
        last edited by

        I'm not sure how graceful you want it to be but killall emulationstation might do the trick. I am behind on versions so something may have changed but worth a shot until someone corrects me.

        Auto-scraper: https://github.com/sselph/scraper
        Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

        1 Reply Last reply Reply Quote 2
        • O
          opensourcefan
          last edited by

          Appreciate the response, thank you.

          I am aware of the "killall" command but I've assumed using it would be a dead stop vs a proper quit where it would save the xml data. I stand to be corrected though if using it will save my data. I was hoping that there would be some fancy command or something, after all hitting the quit button must be evoking some sort of command wouldn't it?

          RPI3, v 3.7 from SD Image, Last update, Bluetooth v1.0, Child-Friendly ES, 3 amp Power Supply, Case w/fan.

          1 Reply Last reply Reply Quote 0
          • Z
            Zigurana
            last edited by

            Well, there is precious little gracefullness going on once the SDL_QUIT event has been recieved: https://github.com/RetroPie/EmulationStation/blob/master/es-app/src/main.cpp#L331
            Sadly, that part includes the deleting (and cleanup + saving) of system xml files, so yeah...

            What should work, is sending the SDL_QUIT event manually, which would be ctrl-c on the console. Maybe via ssh you could try sending 'kill SIGTERM emulationstation' ?

            If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

            1 Reply Last reply Reply Quote 2
            • RionR
              Rion
              last edited by Rion

              I have been looking at this before and I think what we need to is to send function keys command. SSH Client to SSH Server (aka Retropie).

              This is something a found out

              sending-function-keys-f1-f12-over-ssh

              FBNeo rom filtering
              Mame2003 Arcade Bezels
              Fba Arcade Bezels
              Fba NeoGeo Bezels

              1 Reply Last reply Reply Quote 1
              • 2Play2
                2Play
                last edited by 2Play

                Connect wiht your SSH client and type or copy paste below (exact):

                kill $(pidof emulationstation)

                done!

                PS I will be creating a sh script to put in your EmulationStarion Retropie menu. And then go to your Retropie menu for using Steven Selph's Scraper Script (as this is the most obvious reason)

                *You can also quit using F4 keypress or Menu Quit options

                Your friend,
                2Play!

                hiulitH 1 Reply Last reply Reply Quote 1
                • hiulitH
                  hiulit @2Play
                  last edited by

                  @2play Did you end up creating that script? I think it should be added to Steven Selph's Scraper Script so when you try to use it via SSH, insted of telling you "Exit emulation for the scrapper to work properly (or something like this)" it could show you the same warning but with a confirmation form, like "Do you want to close it right now?" that will launch your script.

                  My little contributions to the RetroPie project:

                  • Shell-Script-Boilerplate
                  • Fun-Facts-Splashscreens
                  • Limit-Last-Played-Games
                  2Play2 1 Reply Last reply Reply Quote 0
                  • 2Play2
                    2Play @hiulit
                    last edited by 2Play

                    @hiulit
                    Sorry I ve missed all these as I did not get notifications.
                    I was working on my new RetroPie base called the PlayBox. I have tons of new scripts there and actually I ve added Skyscraper By Lars.
                    Great features, almost all systems supported and many sources for scraping.
                    I loved SSScraper but moved to Skraper.net on PC and now testing Skyscraper.
                    Ive written a script on his channel to install and update it automatically as you had to do all manually

                    I have a script to safely exit ES (created on someone else code - credit given).
                    I think i ll use this to exit ES so Metadata can be written safely and then call Skyscraper or SSS
                    Ill test and report back

                    Your friend,
                    2Play!

                    hiulitH 1 Reply Last reply Reply Quote 1
                    • hiulitH
                      hiulit @2Play
                      last edited by

                      @2play Thanks and welcome back! I've been a little bit out too...

                      Do you have all those scripts like in GitHub or something?

                      When I go back to "finish" my RetroPie setup (you never finish it :P), I'll try and use Skyscraper.

                      My little contributions to the RetroPie project:

                      • Shell-Script-Boilerplate
                      • Fun-Facts-Splashscreens
                      • Limit-Last-Played-Games
                      1 Reply Last reply Reply Quote 0
                      • cyperghostC
                        cyperghost
                        last edited by

                        @hiulit @2Play
                        Maybe this script is interesting for you: Multi Switch Shutdown Script. There you have several options like and parameters like --es-shutdown or --es-restart

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.