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

    Steam/Moonlight - Running games directly from EmulationStation

    Scheduled Pinned Locked Moved Help and Support
    moonlight
    18 Posts 2 Posters 4.8k 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.
    • mituM
      mitu Global Moderator
      last edited by

      @StonedEdge said in Steam/Moonlight - Running games directly from EmulationStation:

      Would this theoretically be possible with directly launching ROMs over moonlight?

      Would what be possible .. ?

      StonedEdgeS 1 Reply Last reply Reply Quote 0
      • StonedEdgeS
        StonedEdge @mitu
        last edited by StonedEdge

        @mitu

        I'd like to use something like this to allow to add individual ROM files (not executable programs) to the GeForce Experience gamelist, so they can be ran from EmulationStation and thus generated as gamelist entries. Will report back if it works.

        https://github.com/Uklosk/nvidia-gamestream-presets-tool

        Check out my build logs below:
        Wii SPii (Wii in a GBA SP Shell)
        https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
        Retro Lite CM4
        https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

        StonedEdgeS 1 Reply Last reply Reply Quote 0
        • StonedEdgeS
          StonedEdge @StonedEdge
          last edited by StonedEdge

          @StonedEdge

          The above rust script works well and I can now load ROMs directly from the EmulationStation/Pegasus-FE front ends! For anyone interested, see here:

          The only issue I’ve found with Pegasus-FE and moonlight is that HDMI blanks (i.e the HDMI signal completely cuts off) consistently after 10 mins of streaming. The stream however keeps running fine as audio is present and my controller still functions as normal.

          Is there something emulationstation does to keep HDMI from blanking mid-stream in moonlight that I could carry over to Pegasus-FE environment? I don’t experience the same HDMI blanking when launching moonlight from emulationstation.

          Check out my build logs below:
          Wii SPii (Wii in a GBA SP Shell)
          https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
          Retro Lite CM4
          https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @StonedEdge
            last edited by

            @StonedEdge said in Steam/Moonlight - Running games directly from EmulationStation:

            The only issue I’ve found with Pegasus-FE and moonlight is that HDMI blanks (i.e the HDMI signal completely cuts off) consistently after 10 mins of streaming. The stream however keeps running fine as audio is present and my controller still functions as normal.

            It's the screensaver.

            StonedEdgeS 1 Reply Last reply Reply Quote 1
            • StonedEdgeS
              StonedEdge @mitu
              last edited by

              @mitu

              Ah, gotcha! Is there a way to disable that? I assume with xscreensaver?

              Check out my build logs below:
              Wii SPii (Wii in a GBA SP Shell)
              https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
              Retro Lite CM4
              https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @StonedEdge
                last edited by

                @StonedEdge said in Steam/Moonlight - Running games directly from EmulationStation:

                Ah, gotcha! Is there a way to disable that?

                Yes, your desktop environment should have some settings to disable the screensaver or monitor blanking. What is your desktop env ?

                I assume with xscreensaver?

                I doubt it.

                StonedEdgeS 1 Reply Last reply Reply Quote 0
                • StonedEdgeS
                  StonedEdge @mitu
                  last edited by StonedEdge

                  @mitu I’m using the standard LXDE package with the official RetroPie image, installed from RetroPie-Setup. I tried installing xscreensaver and disabling it that way but unfortunately the screen is still blanking... tvservice -p command brings it back to life so its definitely something to do with the blanking... despite it being disabled, strange...

                  Check out my build logs below:
                  Wii SPii (Wii in a GBA SP Shell)
                  https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
                  Retro Lite CM4
                  https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by

                    Run

                    xset -dpms s off s noblank
                    

                    after starting desktop session and before starting any program.

                    StonedEdgeS 2 Replies Last reply Reply Quote 0
                    • StonedEdgeS
                      StonedEdge @mitu
                      last edited by StonedEdge

                      @mitu Hmm, unfortunately this didn't seem to work. I tried adding the below to the moonlight.sh script in the /opt/retropie/supplementary/moonlight directory, but it didn't seem to change anything... EDIT: Nvm, turns out the dpms commands wouldn't work for me unless I enabled it. See here: https://forums.linuxmint.com/viewtopic.php?t=329548

                      #!/usr/bin/env bash
                      export XDG_DATA_DIRS=/opt/retropie/supplementary/moonlight/share
                      export XDG_CONFIG_DIR=/opt/retropie/configs/all
                      export XDG_CACHE_DIR=/opt/retropie/configs/all
                      xset -dpms s off s noblank
                      /opt/retropie/supplementary/moonlight/bin/moonlight "$@" -audio default
                      

                      Check out my build logs below:
                      Wii SPii (Wii in a GBA SP Shell)
                      https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
                      Retro Lite CM4
                      https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

                      1 Reply Last reply Reply Quote 0
                      • StonedEdgeS
                        StonedEdge @mitu
                        last edited by StonedEdge

                        @mitu

                        After to speaking to the developer it seems that Pegasus-FE doesn’t run in an X11 environment but rather on top of Open GLES/EGL, so perhaps X11 commands don’t work here. Is there a way to pause it somehow using EGLFS that you’re familiar with? Perhaps xset commands have no affect...

                        Check out my build logs below:
                        Wii SPii (Wii in a GBA SP Shell)
                        https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
                        Retro Lite CM4
                        https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

                        1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator
                          last edited by

                          @StonedEdge said in Steam/Moonlight - Running games directly from EmulationStation:

                          After to speaking to the developer it seems that Pegasus-FE doesn’t run in an X11 environment but rather on top of Open GLES/EGL, so perhaps X11 commands don’t work here. Is there a way to pause it somehow using EGLFS that you’re familiar with? Perhaps xset commands have no affect...

                          This is the same display method used by EmulationStation, so there shouldn't be a difference here. Most likely Pegasus is not controlling the display video during a gameplay so I don't think it has any influence on how the display blanking is checked.

                          StonedEdgeS 2 Replies Last reply Reply Quote 1
                          • StonedEdgeS
                            StonedEdge @mitu
                            last edited by StonedEdge

                            @mitu Hmm, OK then. Well I'm a bit stumped... tvservice -p brings back the display entirely so it is definitely a HDMI related blanking problem.

                            Check out my build logs below:
                            Wii SPii (Wii in a GBA SP Shell)
                            https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
                            Retro Lite CM4
                            https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

                            1 Reply Last reply Reply Quote 0
                            • StonedEdgeS
                              StonedEdge @mitu
                              last edited by

                              @mitu

                              OK, finally figured it out!

                              https://stackoverflow.com/questions/25149143/linux-kernel-consoleblank-argument-ignored

                              Needed to add export QT_QPA_PRESERVE_CONSOLE_STATE=1 to the autostart file. It seems the consoleblank=0 gets overriden by Qt applications. Seems like a bit of an undesirable behaviour but glad it works now.

                              Check out my build logs below:
                              Wii SPii (Wii in a GBA SP Shell)
                              https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
                              Retro Lite CM4
                              https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

                              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.