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

    Automatic runing command at start. How to?

    Scheduled Pinned Locked Moved Help and Support
    autobootautostartcomandruncommand
    5 Posts 2 Posters 951 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.
    • I
      IGA
      last edited by

      Hello
      Could somebody tell me how to make command:

      sudo python3 tweakvec.py --preset PAL60
      

      run always automatically when raspberry pi turned on?

      ( I've tired to write this command manually each time after retropie loading, so maybe could add this command like autoboot? I'ts just need ti fix colors of my TV)

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

        Add the command to the autostart script - see https://retropie.org.uk/docs/FAQ/#how-do-i-boot-to-the-desktop-or-kodi -, before the EmulationStation command.

        I 1 Reply Last reply Reply Quote 0
        • I
          IGA @mitu
          last edited by IGA

          @mitu alright, i do /opt/retropie/configs/all/autostart.sh - and wrote there my command: sudo python3 tweakvec.py --preset PAL60.
          But after next reboot nothing happens.

          Even if I write there " sudo python3 /home/pi/tweakvec.py --preset PAL60 " nothing happened too

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

            Even if I write there " sudo python3 /home/pi/tweakvec.py --preset PAL60 " nothing happened too

            Does this command work from the command line, if you launch it manually ? You need to give the full path to the script, because autostart.sh doesn't necessarily run from /home/pi.

            Post the complete autostart.sh file.

            I 1 Reply Last reply Reply Quote 0
            • I
              IGA @mitu
              last edited by IGA

              @mitu оООО!
              Oh thank you! on the hundredth attempt, it still worked itself

              • -magic!?))
              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.