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

    Screensaver Script

    Scheduled Pinned Locked Moved Help and Support
    screensaverscript
    4 Posts 3 Posters 329 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
      joesnow81
      last edited by

      Is there a way I can call a script to run when the screensaver starts and then another when it stops? Similar to the runcommand-onstart and onend

      Pi Model or other hardware: pi4b 4gb
      Power Supply used: 5.1v 3a
      RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest):4.5.18
      Built From: (Pre made SD Image on RetroPie website, Berryboot, or on top of existing OS etc.. - please provide the filename of any image used) running on raspbian 10 buster
      USB Devices connected: Keyboard
      ES version: 2.9.1rp

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

        There is some support added for running scripts when certain events happen in EmulationStation (see more details here), but for some reason the screensaver events have not been wired in (see this PR).

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

          @mitu said in Screensaver Script:

          There is some support added for running scripts when certain events happen in EmulationStation (see more details here), but for some reason the screensaver events have not been wired in (see this PR).

          I can see Theofficialgman made his own Fork and implemented the screensaver start and stop commands. I've learnt a lot over the past few weeks but that seems above my knowledge and without a guide on how to do it I wouldn't know where to start with that. Lets hope it gets merged into a future build.

          1 Reply Last reply Reply Quote 0
          • LolonoisL
            Lolonois
            last edited by

            @joesnow81 well you have the sources, the wiki/docs and the helpful guys in this forum. A comfortable start position I would say.

            And for another piece of learning:
            This is the beauty of git, you don't have to wait for a fork or merge into master.
            See my notes here on how to try the PR by yourself.

            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.