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

    HDMI Script will not run at boot??

    Scheduled Pinned Locked Moved Help and Support
    confighdmiforce hdmirun scriptboot
    13 Posts 3 Posters 1.3k 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.
    • S
      sli4
      last edited by

      Re: HDMI not working on TV when hooked to official "7 PI screen

      I followed the instructions of the scripts from the older referenced post - BUT how do you get it to auto run at boot?

      I've tried to call it in the rc.local file... 'ive tried it in the 10-retropie. sh file (10-"emulationstation. sh") does not exist.
      Is there additional text i need to enter into one of these files??

      in both files I added this at the top (trying it with one file at a time) /opt/initDisplay/initDisplay.sh
      sleep 5

      note: i used slajerek's edited script

      jackiehannaJ 1 Reply Last reply Reply Quote 0
      • jackiehannaJ
        jackiehanna @sli4
        last edited by jackiehanna

        @sli4 try copying every thing from the roms on it to the pc then format the sd crad and download the last version and try on another sd card if you can

        1 Reply Last reply Reply Quote 0
        • S
          sli4
          last edited by

          I'm not sure i understand your reply. The pi boots, seemingly fine. I can access my roms and use emulationstation/retroarch.

          the question is about the script i have which should run at boot and decide whether to use hdmi or the dsi lcd. It doesnt seem to run the script and I'm trying to figure out how to get it to run.

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

            @sli4 the /etc/rc.localf ile is the simplest way to run one-shot scripts on boot.

            S 1 Reply Last reply Reply Quote 0
            • S
              sli4 @mitu
              last edited by

              @mitu I tried placing it in the rc.local file but perhaps i'm doing it wrong?
              I'm pretty new to this so it's very possible I'm not including the right information into the etc/rc.local file.

              The only thing written in the file was something about IP addresses. So i wrote "/opt/initDisplay/initDisplay.sh" above the ip stuff and added sleep 5 under that (as i saw on another post/forum. is there anything else i'd need to do?

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

                @sli4 Post the contents of the file here, between code blocks ( ````). One thing to remember is that the script you run in /etc/rc.local has to either run fast and exit or you have to instruct it to run in the background, otherwise it will block the normal boot sequence.

                S 1 Reply Last reply Reply Quote 0
                • S
                  sli4 @mitu
                  last edited by

                  @mitu said in HDMI Script will not run at boot??:

                  @sli4 Post the contents of the file here, between code blocks ( ````)

                  at the top of this post is a reference to the original post "hdmi not working on tv..." I copied the script from there. It's at the bottom of the post written by @slajerek. That post will give you a better idea of what I was trying to do :/

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

                    @sli4 I see, so the script just changes the config.txt file and reboots. Does the script work if you execute it manually from the terminal ? Have you performed all the other steps in the post (create the 2 txt files in the boot partition, make the script executable) ?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sli4 @mitu
                      last edited by

                      @mitu I have done all the other steps in the post. I actually started with the initial script then later rewrote it to match the "updated" post that @slajerek made. The other two files to be copied have been made and i used chmod 777 to make it executable as they mention.

                      I have not tried to execute it manually - I'm not sure how to do this as I've been doing everything through the Pi and not through my computer's terminal. (so the files don't exist on my computer)

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

                        Do you have a keyboard attached ? Press F4 to exit Emulationstation and you'll have a command line where you can run your script. If you don't have a keyboard, use SSH to connect to the RetroPie system and run the command from the command prompt.

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          sli4 @mitu
                          last edited by

                          @mitu that had interesting results! (though im not sure what is needed to fix it.
                          also - if this was attempting to run at boot shouldn't I see these errors at boot before emulation station/retropie splash screens?

                          0_1521647679869_Screen Shot 2018-03-21 at 11.53.15 AM.png

                          1 Reply Last reply Reply Quote 0
                          • S
                            sli4
                            last edited by

                            Any ideas?

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

                              @sli4 It looks like the tvservice program arguments are not correct or an update to it changed them. You'll have to find the line where the program is called and make sure it uses the correct parameters. Run that command from your terminal to check that you get no error.

                              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.