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

    Launching games with CLI?

    Scheduled Pinned Locked Moved Help and Support
    retropie 4.2retroarch
    5 Posts 4 Posters 1.1k 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.
    • D
      djaay
      last edited by

      So i am "playing" around in retropie. Just to learn more about Linux in general and to see how everything works.

      So from what i understand. You can launch games directly from the shell? I found this string in runcommand.log:

      Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Adventures of Lolo (USA).zip" --appendconfig /dev/shm/retroarch.cfg

      So naturally i hook up to my RetroPie with Putty in SSH and i run that line. And nothing happens.

      So i am running around Internet searching about launching games from CLI. And i read about it. And the line i found in runncommand.log should work.

      But why doesn´t it? Because it can´t run in my Putty Window? Do i need to "direct the output to my tv" somehow?

      Or does it not work because i am using RetroPie? What am i missing?

      Thanx in advance for any knowledge on the subject!

      UDb23U herb_fargusH 2 Replies Last reply Reply Quote 0
      • UDb23U
        UDb23 @djaay
        last edited by

        @djaay Have you tried to execute that line directly on the Pi with keyboard and TV connected? As far as I know you can't get any graphic mode thru SSH; but I'm not an expert in this area.

        1 Reply Last reply Reply Quote 0
        • herb_fargusH
          herb_fargus administrators @djaay
          last edited by

          @djaay you can launch games through SSH but you cannot play games through the SSH terminal. There is no mechanism for streaming the gameplay. A vncserver may work partially but it requires a desktop environment which retropie doesn't not have.

          In short. No. You can only play games on your TV or monitor the pi is connected to with it's video output.

          If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

          Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

          D 1 Reply Last reply Reply Quote 0
          • D
            djaay @herb_fargus
            last edited by

            @herb_fargus

            Thank you for the knowledge! But my pi is connected to a TV...i thought that i could execute that line and then the game would start on my TV...i´m executing the line from SSH...but from what i understand i actually need to do it in front of my TV (not using SSH)?

            And there is no way to tell Pi that the output should be displayed on the TV and not my SSH client?

            dankcushionsD 1 Reply Last reply Reply Quote 0
            • dankcushionsD
              dankcushions Global Moderator @djaay
              last edited by

              @djaay you can do it via gdb debugger:

              > gdb --args /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Adventures of Lolo (USA).zip" --appendconfig /dev/shm/retroarch.cfg
              > tty /dev/tty1
              > run
              

              bit of a round about way of doing it, but i do this when i'm debugging.

              probably a way to do redirect tty in straight linux also, but yeah.

              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.