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

    Retropie 4.6 and 4" LCD screen

    Scheduled Pinned Locked Moved Help and Support
    lcd4.6driver
    19 Posts 3 Posters 1.7k 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.
    • A
      avalkauskas
      last edited by avalkauskas

      I flashed my SD card with Retropie 4.6 and everything booted up great! Then I went and installed the video drivers for my 4" display (http://www.lcdwiki.com/4inch_HDMI_Display-C?fbclid=IwAR0HKj1pJ9JIxyB12HM135EK_ag_mB9Bw5Zr4PKiNOd-fnAm0dHr6nILBSk) and Retropie no longer loads.

      Error Creating SDL window
      Could not initialize EGL
      lvl0: Renderer failed to initialize
      lvl0: Window fialed to initialize

      Any ideas of where a conflict could have occurred here? Not sure where to start looking, config.txt?

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

        What Pi model do you have ? Post your config.txt, it may shed some light on what's going on.

        1 Reply Last reply Reply Quote 0
        • A
          avalkauskas
          last edited by

          Raspberry Pi 4 4GB Model B

          For more options and information see

          http://rpf.io/configtxt

          Some settings may impact device functionality. See link above for details

          uncomment if you get no picture on HDMI for a default "safe" mode

          #hdmi_safe=1

          uncomment this if your display has a black border of unused pixels visible

          and your display can output without overscan

          #disable_overscan=1

          uncomment the following to adjust overscan. Use positive numbers if console

          goes off screen, and negative if there is too much border

          #overscan_left=16
          #overscan_right=16
          #overscan_top=16
          #overscan_bottom=16

          uncomment to force a console size. By default it will be display's size minus

          overscan.

          #framebuffer_width=1280
          #framebuffer_height=720

          uncomment if hdmi display is not detected and composite is being output

          #hdmi_force_hotplug=1

          uncomment to force a specific HDMI mode (this will force VGA)

          #hdmi_group=1
          #hdmi_mode=1

          uncomment to force a HDMI mode rather than DVI. This can make audio work in

          DMT (computer monitor) modes

          #hdmi_drive=2

          uncomment to increase signal to HDMI, if you have interference, blanking, or

          no display

          #config_hdmi_boost=4

          uncomment for composite PAL

          #sdtv_mode=2

          #uncomment to overclock the arm. 700 MHz is the default.
          #arm_freq=800

          Uncomment some or all of these to enable the optional hardware interfaces

          #dtparam=i2c_arm=on
          #dtparam=i2s=on
          #dtparam=spi=on

          Uncomment this to enable the lirc-rpi module

          #dtoverlay=lirc-rpi

          Additional overlays and parameters are documented /boot/overlays/README

          Enable audio (loads snd_bcm2835)

          dtparam=audio=on

          [pi4]

          Enable DRM VC4 V3D driver on top of the dispmanx display stack

          #dtoverlay=vc4-fkms-v3d
          #max_framebuffers=2

          [all]
          #dtoverlay=vc4-fkms-v3d
          hdmi_force_hotplug=1
          hdmi_force_edid_audio=1
          dtparam=i2c_arm=on
          dtparam=spi=on
          enable_uart=1
          display_rotate=3
          max_usb_current=1
          config_hdmi_boost=7
          hdmi_group=2
          hdmi_mode=1
          hdmi_mode=87
          hdmi_drive=2
          hdmi_cvt 480 800 60 6 0 0 0
          dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900

          1 Reply Last reply Reply Quote 0
          • A
            avalkauskas
            last edited by

            Let me clean that up

            dtparam=audio=on
            [pi4]
            [all]
            hdmi_force_hotplug=1
            hdmi_force_edid_audio=1
            dtparam=i2c_arm=on
            dtparam=spi=on
            enable_uart=1
            display_rotate=3
            max_usb_current=1
            config_hdmi_boost=7
            hdmi_group=2
            hdmi_mode=1
            hdmi_mode=87
            hdmi_drive=2
            hdmi_cvt 480 800 60 6 0 0 0
            dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900

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

              You have commented the vc4-fkms-v3doverlay (or the install script did), this is not supported on the Pi4, since this enables the GPU video drivers. Without it, there's no video acceleration and EmulationStation - and emulators - will not work.
              Second, your display seems to work rotated 270 deg, but this will not work with the Pi4 - which supports only 180 deg rotation.

              A 1 Reply Last reply Reply Quote 0
              • A
                avalkauskas @mitu
                last edited by

                @mitu said in Retropie 4.6 and 4" LCD screen:

                You have commented the vc4-fkms-v3doverlay (or the install script did), this is not supported on the Pi4, since this enables the GPU video drivers. Without it, there's no video acceleration and EmulationStation - and emulators - will not work.
                Second, your display seems to work rotated 270 deg, but this will not work with the Pi4 - which supports only 180 deg rotation.

                OK thanks for the prompt reply. So the driver install made changes that disabled the GPU if I understand correctly. So I uncomment that line. How about the one right below it? max_framebuffers?

                Pi 4 doesn't support rotate 1 & 3? Then I should change the
                display_rotate=3
                to
                display_rotate=2
                right?

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

                  @avalkauskas said in Retropie 4.6 and 4" LCD screen:

                  How about the one right below it? max_framebuffers?

                  You should enable that also.

                  display_rotate=3
                  to
                  display_rotate=2

                  Your screen is basically a mobile screen, so without the proper rotation the other resolution options are probably invalid. Try removing the rotation configuration first and see what comes up. If you're not interested in the touch abilities, you can probably remove the last line.

                  1 Reply Last reply Reply Quote 0
                  • A
                    avalkauskas
                    last edited by

                    OK rotate commented out, almost ready to try again.

                    ...and I comment out this one? Yeah I don't care about touch support
                    #dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900

                    1 Reply Last reply Reply Quote 0
                    • A
                      avalkauskas
                      last edited by avalkauskas

                      It worked, thanks so much for your help!

                      The only remaining issue is that the interface is in portrait mode instead of landscape. I'm not sure if there is a fix for that within RetroPi? I found this thread for Mame &

                      https://www.reddit.com/r/Arcade1Up/comments/bv7lai/rotate_screen_from_emulationstation_to_use/

                      But I cannot find the path to -Retropie setup > Configuration/Tools > autostart > Manually edit autostart.sh which he said he changed the orientation in there.

                      Any ideas?

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

                        @avalkauskas Open RetroPie Setup from the RetroPie menu, this is where the modification should be made. You'll probably need also the parameters for specifying the width/height and that's just for EmulationStation. You'll need to apply rotation to the emulators' screen.

                        1 Reply Last reply Reply Quote 0
                        • Madara UchihaM
                          Madara Uchiha
                          last edited by Madara Uchiha

                          So when u get to the menu, do u go to retropie config? or do u press start to have the options including quit ect. and the option should be there?

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

                            @Madara-Uchiha by default, in EmulationStation you have a 'RetroPie' system included, with various menu option - one of which is 'RetroPie Setup'. The other menu that you get when you press Start is the EmulationStation menu.

                            1 Reply Last reply Reply Quote 0
                            • Madara UchihaM
                              Madara Uchiha
                              last edited by

                              Ok I'll try that.

                              1 Reply Last reply Reply Quote 0
                              • Madara UchihaM
                                Madara Uchiha
                                last edited by

                                So now I understand, but the thing is, after u get to retro pie menu, there is a bunch of things that I don' know about ( resetromdirs,samba,bashwelcometweak... Etc.) So what would i go on from here? I'm completely lost.

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

                                  @Madara-Uchiha I suggest you start with https://retropie.org.uk/docs/First-Installation/.

                                  Any reason you're using 2 accounts instead of one ?

                                  A 1 Reply Last reply Reply Quote 0
                                  • Madara UchihaM
                                    Madara Uchiha
                                    last edited by Madara Uchiha

                                    Oh, I'm avalkasukas's son. That's why it looks like someone is using two accounts. I checked out the link that you sent... I already knew about all of this. It's just that when i went on retro pie config, I don't see where u can change the orientation to landscape mode.

                                    mituM 1 Reply Last reply Reply Quote 0
                                    • A
                                      avalkauskas @mitu
                                      last edited by

                                      @mitu said in Retropie 4.6 and 4" LCD screen:

                                      @Madara-Uchiha I suggest you start with https://retropie.org.uk/docs/First-Installation/.

                                      Any reason you're using 2 accounts instead of one ?

                                      I did the initial setup, boot troubleshooting, and my son is working through the software configuration (and game installation). :) Your help has been great, because it's our first project like this, and my son has learned a lot about file systems, images, configs, boot scripts, etc...

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

                                        @Madara-Uchiha said in Retropie 4.6 and 4" LCD screen:

                                        I don't see where u can change the orientation to landscape mode.

                                        There's no explicit setting for that. If you want to rotate EmulationStation, then you need to modify the autostart.sh file and start it with

                                        emulationstation --screenrotate 1 --screensize 800 480
                                        

                                        That will rotate the screen 90 deg, if you want to rotate it 270 deg, then use --screenrotate 3.

                                        For emulators, you should stick to using RetroArch based emulation (the lr-... emulators) and modify /opt/retropie/configs/all/retroarch.cfg to add a line to rotate the display:

                                        video_allow_rotate = "true"
                                        video_rotation = "1"
                                        

                                        That will also give you 90 deg rotation, try 3 for 270 deg. Match them to the rotation settings applied to EmulationStation.

                                        Unfortunately, the screen console will not be rotated, so the RetroPie setup script and the Runcommand launch menu will still appear normally. You can disable the Runcomman launch menu if you wish.

                                        1 Reply Last reply Reply Quote 0
                                        • Madara UchihaM
                                          Madara Uchiha
                                          last edited by

                                          All right I'll try that!

                                          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.