Retropie 4.6 and 4" LCD screen
-
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 initializeAny ideas of where a conflict could have occurred here? Not sure where to start looking, config.txt?
-
What Pi model do you have ? Post your
config.txt
, it may shed some light on what's going on. -
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=16uncomment to force a console size. By default it will be display's size minus
overscan.
#framebuffer_width=1280
#framebuffer_height=720uncomment 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=1uncomment 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=800Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=onUncomment 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 -
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 -
You have commented the
vc4-fkms-v3d
overlay (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. -
@mitu said in Retropie 4.6 and 4" LCD screen:
You have commented the
vc4-fkms-v3d
overlay (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? -
@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=2Your 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.
-
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 -
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?
-
@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.
-
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?
-
@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.
-
Ok I'll try that.
-
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.
-
@Madara-Uchiha I suggest you start with https://retropie.org.uk/docs/First-Installation/.
Any reason you're using 2 accounts instead of one ?
-
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.
-
@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...
-
@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 withemulationstation --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.
-
All right I'll try that!
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.