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

    Launching Attract Mode from Emulation Station via script

    Scheduled Pinned Locked Moved Help and Support
    attractmode
    3 Posts 2 Posters 493 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.
    • flagrant99F
      flagrant99
      last edited by

      Under roms I have a scripts folder.
      In the script folder I have
      AttractMode.sh

      #!/bin/bash
      pkill emulationstatio
      attract

      It works. But just wondering if there is a better way to exit ES and launch attract mode from within it?
      Basically I want a script command to jump back and forth.

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

        You can try running AttractMode and ES in a loop, from autostart.sh

        while true; do
        emulationstation
        attract
        done
        

        If you want to start AM, then exit ES normally and vice-versa. If you want to stop/reboot, use ES's menu for that.

        flagrant99F 1 Reply Last reply Reply Quote 1
        • flagrant99F
          flagrant99 @mitu
          last edited by

          @mitu Thx. Never thought of that. Exiting one will just start the other and each will shutdown/save properly. Nice :)

          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.