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 18.0k 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.
    • S
      Semper 5 @cyperghost
      last edited by Semper 5

      @cyperghost I receive the following:

      sed: can't read /dev/shm/runcommand.info: No such file or directory
      /etc/killes.sh: line 20: wait: pid 794 is not a child of this shell

      I can also confirm that directory is completely empty and said file doesn't exist anywhere on my system :/

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

        Sorry I'm a systemd-noob!
        The wait command in the shell does not work because the process called by terminal. With the manual command you open a process that is isolated to the current running instance. Therefore wait does not work...

        The sed error can be ignored!
        You do not run any emulator.... so there is no file created!

        Please try following

        login via SSH and user pi

        then run command
        touch /tmp/es-shutdown
        This will create an empty file es-shutdown in folder tmp and this "says" ES to go in shutdown mode. This worked in the older scripts - I have no clue if it will work as service ... read line 1 in my posting again ;)

        then powerdown with button (after you have set some favourites....)

        EDIT:
        This works only once per startup but if this works we can resolve that
        If it does not work we have to wait for meleus suggestion in the other thread

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

          @cyperghost lol no worry, I'm more of a n00b of all trades with RPi, but hey I'm learning ;)

          Unfortunately it didn't save a fav I added after I followed your instructions.

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

            Hmm, anybody? Updates? :/

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

              @semper-5 Well does the service work if you perform a sudo poweroff via SSH?

              EDIT: Well somebody deserved you a downvote for pushing two threads up again

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

                @cyperghost lol yeah forgive my lack of forum etiquette - I almost felt ignored for a moment there.

                and the sudo poweroff did not save the metadata :(

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

                  @semper-5 Then there is 100% something wrong with your/the service installation.
                  Sorry can't help you anymore in this. As workaround you may use the old route....

                  A script that watches the state of your buttons and if the state changes then it terminates ES.

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

                    @cyperghost ok i'll try removing and readding everything -_-#

                    do you have a pastebin of the old script, and does it work(ish)? heh

                    EDIT: I disabled the service, deleted the script, service files. redid everything from step 1, following instructions immaculately, and biiiiig NOPE to getting it working. the only way I get the metadata to save is by restarting or quitting ES from within the menu :(

                    I know I can't be the ONLY person having this problem and I have this exact same problem on 3 Nespi's I've set up with the same scripts, wiring and configs

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

                      Yes... I've a script here in this thread

                      You may need to modify it a bit. It provides a shutdown if you press the power button and if you press restart any emulator will be terminated. If you are in ES and press restart, then ES will restart.

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

                        @cyperghost I recently hit a snag with DOSBox that was easily corrected with a binary update. This made me think back to what you mentioned about updating the runcommand.sh

                        May I ask how I would do that (in case I, unwittingly, haven't done so)

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

                          @semper-5 Uff... Per system update by RetroPie setup
                          You can renew Basic Packages like ES and runcommand (afaik)
                          But I think there is nothing wrong with this ... if you still facing problems with this. You can use the "old" method by directly calling the shutdown scripts via power button action. Tell me more about your (hardware) power setup.

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

                            @cyperghost oh I meant to follow up a weird little anomaly I found. and I only see it when Im in the setup or command line, I'll get the odd "exitemulator" pop up at random. Ive made 2 systems using the same scripts and wirings outlined in James' documents and they both do this. I have followed them to a tee so I don't know why they're doing this or if this is even related to the issue with metadata not saving. Even more strangely, that command SHOULD kick me out of any running emulator but I've never been kicked out of a game. I only see this pop up in command line screens.

                            screenshot

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

                              @semper-5 Can you send me link to this documents? The exit emualator seems to pop out by a script! Or can you post the scripts you used via PasteBin?

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

                                @cyperghost this is what I used so the reset button would exit the emulator and the power off would shut it down

                                soft shutdown w/ exit emulator script

                                this can be found in his shared online PDF

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

                                  @semper-5 Okay I see. In your case I would use the first script - the one without exiting emulators. Then check if the metadata is saved this way. I'm not fit in python so I can't say if the PID detection works.

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

                                    @cyperghost sadly this made no difference but it was a good idea

                                    1 Reply Last reply Reply Quote 0
                                    • 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
                                            • 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.