RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Mausberry Shutdown Script Doesn't Save Metadata

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    mausberry
    251 Posts 10 Posters 100.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.
    • meleuM
      meleu @lostless
      last edited by

      @lostless open this file on your Windows (I'm assuming you're using Windows), select all text and paste on ghostbin.com

      • Useful topics
      • joystick-selection tool
      • rpie-art tool
      • achievements I made
      lostlessL 1 Reply Last reply Reply Quote 0
      • lostlessL
        lostless @meleu
        last edited by

        @meleu nope mac. I can boot into windows if need be.

        meleuM 1 Reply Last reply Reply Quote 0
        • meleuM
          meleu @lostless
          last edited by

          @lostless nop, I just need you to copy the entire file

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          lostlessL 1 Reply Last reply Reply Quote 0
          • lostlessL
            lostless @meleu
            last edited by

            @meleu
            its just

            /var/log/syslog:Jul 23 06:28:29 genepi systemd[1]: Starting /etc/rc.local Compatibility...
            /var/log/syslog:Jul 23 06:28:29 genepi systemd[1]: Started /etc/rc.local Compatibility.
            

            over and over with different dates and times. nothing else.

            meleuM 1 Reply Last reply Reply Quote 0
            • meleuM
              meleu @lostless
              last edited by

              @lostless now I need you to do the same thing for /etc/rc.local and /etc/switch.sh (the last one is supposed to be my v1.7 script, but please, paste it on ghostbin so I can really check if everything is fine)

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              1 Reply Last reply Reply Quote 0
              • lostlessL
                lostless
                last edited by lostless

                /etc/rc.local
                https://ghostbin.com/paste/goucc

                /switch.sh
                https://ghostbin.com/paste/5agap

                meleuM 1 Reply Last reply Reply Quote 1
                • meleuM
                  meleu @lostless
                  last edited by

                  @lostless

                  ls -l /etc/switch.sh
                  
                  • Useful topics
                  • joystick-selection tool
                  • rpie-art tool
                  • achievements I made
                  1 Reply Last reply Reply Quote 0
                  • lostlessL
                    lostless
                    last edited by

                    @meleu said in Mausberry Shutdown Script Doesn't Save Metadata:

                    ls -l /etc/switch.sh

                    -rwxrwxrwx 1 root root 1889 Jul 29 02:42 /etc/switch.sh
                    
                    meleuM 1 Reply Last reply Reply Quote 0
                    • meleuM
                      meleu @lostless
                      last edited by meleu

                      @lostless
                      damn! I'm not getting what's wrong! Let's try this:

                      sudo bash -x /etc/switch.sh & 2> /home/pi/script-debug.txt
                      

                      And then press the f%#&ing button. Pretty please... :)

                      It should turn off your pi...

                      • Useful topics
                      • joystick-selection tool
                      • rpie-art tool
                      • achievements I made
                      lostlessL 1 Reply Last reply Reply Quote 0
                      • lostlessL
                        lostless
                        last edited by

                        @meleu aaaaaaaaaaaaaannnnnnnddddd...................

                        ...........NO GOOD. >:( sorry man.

                        1 Reply Last reply Reply Quote 0
                        • lostlessL
                          lostless @meleu
                          last edited by

                          @meleu

                           + GPIOpin1=23
                          + GPIOpin2=24
                          + echo 23
                          /etc/switch.sh: line 22: echo: write error: Device or resource busy
                          + echo in
                          + echo 24
                          /etc/switch.sh: line 24: echo: write error: Device or resource busy
                          + echo out
                          + echo 1
                          + file=/sys/class/gpio/gpio23/value
                          + sleep 30
                          + inotifywait -qq -e modify /sys/class/gpio/gpio23/value
                          

                          the readout of that and its stuck. My terminal has not finished what its doing.

                          meleuM 1 Reply Last reply Reply Quote 0
                          • meleuM
                            meleu @lostless
                            last edited by meleu

                            @lostless are you able to use IRC? maybe it's better than this forum for an online conversation... :P

                            edit I'm at #retropie at irc.freenode.net

                            • Useful topics
                            • joystick-selection tool
                            • rpie-art tool
                            • achievements I made
                            lostlessL 1 Reply Last reply Reply Quote 1
                            • lostlessL
                              lostless @meleu
                              last edited by

                              @meleu never used IRC. But willing to learn. Just need a client I assume? and somehow the #retropie is relevant somehow.

                              meleuM 1 Reply Last reply Reply Quote 0
                              • meleuM
                                meleu @lostless
                                last edited by

                                @lostless let's continue here then. Is your terminal "frozen"? I mean, the script didn't stopped, right?

                                • Useful topics
                                • joystick-selection tool
                                • rpie-art tool
                                • achievements I made
                                lostlessL 1 Reply Last reply Reply Quote 0
                                • lostlessL
                                  lostless @meleu
                                  last edited by

                                  @meleu i figured out irc. I'm there

                                  meleuM 1 Reply Last reply Reply Quote 1
                                  • meleuM
                                    meleu @lostless
                                    last edited by

                                    @lostless Great. On your irc client, perform these commands:

                                    /server irc.freenode.net
                                    /join #retropie
                                    
                                    • Useful topics
                                    • joystick-selection tool
                                    • rpie-art tool
                                    • achievements I made
                                    lostlessL 1 Reply Last reply Reply Quote 0
                                    • lostlessL
                                      lostless @meleu
                                      last edited by

                                      @meleu im in, i wasnt kidding. LOL

                                      meleuM 1 Reply Last reply Reply Quote 0
                                      • meleuM
                                        meleu @lostless
                                        last edited by

                                        @lostless I can't see any lostless there. What's your nickname?

                                        • Useful topics
                                        • joystick-selection tool
                                        • rpie-art tool
                                        • achievements I made
                                        1 Reply Last reply Reply Quote 0
                                        • cyperghostC
                                          cyperghost
                                          last edited by cyperghost

                                          #!/bin/bash
                                          emucall=$(sed -n 4p /dev/shm/runcommand.info)
                                          emupid=${emucall#* }
                                          pos=$(expr ${#emucall} - ${#emupid})
                                          $emupid=$(pgrep -f -n ${emucall:0:$pos})
                                          kill $emupid
                                          

                                          The code sniplet above should still do the job as it was introduced for a few days and was titled "complex" - it isn't ;)
                                          It's robust string operation and searches for first occurence for space and then kills the latest process :)
                                          The using of this regex in that way isn't maintainable imho for someone who isn't deep in this thing :) That's really nerdy now.

                                          But your outfindings are great but do this only for ScummVM? I think to introduce the -n switch in pkill command will do the job :) without playing around with RegEx.

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

                                            @meleu

                                            I've posted something above.
                                            I'm happy with your outfindings but I would prefer two ways.

                                            a version with the inotify and a version without :)

                                            I will use your code sniplets also for my newest build (but I will no use a mausberry - the platine is much to big)
                                            To introduce a new bash windows with selectable options... Is it forced to be in first instance. Mean I can see it as on overlay due an emualtor? Do you know?

                                            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.