Solved 3:2 Aspect Ratio?
-
Hey guys,
Is there anyway to make the UI and the games run in 3:2 ratio? I have a 480x320 display which everything looks 'tall' on.
I've looked through the possible config.txt settings but not able to find that resolution.
I have already set:
framebuffer_width=480
framebuffer_height=320but doesn't seem to make a difference?
Thanks!
-
@BuToNz have you looked at hdmi_cvt inconfig.txt ? The ratio doesn't matter at all, but your screen does. See https://www.raspberrypi.org/documentation/configuration/config-txt.md
Is your screen on SPI ? HDMI or DPI ? Or even composite ?
-
@Substring Thanks! I did look at that but seems you have to define a ratio? There is no 3:2. The screen is HDMI
Changing the RetroArch config to 3:2 ratio the games look fine, just struggling with the UI looking right now. I wouldn't mind black bars at the top and the bottom but the 'tall' stretch is bugging me!
-
@BuToNz you're taking the problem in the wrong order i believe ... If your screen was set to 480x320 right from the start and you tell recalbox not to change the resolution when launching an emulator, i think you'd be good.
https://github.com/recalbox/recalbox-os/wiki/Video-configuration-detailled-(EN) wouldn't hurt to read
-
@Substring It's not the emulators that are a problem now it's the UI. I have read through the video config but don't see a way to force my resolution? None of the HDMI modes or the CVT mode has the right resolution/aspect ratio options? Perhaps I am understanding it wrong...
This is the display I am using: https://www.aliexpress.com/item/Newest-3-5-LCD-USB-Touch-Screen-Display-HDMI-1920x1080-LCD-Display-Audio-for-Raspberry-Pi/32770598031.html
-
@BuToNz So just set a hdmi_cvt yourself in the config.txt (see my 1st link), switch to
hdmi_group=2
andhdmi_mode=87
in /boot/config.txt, andglobal.videomode=default
in recalbox.conf -
@Substring I understand but in custom CVT I need to define an aspect ratio?
aspect ratio 1=4:3, 2=14:9, 3=16:9, 4=5:4, 5=16:10, 6=15:9 are the only options, no 3:2? -
@BuToNz then hdmi_timings rather maybe
The doc says you're 1080p, why not run at such res ? -
@Substring Thanks for the help! I created a custom mode without the aspect ratio, seems to have done the trick! Font looks horrible but I could probably modify the theme for larger font to fix that.
So my config.txt has this:
hdmi_cvt=480 320 60
hdmi_group=2
hdmi_mode=87
hdmi_drive=2It will take a 1080p/720p signal but it looks 'tall' hence trying to set a custom resolution/aspect ratio.
-
@BuToNz great !
-
@BuToNz did you check this page https://github.com/recalbox/recalbox-os/wiki/TFT-Screen-SPI-Bus-(EN) and the section on the 3.5 waveshare tft screen :
#tft screen #Waveshare 3.5 TFT Screen #same resolution for hdmi and tft hdmi_force_hotplug=1 hdmi_cvt=480 320 60 1 0 0 0 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 dtparam=spi=on dtoverlay=waveshare35a:rotate=270,speed=27000000