Error when installing GPIO touchscreen w/Retropie
-
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.
-
Most likely the driver installation disables the PI4 GPU driver overlay (
vc4-fkms-v3d
) inconfig.txt
. Re-enable it and it should work again, but other issues might pop-up. -
@mitu said in Error when installing GPIO touchscreen w/Retropie:
Most likely the driver installation disables the PI4 GPU driver overlay (
vc4-fkms-v3d
) inconfig.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.
-
@ehawkins2232 You don't need to comment out the
mhs35
overlay line, theconfig
file can have multipledtoverlay
parameters - you just need to un-comment the line withdtoverlay=vc4-fkms-v3d
.
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.