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

    Run sleep script on button press in ES?

    Scheduled Pinned Locked Moved Help and Support
    emustationsleep mode
    6 Posts 2 Posters 879 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.
    • J
      jduteau
      last edited by

      Is there a way to have EmulationStation detect a button press and then put the system in sleep mode? I have the system sleep option set and it eventually sleeps after 10 minutes, but there are some times when I know I'm done, so I wouldn't mind telling it to go to sleep right away.

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

        Press Select (or the button that you mapped to Select) on your gamepad and it should go to sleep right away. You need to be in the system carousel for this to work.

        J 1 Reply Last reply Reply Quote 0
        • J
          jduteau @mitu
          last edited by

          @mitu Thank you, I didn't realize that. One thing - although it is putting the display to sleep, it isn't calling my sleep script. I have that script turning my marquee off as well. Is there a way to have pressing select call a script?

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

            @jduteau How is your sleep script called ? Did you use the scripting support in EmulationStation ?

            J 1 Reply Last reply Reply Quote 0
            • J
              jduteau @mitu
              last edited by

              @mitu Yes. I followed the docs and have a sleep script and a wake script that work wonderfully with the systemSleepTime setting. But pushing the select button is obviously not the same as the system sleeping after x minutes since it's not calling that script.

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

                Pressing select is equivalent to the screensaver-start event, sleep is triggered after the configured timeout.

                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.