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

    METADATA not saving - Favorites will never remain tagged

    Scheduled Pinned Locked Moved Help and Support
    nespi casemetadata issuesfavoritesshutdown scriptgameslist.xml
    121 Posts 7 Posters 17.5k 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.
    • cyperghostC
      cyperghost
      last edited by

      @Semper-5 Did you use the same power device as Yahmez descriped in his tutorial?

      S 1 Reply Last reply Reply Quote 0
      • S
        Semper 5 @cyperghost
        last edited by

        @cyperghost said in METADATA not saving - Favorites will never remain tagged:

        @Semper-5 Did you use the same power device as Yahmez descriped in his tutorial?

        Do you mean Power Supply? I'm not aware of any specific power supply he used in his tutorial, but I've tried 5V 2.5A, 5V 3A, and finally a VERY good high end power supply that's 5.25V 3A. all 3 have given me the same result.

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

          @semper-5 No... I mean the device that switches power on/off to your Pie.
          Like a Mausberry or a Pololu Power Switch

          S 1 Reply Last reply Reply Quote 0
          • S
            Semper 5 @cyperghost
            last edited by

            @cyperghost said in METADATA not saving - Favorites will never remain tagged:

            @semper-5 No... I mean the device that switches power on/off to your Pie.
            Like a Mausberry or a Pololu Power Switch

            Oh I'm sorry, yes, I'm using the Pololu Power Switch

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

              @semper-5 Is the power suddenly cut if you press the power button?

              S 1 Reply Last reply Reply Quote 0
              • S
                Semper 5 @cyperghost
                last edited by

                @cyperghost nope, it goes through it's proper shutdown sequence.

                BTW, I just wanted to thank you immensely for the help and followup thus far :)

                caver01C 1 Reply Last reply Reply Quote 0
                • caver01C
                  caver01 @Semper 5
                  last edited by

                  @semper-5 and @cyperghost
                  Did you see meleu's recent post:
                  https://retropie.org.uk/forum/post/142911

                  He is basically acknowledging that there appears to be a problem with the shutdown not saving metadata, but apologizing that he has not had time to look into it.

                  My 4-player cocktail style cabinet built as a custom "roadcase"

                  cyperghostC 1 Reply Last reply Reply Quote 2
                  • cyperghostC
                    cyperghost @caver01
                    last edited by cyperghost

                    @caver01 Yes... Saw the post of meleu after I answered on this thread.
                    But I think I can make it through a working script without the need of reading the emulator name out of a log-file. So Iet me test things out ;)

                    @Semper-5
                    I will create a new topic regarding this specific shutdown script. I hope that meleu will also take part on this - if he finds some time. I won't use a service because I'm not firm in this one. Be prepared!

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

                      @Semper-5

                      Please test this script if it's working

                      For setup

                      1. Save the script to some place maybe /home/pi/RetroPie/scripts/switch.sh
                      2. Make the script executable like chmod +x /home/pi/RetroPie/scripts/switch.sh
                      3. Now edit ES autostart with nano /opt/retropie/configs/all/autostart.sh and add script to like ....
                      4. sudo /home/pi/RetroPie/scripts/switch.sh & but BEFORE the last line emulationstatio #auto
                      5. Report back ;)

                      ** DELETED OLD SCRIPT VERSION **

                      This version is just stripped down and gots just support for power button.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Semper 5 @cyperghost
                        last edited by

                        @cyperghost unfortunately its a no go.
                        but before I say that, should I remove the python script entry from rc.local?

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

                          @semper-5 yes... remove the python script please and the shutdown service ;) I added a sleep timer to the script. To make errors and PIDs visible. Sorry I can't test
                          this as I don't have that switch device.

                          1 Reply Last reply Reply Quote 0
                          • S
                            Semper 5
                            last edited by

                            well it did save the metadata, but no safe shutdown command and no reset feature.

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

                              @semper-5 What's safe shutdown?

                              The reset button isn't implented now.... I just want to test if the GPIO settings are okay. So you press the button... Do you see messaged like ES-PID and so on? (I changed the script for a few minutes ago, the sleep command was executed after exit!)

                              But you've tested a early "beta" version of the shutdown script. I can implent reset button later.

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                Semper 5 @cyperghost
                                last edited by

                                @cyperghost when I hit the power button it just cuts the power :/

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

                                  @semper-5 As long as it saves metadata the script works as intended and the power should be cut afterwards. Please explain what you expect if you press the power button and if you press the reset button.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Semper 5 @cyperghost
                                    last edited by

                                    @cyperghost its back to not working! the favorites I've added when I first put your script in, i tried removing and playing another few games, powered down and no changes to favorites and last played remains the same.

                                    it did work...ONCE and I think that's it :(

                                    when I press the power button I don't see any echo or anything. its like pulling the plug

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

                                      @semper-5 I've removed the sleep commands again. Can you retry?
                                      You mean you press the power button and then the screen shuts instantly off? You don't see any Linux message?

                                      S cyperghostC 2 Replies Last reply Reply Quote 0
                                      • S
                                        Semper 5 @cyperghost
                                        last edited by

                                        @cyperghost nope nothing. I deleted everything and followed instructions, redid it twice and just straight power off. no metadata save

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

                                          @Semper-5 Okay I made some tests with a "WIRE"-switch (connect 3,3V to GPIO24)

                                          And it worked in all cases! It saved metadata if you press the button if you are in ES
                                          and it worked even if there was an emulator active running.

                                          So this base script works with a "push" button. But I can't test the switch part with the POLOLU. But if you say it immediatly cut's power.....

                                          So you press the power button and the light of the PIE go off (red and green LED) instantly?? Then there is something wrong with your wiring? Because that sound really weird!

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

                                            @semper-5 said in METADATA not saving - Favorites will never remain tagged:

                                            @cyperghost nope nothing. I deleted everything and followed instructions, redid it twice and just straight power off. no metadata save

                                            But you did a reboot so the script became active? Or you can start the script by SSH with sudo /path/to script/switch.sh &

                                            S 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.