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

    Save Metadata upon using toggle switch to shutdown? Is this possible?

    Scheduled Pinned Locked Moved Help and Support
    power buttonreteopiescripts
    5 Posts 2 Posters 455 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.
    • W
      wtstreetglow1
      last edited by

      Hello all!! I hoping someone can help me with the subject. I am seeing all kinds of safe shutdown scripts across the internet for the pi but am also reading most of them are not saving metadata etc, when the shutdown is implemented from the button or toggle.

      Is there anything that can be added before the shutdown code on the script to ensure this happens?

      Thank you all for any examples or guidance you can give.

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

        Which scripts ? As long as EmulationStation is shut down properly (i.e. without forcibly terminating the process), metadata saving shouldn't be an issue.

        W 1 Reply Last reply Reply Quote 0
        • W
          wtstreetglow1 @mitu
          last edited by

          @mitu

          Thank you for replying @mitu. You have been incredibly helpful on everything.

          I chose the script below. It seems like the only one I found that at least talks about emulation station in the code.

          I am using both shutdown.sh and power.py because of their installation instructions.

          Do you feel like this is a good one or am I missing things and if so could you or one of our fellow forum members point me in the proper direction so that I'm not rebuilding the wheel.

          Setup:
          https://github.com/orlandovald/arcade1up/blob/master/setup.sh

          Power:
          https://github.com/orlandovald/arcade1up/blob/master/scripts/power.py

          Thank you all again!!

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

            Looks at the shutdown script, it seems it's trying to shutdown EmulationStation properly, so it should work.

            W 1 Reply Last reply Reply Quote 0
            • W
              wtstreetglow1 @mitu
              last edited by

              @mitu Good deal. Thank you for the backup assurance. I thought I would be good with that one even though I have no clue how to code sadly.

              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.