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

    attract mode to emulation station autostart.sh

    Scheduled Pinned Locked Moved Help and Support
    retropieattract modeautostart.sh
    12 Posts 2 Posters 1.9k 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.
    • mituM
      mitu Global Moderator
      last edited by

      You can't switch on the fly between front-ends, you have to exit one to start the other, there's no switching mechanism implemented.

      If you want to be able to choose from them at startup, you can modify autostart.sh and add your own script to choose between them (perhaps something done with dialog would be enough).

      Little side question : it is better to install attract mode via experimental package or via consol ???

      Install it from the RetroPie-Setup packages.

      M 1 Reply Last reply Reply Quote 0
      • M
        MasterStef @mitu
        last edited by

        @mitu said in attract mode to emulation station autostart.sh:

        You can't switch on the fly between front-ends, you have to exit one to start the other, there's no switching mechanism implemented.

        If you want to be able to choose from them at startup, you can modify autostart.sh and add your own script to choose between them (perhaps something done with dialog would be enough).

        Sorry not been clear i think. When your in retropie, i had the script to get the option attract mode to switch front end. The first time it work, rebooting in attract mode.
        In attract mode i got the option to reboot in emulation station and there's the bug. It's just reboot to attract mode. if i mode the autostart.sh (emulationstation #auto) then it's gonna work
        and reboot to ES. As soon that i go back to attrack mode via the option in retropie it modify the autostart.sh to (attract #auto) and then impossible to get back to ES whitout mode the autostart.sh file or go in console mode to type emulation station.

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

          Looks like you're using a custom script, not something included in RetroPie. Maybe post the script you're using and how you set it up would help diagnosing the issue ?

          M 1 Reply Last reply Reply Quote 0
          • M
            MasterStef @mitu
            last edited by

            @mitu your right, im using a script from my other rpi 3 in my bartop. It works in there so why not in this one ?? The other script are working (reboot, shutdown,reteoarch) are the one i try so far.

            Maybe my best option is to re-do my script from scratch.

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

              @masterstef said in attract mode to emulation station autostart.sh:

              It works in there so why not in this one ??

              Can't say without looking at the script - why don't you post it ?

              M 2 Replies Last reply Reply Quote 0
              • M
                MasterStef @mitu
                last edited by

                @mitu will do it wen i get back from work

                1 Reply Last reply Reply Quote 0
                • M
                  MasterStef @mitu
                  last edited by

                  @mitu said in attract mode to emulation station autostart.sh:

                  @masterstef said in attract mode to emulation station autostart.sh:

                  It works in there so why not in this one ??

                  Can't say without looking at the script - why don't you post it ?

                  Ok here is the script i use to restart emulation station from attract mode.

                  #!/usr/bin/env bash
                  echo ""
                  echo "Switching default boot system to emulationstation and rebooting"
                  echo ""
                  sleep 5
                  cp /opt/retropie/configs/all/ES-Start.sh /opt/retropie/configs/all/autostart.sh
                  sudo reboot
                  #ps -fu whoami |grep attract |grep -v xinit |grep -v grep |grep -v xterm| awk '{print $2}' | xargs kill -9

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

                    The script looks ok.
                    Does the file /opt/retropie/configs/all/ES-Start.sh exist ? Otherwise I don't see why the script would fail.

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      MasterStef @mitu
                      last edited by

                      @mitu oh ho ? No i dont see that file. Is there anyway to create it? Is the a way to do it in the retropie DOC page ??

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

                        @masterstef said in attract mode to emulation station autostart.sh:

                        Is the a way to do it in the retropie DOC page ??

                        It's not in the documentation, since it's not part of RetroPie.
                        But, since this is your system, didn't you create this file/script on the other system ? Why not transfer both files to the new installed Pi4 ?

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MasterStef @mitu
                          last edited by

                          @mitu your right i can do that. Sometimes it’s better to go the easy way. Thank you.

                          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.