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

    idle shutdown

    Scheduled Pinned Locked Moved Help and Support
    idleshutdown
    5 Posts 3 Posters 598 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.
    • ExarKunIvE
      ExarKunIv
      last edited by

      is there a way or has someone already done it.
      to program a way for the Pi to auto shutdown once its been idle for a set amount of time.

      i know next to nothing about making a script like this.

      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
      Maintainer of RetroPie-Extra .

      cyperghostC 1 Reply Last reply Reply Quote 0
      • cyperghostC
        cyperghost @ExarKunIv
        last edited by cyperghost

        @ExarKunIv You can use incron to take a look into folder /dev/shm if there is a file change in the folder. Then use cronjob and let it count a value+1 per minute. If the value is 10 then you can initialize a sleepmode.
        If incron recognizes a new file or file change the counter is set to 0.

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

          Well, there is a recent set of PRs that would add scripting support for Emulationstation and you could hook up a script to shutdown ES when the sleep event is triggered.
          You'll have to wait for the modifications to be finalized and added, but in the mean time you could give it a try with @cyperghost's idea.

          ExarKunIvE cyperghostC 2 Replies Last reply Reply Quote 1
          • ExarKunIvE
            ExarKunIv @mitu
            last edited by

            @mitu good to know. that will be nice once it is added

            @cyperghost thank you. i have a start on where to start playing with it.

            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
            Maintainer of RetroPie-Extra .

            1 Reply Last reply Reply Quote 0
            • cyperghostC
              cyperghost @mitu
              last edited by

              @mitu Nearly forget that there is a WIP PR ;) I think this can be a usefull addition to our installations now.

              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.