emulationstation not using the resolution set in config.txt
-
Just bought a 4.0 inch lcd display from amazon. However I'm struggling with the resolution.
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=87
hdmi_drive=2
hdmi_cvt 480 800 60 6 0 0 0
display_rotate=3Here is when retropie boots up
[img]https://i.imgur.com/kpWev7Z.jpg[/img]
When emulationstation starts
[img]https://i.imgur.com/Fn4AGGl.jpg[/img]I also tried running emulationstation --resolution 480 800. But it was still showing the same thing.
However if I set display_rotate=0. Which is in portrait mode, then everything works fine.
-
EmulationStation has also a
--screenrotate
parameter (with the same values asdisplay_rotate
from config.txt), try using it in conjunction with the--resolution
. Are you using a Pi4 ? -
Yes I'm using Pi4 with retropie-buster-4.5.13-rpi4.img.
Okay this worked.
sudo /opt/retropie/supplementary/emulationstation/emulationstation --screenrotate 3 --resolution 800 480
Fantastic! Thank you. I was just mixing up the width/height I guess as I was just looking at the values in config.txt
-
I think the PI4 lacks (at the moment) all the options available for
display_(hdmi_lcd)_rotate
.
As pointed out by a forum user a few weeks back, the Pi4 doesn't allow rotation by 90 and 270 deg when using the VC4 FKMS V3D driver (the default on Pi4) - https://www.raspberrypi.org/documentation/configuration/config-txt/video.md. -
Oh that's interesting. I'm using the default driver, I guess rotation did not work for emulationstation when it was done through config.txt. However adding the --screenrotate, it definitely worked.
I'm also looking at the script they provided to set it upt.
https://github.com/goodtft/LCD-show/blob/master/MPI4008-showsudo echo "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" >> ./boot/config.txt.bak
Guess I need to be using the ads7846 driver instead of the default one. For now I'm just happy it worked. Thanks.
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.