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

    Start emulationstation with ssh

    Scheduled Pinned Locked Moved Help and Support
    sshubuntu
    17 Posts 9 Posters 16.5k 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.
    • B
      backstander @Gul
      last edited by

      @Gul
      I'm not sure if this will work in Xubuntu but I believe this is how you accomplish this on an actually Raspberry Pi:
      nohup emulationstation &

      I remember have trouble doing something like this many many years ago and I vaguely remember using something like DISPLAY=:0 to tell it to launch on X windows.

      G 1 Reply Last reply Reply Quote 0
      • G
        Gul @backstander
        last edited by

        @backstander

        Hey, ive made a script with your input :

        export DISPLAY=:0
        nohup emulationstation &

        This seems to be working so far. Thanks :).

        1 Reply Last reply Reply Quote 1
        • C
          chronics
          last edited by

          This works for me in as far as I can start emulationstation but once I try to actually start a game I just get a black screen. Playing around with some of the XDG environment variables to see if that makes a difference.

          1 Reply Last reply Reply Quote 0
          • J
            jmpv85
            last edited by

            I have exactly the same behaviour... have you found anything? I'm stuck on this.
            Thanks.

            1 Reply Last reply Reply Quote 0
            • S
              simondid
              last edited by

              any updates on this with the blank screen?

              AlexMurphyA 1 Reply Last reply Reply Quote 0
              • AlexMurphyA
                AlexMurphy Banned @simondid
                last edited by

                @simondid I just tried this and it works fine. After launching emulationstation from SSH. It displays the tty on my TV, then loads. I can launch ROMs no problem. It just shows the terminal on my TV for a few seconds then launches into the emulator. However, when I try to launch something from the RetroPie configuration menu, the Set-Up Script for eg, it does not show on the TV but on the device I am using to SSH with. I can then use my controller to navigate out of it.

                DarkWolfD 1 Reply Last reply Reply Quote 0
                • DarkWolfD
                  DarkWolf @AlexMurphy
                  last edited by

                  As Emulationstation is rendered with OpenGL and "forced" to output through HDMI (or whatever output you use) and the retropie scripts are "rendered" on the command line, ES shows up on screen and retropie scripts/raspi-config on the console you launched ES with

                  System: Raspberry 3 Model B, RetroPie 4.2.1
                  Storage: 16gb Micro SD, 64gb USB Drive
                  Theme: Updated NBBA

                  Documentation solves many problems: https://retropie.org.uk/docs/

                  1 Reply Last reply Reply Quote 0
                  • S
                    simondid
                    last edited by

                    i just made a post describing my problem a bit more in detail
                    link text

                    @DarkWolf
                    is there any way to force the system emulator to be launch in a specific x session?

                    AlexMurphyA 1 Reply Last reply Reply Quote 0
                    • AlexMurphyA
                      AlexMurphy Banned @simondid
                      last edited by

                      @simondid Pardon my lack of technical knowledge but ES will not run on X or when the X server is running, not on the Pi anyway. I'm just not familiar with RetroPie on other platforms but does it not use SDL?

                      DarkWolfD 1 Reply Last reply Reply Quote 0
                      • S
                        simondid
                        last edited by

                        hmm wired that is not a problem i'm having atm it dos require a kinda special command to launch es from my java program which is launch as part of an x session but i'm no linux expert

                        AlexMurphyA 1 Reply Last reply Reply Quote 0
                        • AlexMurphyA
                          AlexMurphy Banned @simondid
                          last edited by

                          @simondid Me neither. I think we might both just be groping in the dark. Hopefully someone more linux-savvy will assist. I only chimed in to say it runs for me using a Pi3.

                          1 Reply Last reply Reply Quote 0
                          • DarkWolfD
                            DarkWolf @AlexMurphy
                            last edited by

                            @AlexMurphy Apologies... Yes it does, I mean it uses SDL, I guess I was irretated by the OpenGL parts in the source code I saw this day

                            @simondid So your problem is that the retropie script windows, or whatever, are "displayed on the wrong screen" leading to a black screen?

                            System: Raspberry 3 Model B, RetroPie 4.2.1
                            Storage: 16gb Micro SD, 64gb USB Drive
                            Theme: Updated NBBA

                            Documentation solves many problems: https://retropie.org.uk/docs/

                            1 Reply Last reply Reply Quote 0
                            • S
                              simondid
                              last edited by

                              i'm not a 100% on what the problem is but what i think is happning is that the runcommand script which is run when you select a game is missing some kind of launch option just like when i'm launch es with this command

                              sudo -u pi env DISPLAY=:0 XAUTHORITY=/home/whoever/.Xauthority emulationstation

                              do you know if there is any way i can get some kinda logfile from the runcommand script ?

                              DarkWolfD Howitzer99H 2 Replies Last reply Reply Quote 0
                              • DarkWolfD
                                DarkWolf @simondid
                                last edited by

                                @simondid Uhm, no, I'm not 100% sure but I think there is no logging going on

                                System: Raspberry 3 Model B, RetroPie 4.2.1
                                Storage: 16gb Micro SD, 64gb USB Drive
                                Theme: Updated NBBA

                                Documentation solves many problems: https://retropie.org.uk/docs/

                                1 Reply Last reply Reply Quote 0
                                • Howitzer99H
                                  Howitzer99 @simondid
                                  last edited by

                                  @simondid All the error messages from these scripts will be logged in runcommand.log, which resides in the same directory that runcommand.sh is in.

                                  More info here: https://github.com/RetroPie/RetroPie-Setup/wiki/Runcommand

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jdewit
                                    last edited by

                                    I got it to work using 'screen'

                                    sudo apt-get install screen

                                    $ screen -d -m emulationstation

                                    1 Reply Last reply Reply Quote 0
                                    • 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.