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

    Force HDMI over Raspberry Pi Official LCD Screen

    Scheduled Pinned Locked Moved Help and Support
    hdmi
    15 Posts 5 Posters 10.2k 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.
    • C
      Centrosome
      last edited by

      So I tried but I was stuck.
      I created the two different config.txt file (HDMI and lcd)

      But I'm stuck in the end of the tutorial
      https://retropie.org.uk/forum/topic/5527/raspberry-pi-official-lcd-screen-or-hdmi-option

      It says to add the script in /etc/profil.d/10-*****.sh
      and to add this

      /home/pi/displayBoot/initDisplay.sh
      sleep 5

      before emulstation instruction.

      Could you explain that part for me cause I don't really understand. $
      I understand that this is to run the script before emulstation but I don't understand what to do.

      Thanks a lot in advance.

      L 1 Reply Last reply Reply Quote 0
      • L
        langy1987 @Centrosome
        last edited by

        @Centrosome I'll have a look when I get home. I don't have access to my RetroPie atm.

        1 Reply Last reply Reply Quote 0
        • C
          Centrosome
          last edited by

          Thanks Langy1987 did you figure out?
          Thanks in advance

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

            Centrosome, did you ever figure this out?
            I too made the same script but can not figure out how to get it to run at startup. I've tried adding the file's path to several files but nothing seems to work.

            J 1 Reply Last reply Reply Quote 0
            • J
              JDMDingo
              last edited by JDMDingo

              anyone get this running?

              If I power up the Pi with an HDMI cord attached the LCD display is flipped. If I run the script again it returns:

              device_name=SNY-SONY_TV__00
              
              #lcd_rotate=2 
              
              

              Without an HDMI plugged in the LCD is right side up. If I run the script again it returns:

               [E] No device present 
              

              so the script is running but is not outputting the the TV. The TV detects the input and says raspberry but remains black.

              Edit:

              adding:

              ignore_lcd=1

              to the "config_hdmi.txt" file now turns off the LCD and switches to the TV.

              1 Reply Last reply Reply Quote 0
              • J
                JDMDingo
                last edited by

                Also there is a typo in the original post. When you edit the /etc/profile.d/10-*****.sh, it should be:

                # switch between LCD and HDMI
                /home/pi/initDisplay/initDisplay.sh
                sleep 5 
                

                instead of /home/pi/displayBoot/initDisplay.sh

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

                  @sli4 let me know if you got it running. Did you make the files (initDisplay.sh, config_hdmi.txt and config_lcd.txt, hdmi.name) in windows? Is so you need to convert them by using:

                  sudo apt-get install dos2unix
                  sudo dos2unix /home/pi/initDisplay/initDisplay.sh
                  

                  I also converted the config files, however that was probably not necessary.

                  Also the original post is not really clear about the configs. You copy all the text from config.txt and paste it into config_hdmi and config_lcd. Inside config_hdmi.txt scroll down untill you see “#hdmi_drive=2” and remove “#” then scroll to the bottom and add “ignore_lcd=1”. In config_lcd.txt scroll to the bottom and add “lcd_rotate=2”.

                  goobatroopaG 1 Reply Last reply Reply Quote 1
                  • goobatroopaG
                    goobatroopa
                    last edited by goobatroopa

                    I'm gonna try and get this working. I have been using the old "pull out the GPIO pin cable" trick on my handheld unit and whilst it works a charm, its a bit lame to not try and get it sorted properly.

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

                      @JDMDingo said in Force HDMI over Raspberry Pi Official LCD Screen:

                      Also there is a typo in the original post. When you edit the /etc/profile.d/10-*****.sh, it should be:

                      # switch between LCD and HDMI
                      /home/pi/initDisplay/initDisplay.sh
                      sleep 5 
                      

                      instead of /home/pi/displayBoot/initDisplay.sh

                      I had not gotten it to work. When i boot up i now get a bunch of errors about initDisplay.
                      I'm going to try thes again when i have access to the pi. for now i'm doing what the poster above me was doing and just pulling out the gpio cables. :/

                      1 Reply Last reply Reply Quote 1
                      • goobatroopaG
                        goobatroopa @JDMDingo
                        last edited by

                        @JDMDingo said in Force HDMI over Raspberry Pi Official LCD Screen:

                        @sli4 let me know if you got it running. Did you make the files (initDisplay.sh, config_hdmi.txt and config_lcd.txt, hdmi.name) in windows? Is so you need to convert them by using:

                        sudo apt-get install dos2unix
                        sudo dos2unix /home/pi/initDisplay/initDisplay.sh
                        

                        I also converted the config files, however that was probably not necessary.

                        Also the original post is not really clear about the configs. You copy all the text from config.txt and paste it into config_hdmi and config_lcd. Inside config_hdmi.txt scroll down untill you see “#hdmi_drive=2” and remove “#” then scroll to the bottom and add “ignore_lcd=1”. In config_lcd.txt scroll to the bottom and add “lcd_rotate=2”.

                        This is the clearest part of the thread. Thank you. I was getting very confused at the start.

                        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.