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

    Error when installing GPIO touchscreen w/Retropie

    Scheduled Pinned Locked Moved Help and Support
    touchscreensdl window
    4 Posts 2 Posters 503 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.
    • E
      ehawkins2232
      last edited by

      I recently purchased a Raspberry Pi 4 (4GB Model). I am using a Canakit 3.5A PSU and Retropie 4.6. I installed a new copy of Retropie software on the device and it booted perfectly to EmulationStation. I also bought a 3.5-inch touchscreen + case to use with the Pi (https://www.amazon.com/gp/product/B07WQW6H9S/).

      After following the steps outlined by the touchscreen manufacturer for it to work specifically with the retropie software, I was able to get the touchscreen to work (This touchscreen requires a driver to work through the GPIO pins rather than the HDMI out). However, after the pi 4 reboots, it goes to the terminal and gives the following message:

      lvl0: Error creating SDL window!
      Could not initialize OpenGL / GLES library
      lvl0: Renderer failed to initialize!
      lvl0: Window failed to initialize!

      I did a complete wipe of the microSD card, reinstalled retropie, reinstalled the driver for the touchscreen to work, and the problem appeared again. I also tried sudo apt-get update && sudo apt-get upgrade, but the problem persisted. Retropie does not seem to be playing along with the driver I installed for the touchscreen and I do not understand why. Any suggestions would be greatly appreciated.

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

        Most likely the driver installation disables the PI4 GPU driver overlay (vc4-fkms-v3d) in config.txt. Re-enable it and it should work again, but other issues might pop-up.

        1 Reply Last reply Reply Quote 0
        • E
          ehawkins2232
          last edited by

          @mitu said in Error when installing GPIO touchscreen w/Retropie:

          Most likely the driver installation disables the PI4 GPU driver overlay (vc4-fkms-v3d) in config.txt. Re-enable it and it should work again, but other issues might pop-up.

          I changed the overlay text from mhs35 to vc4-fkms-v3d, but on reboot the touchscreen receives no output and instead the pi outputs to hdmi 0.

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

            @ehawkins2232 You don't need to comment out the mhs35overlay line, the config file can have multiple dtoverlay parameters - you just need to un-comment the line with dtoverlay=vc4-fkms-v3d.

            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.