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 doesnt boot with changed config

    Scheduled Pinned Locked Moved Help and Support
    sdl windowerrorrenderer failedwindow failed
    9 Posts 2 Posters 372 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.
    • G
      gilllig
      last edited by

      Hello.
      I have an raspberry pi4 B (4gb-ram), speaker expansion board and 3.5inch LCD Display (mpi3508).
      I installed retropie according to some guide and replaced config in the /boot/config.txt. Im trying to rotate screen 180 degrees, bit there is an issue.
      When I uncomment (add) line "dtoverlay=vc4-kms-v3d" the retropie boots, games boots, but the image is upside down. Seems settings in the config.txt doesnt work.
      When I comment (delete) this line, image on the screen rotated as I need, but retropie doesnt boots - after all loading screens console starts only, with error: "Error creating SDL window! Could not initialize EGL. Renderer failed to intialize! Window failed to intialize!"
      Can you help me please with this issue? I just want to rotate the screen.

      This is config I've downloaded from some guide:

      # 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 the following to adjust overscan. Use positive numbers if console
      # goes off screen, and negative if there is too much border
      overscan_left=-10
      overscan_right=35
      #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 infrared communication.
      #dtoverlay=gpio-ir,gpio_pin=17
      #dtoverlay=gpio-ir-tx,gpio_pin=18
      
      # Additional overlays and parameters are documented /boot/overlays/README
      
      # Enable audio (loads snd_bcm2835)
      dtparam=audio=on
      
      # Automatically load overlays for detected cameras
      camera_auto_detect=1
      
      # Automatically load overlays for detected DSI displays
      display_auto_detect=1
      
      # Enable DRM VC4 V3D driver
      #dtoverlay=vc4-kms-v3d
      max_framebuffers=2
      
      # Run in 64-bit mode
      arm_64bit=1
      
      # Disable compensation for displays with overscan
      disable_overscan=1
      
      [cm4]
      # Enable host mode on the 2711 built-in XHCI USB controller.
      # This line should be removed if the legacy DWC2 controller is required
      # (e.g. for USB device mode) or if USB support is not required.
      otg_mode=1
      
      [all]
      
      [pi4]
      # Run as fast as firmware / board allows
      arm_boost=1
      
      [all]
      hdmi_force_hotplug=1
      hdmi_force_edid_audio=1
      dtparam=i2c_arm=on
      dtparam=spi=on
      enable_uart=1
      display_rotate=2
      max_usb_current=1
      config_hdmi_boost=7
      hdmi_group=2
      hdmi_mode=1
      hdmi_mode=87
      hdmi_drive=2
      hdmi_cvt 480 320 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
      hdmi_timings=600 0 20 28 48 400 0 13 3 32 0 0 0 30 0 25000000 5
      
      dtoverlay=audremap,pins_18_19
      
      
      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        If you're using a recent RaspiOS, then the display_rotate parameters don't work anymore - rotation is either handled by the display's overlay (ads7846 in this case) or handled by the desktop (which is not included nor supported by RetroPie).

        Removing the vc4-kms-v3d is not supported on the Pi4 with a recent RaspiOs, so you don't have much choices other than running the desktop and rotating image from the desktop utility (not sure how it's called now).

        If you use the RetroPie provided image - which is based on an older RaspiOS - , you may still be able to use the display_rotate parameter for a 180deg rotation.

        G 1 Reply Last reply Reply Quote 0
        • G
          gilllig @mitu
          last edited by gilllig

          @mitu
          Yes, I have retropie version 4.8
          9b7cbfa0-abfa-4abf-8e7a-af618997f06a-image.png

          than running the desktop and rotating image from the desktop utility (not sure how it's called now).

          Do you mean desktop on the raspberry (raspbian OS)? If I'll rotate screen image in this raspbian , it rotates in the retropie too?

          Do I have to install raspbian (or another OS) for this?

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

            @gilllig said in Retropie doesnt boot with changed config:

            Yes, I have retropie version 4.8

            Hm, that's strange - is this installed from the RetroPie image ? It looks like a Buster but with 64bit kernel, which was never released - the 1st 64bit image for RaspiOS was after Buster.

            Do you mean desktop on the raspberry (raspbian OS)? If I'll rotate screen image in this raspbian , it rotates in the retropie too?

            Yes, install the - current - RaspiOS with Desktop image and rotate it from the desktop. RetroPIe should install and probably work like this - from the desktop - but it's not a configuration we suppport. You need to do a manual install for this - see https://retropie.org.uk/docs/Manual-Installation/.

            Do I have to install raspbian (or another OS) for this?

            Yes, see above.

            G 1 Reply Last reply Reply Quote 0
            • G
              gilllig @mitu
              last edited by gilllig

              @mitu said in Retropie doesnt boot with changed config:

              It looks like a Buster but with 64bit kernel

              I dont know what "buster" mean, but probably it is. I just downloaded "retropie-buster-4.8-rpi4_400 from this page https://retropie.org.uk/download/ - it is the recent OS version.
              I'm confused, what does it mean? Is there way easier than "install raspberryOS, then install retropieOS on it"? Maybe can I download older retropie version or change some graphics config in the system or something else?
              Sorry, I know not much about how linux works, so it is a little bit difficult to understand your posts))

              Btw which raspOS version will fit for my problem? There are 64/32bit, lite/full, bookworm/bullseye, legacy (and so on) in the Raspberry Pi Imager.

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

                @gilllig said in Retropie doesnt boot with changed config:

                I dont know what "buster" mean, but probably it is. I just downloaded "retropie-buster-4.8-rpi4_400 from this page https://retropie.org.uk/download/ - it is the recent OS version.

                buster is the codename for the RaspiOS operating system. The RetroPie (4.8) image you've downloaded doesn't contain a recent RaspiOS though, it contains the version of the OS available at the time the image was created - which is dated right now.
                Your screenshot though shows a 64 bit kernel, which is not included in the RetroPie image - how did you install it ?

                Btw which raspOS version will fit for my problem? There are 64/32bit, lite/full, bookworm/bullseye, legacy (and so on) in the Raspberry Pi Imager.

                As I said, install the current RaspiOS with desktop - which is code named bookworm. It should be the recommended image offered by Raspi Imager, but you can also download it manually from https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit and write it with RasPI Imager.

                G 2 Replies Last reply Reply Quote 0
                • G
                  gilllig @mitu
                  last edited by

                  @mitu thank you I'll try it right now)

                  1 Reply Last reply Reply Quote 0
                  • G
                    gilllig @mitu
                    last edited by gilllig

                    @mitu Ive installed raspOS and retropie, but now they dont even run)) After launching I see console and some text (smth like "debian gnu linux raspberry tt2, my ip, raspberry login:"). Do you know what to do with this?
                    I tried to choose emulationstation at the settings, I tried to add line "/usr/bin/emulationstation" in the /home/pi/.bashrc, but its not working...
                    I cant understand how to make autostart for raspOS or for retropie

                    add91106-694f-4978-aa22-646999775477-image.png

                    In the console I can run retropie by comand emulationstation. But comand startx doesnt run raspOS desktop, last lines after running this command:
                    xinit: giving up
                    xinit: unable to connect to X server: Connection refused
                    xinit: server error
                    Couldn't get a file descriptor referring to the console.

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

                      @gilllig said in Retropie doesnt boot with changed config:

                      Ive installed raspOS and retropie, but now they dont even run))

                      What exactly does this mean - they're both not running ?

                      I tried to choose emulationstation at the settings, I tried to add line "/usr/bin/emulationstation" in the /home/pi/.bashrc, but its not working...
                      I cant understand how to make autostart for raspOS or for retropie

                      You're running in an unsupported configuration, as I mentioned in my previous post, so you should not use the normal RetroPie auto-start options from the menu.

                      If you have installed the RaspiOS with Desktop, then just use the default option to boot to the Desktop. You can start EmulationStation from a terminal by typing emulationstaton. If you wish to automatically start Emulationstation after the boot to desktop is done, then

                      • create the $HOME/.config/autostart folder
                      • add a .desktop file with the command to start the terminal and EmulationStation (lxterminal -e emulationstation).
                      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.