RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    1. Home
    2. Tags
    3. autostart.sh
    Log in to post
    • All categories
    • MasterStef

      attract mode to emulation station autostart.sh
      Help and Support • retropie attract mode autostart.sh • • MasterStef

      12
      0
      Votes
      12
      Posts
      308
      Views

      MasterStef

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

    • sabelstrom

      autostart.sh being re-written on reboot
      Help and Support • kodi boot autostart.sh re-written retropie 4.7.1 • • sabelstrom

      9
      0
      Votes
      9
      Posts
      244
      Views

      sabelstrom

      @mitu
      I can delete files from my PC, but they re-appear when i mount it again. So broken SD card.

      Thanks for the help. I would never thought of that.

    • Codafire

      Script in autostart
      Help and Support • retropie4.6 script autostart.sh • • Codafire

      3
      0
      Votes
      3
      Posts
      243
      Views

      Codafire

      @mitu ok i try to put it before emulationstation runs, basically the script erase an empty file that i use with an if conditional, i make an option that let me pause the music, if i activate it, the if creates an objects and while the file exists the music stop playing and if i push again the if erase the file and the music continues. i want that the raspberry erase that file if we have music paused so the music start on the startup and i can activate pause again in the menus.

    • KaaaaasKop

      Unable to rotate screen Raspberry Pi 4
      Help and Support • raspberry pi 4 autostart.sh retropie 4.7 screen rotate • • KaaaaasKop

      6
      0
      Votes
      6
      Posts
      1100
      Views

      DougA

      @kaaaaaskop Did you ever sort this out? I’m at the same position you were when you posted this.

    • xrayspx

      Possibly Improved Method for Kodi / ES Switching?
      Ideas and Development • ideas improvements kodi autostart.sh • • xrayspx

      8
      0
      Votes
      8
      Posts
      481
      Views

      pepie34

      Isn't it cleaner to use systemd / services in order to do so ?

      It is explained here how to cycle between 2 services:
      https://forum.kodi.tv/showthread.php?tid=288584

      For kodi.service (configured as a user service not system wide service contrary to the above link) :

      [unit] ... Conflicts = emulstation.service ... [service] ... ExecStopPost = /usr/bin/systemctl --user start emulstation.service ...

      And for emulstation.service

      [unit] ... Conflicts = kodi.service ... [service] ... ExecStopPost = /usr/bin/systemctl --user start kodi.service ...

      Emulstation and kodi should not be services enabled/start by default at boot but rather
      autostart.sh start the first service by something like:

      systmctl --user start kodi.service

      if kodi is configured to be the first one.

      To go further we can also think about replacing the autostart script by a retropie service which is enabled at boot time. At start, it launches the first configured service. At stop it ensures that emulstation and kodi are stoped.

      If the service is run as pi user (which is more secure), the pi user must be lingered to enable autostart of the service at boot even if the user is not logged in.

      loginctl enable-linger pi systemctl --user enable retropie

      Advantages:

      All the services could be controlled, inspected, logged through the systemd tools Not need for automatic login It could be easily extended to any number of services not just 2.
    • A Former User

      What does autostart.sh run from?
      Help and Support • autostart.sh question • • A Former User

      2
      0
      Votes
      2
      Posts
      67
      Views

      mitu

      The autostart.sh is located in /opt/retropie/configs/all/. It's started from /etc/profile.d.

    • noon-ng

      changing your shell will stop EmulationStation from starting automatically
      Help and Support • shell autostart.sh emulation station • • noon-ng

      5
      0
      Votes
      5
      Posts
      307
      Views

      Clyde

      The question I would ask myself in your place is if I'd rather do without or rewrite my scripts than trying to adapt many unfamiliar scripts that may break again with the next update.

    • shadetree77

      autostart.sh being re-written
      Help and Support • retropie autostart.sh screen rotate • • shadetree77

      6
      0
      Votes
      6
      Posts
      674
      Views

      cyperghost

      @mitu Meanwhile every second posting is related to this "in da houz" images.

      Well after a few days of searching files and experimenting on the pi, I think I've got this figured out.

      What else could I say?

    • Plex7

      RetroPie - Emulationstation loading screen not showing. Help.
      Help and Support • emulationstatio autostart.sh retropie • • Plex7

      5
      0
      Votes
      5
      Posts
      925
      Views

      Plex7

      @mitu

      No problem. I literally just figured it out. I just updated everything, used a different BGM script and in raspi-config, I disabled and enabled the text splash screen, followed by using a custom splashscreen using the OFFICIAL script off emulation station. The custom scripts are trash, absolute trash. I have to be careful.

      So I have a totally new issue now, non-image related.

      I used SD Card Formatter to format my Micro SD to exFat, Windows 10 recognizes it....I used Win32 Diskimager to write my image, and now Windows 10 won't recognize it. Any idea how to fix this? I must fix this because I have to create a backup, now that I fixed it. I'd appreciate the help. Thanks.

    • alg42

      autostart goes to black screen
      Help and Support • autostart.sh raspberry pi 4 emulationstaion hdmi black screen • • alg42

      4
      0
      Votes
      4
      Posts
      974
      Views

      alg42

      So apparently I'm an idiot. Following the guide over at Reddit, I missed one thing. I had the mini-hdmi cable plugged into the second port and not to the port closest to the power supply. Looks like everything is working now.

    • BicheTortue

      Where is Autostart.sh?
      Help and Support • autostart.sh • • BicheTortue

      5
      0
      Votes
      5
      Posts
      1641
      Views

      BicheTortue

      @mitu Thanks a lot, it worked like a charm. I'm about to be done with my arcade cabinet!

    • mahoneyt944

      Boot to rom using lr-mame2003-plus
      Help and Support • mame2003-plus autostart.sh • • mahoneyt944

      37
      0
      Votes
      37
      Posts
      1543
      Views

      mahoneyt944

      @BuZz
      I removed the #emulationstation #auto line 2 of the autostart.sh, and it worked. I didn't think that line would matter since it doesn't effect mame2003 roms launched the same way. Why does multi lines cause this issue? Is there a way to include multiple lines?

    • mahoneyt944

      Lr-mame-2003-plus joystick map INI file
      Help and Support • mame2003-plus ini file cfg joystick map autostart.sh • • mahoneyt944

      3
      0
      Votes
      3
      Posts
      396
      Views

      mahoneyt944

      Copied my tron.ini file to location /opt/retropie/libretrocores/lr-mame2003-plus/metadata.........it didn't work.

    • retrofan

      Autostart libretro emulator with rom at boot (fast way)?
      Help and Support • autostart.sh autostart rom autostart libretro • • retrofan

      5
      0
      Votes
      5
      Posts
      721
      Views

      retrofan

      @mitu

      Yes, I did what you said and I succeeded to lower boot time to 11 seconds for libretro emulator but only through autostart.sh.
      However, non-libretro emulators still starts about 5 seconds faster through the rc.local script and I dont know what else I could do here.
      It seems runcommand is a problem, because for some reason it refuses to start through rc.local properly...

    • watford98

      Autostart file doesn't exist
      Help and Support • autostart.sh • • watford98

      5
      0
      Votes
      5
      Posts
      2382
      Views

      watford98

      You gem.
      Cheers all sorted

    • pyr0cide

      Unable to successfully mount a share from Diskstation NAS
      Help and Support • diskstation btrfs fstab autostart.sh mount • • pyr0cide

      11
      0
      Votes
      11
      Posts
      2373
      Views

      mitu

      @pyr0cide Just leave the exports on the server

      /volume1/roms 192.168.1.*(rw,async,no_wdelay,no_root_squash)

      And make sure you use the proper case when referring to the share name, i.e. not mixing upper-case with lower-case

      mount -t nfs -o vers=3 192.168.1.6:/volume1/roms /home/pi/RetroPie/roms
    • aivs

      Rasberry Pi 1 emulationstation not autostarting
      Help and Support • autostart.sh autostart • • aivs

      1
      0
      Votes
      1
      Posts
      329
      Views

      No one has replied

    • pek7650

      no longer able to boot into retropie
      Help and Support • autostart.sh • • pek7650

      5
      0
      Votes
      5
      Posts
      613
      Views

      pek7650

      I was going to backup after I had sorted a couple of other things. I never messed about with autobash I don't even know what it does. Unless I have accidently done something while in settings.