Setting the HDMI display resolution for EGLFS

Hi,
This question is a follow-up to this thread. I followed this instruction to create a custom image with QT5.9 included. So far the “Qt5_CinematicExperience -platform eglfs” does start but however, the resolution is still messed up and shows 640x480 instead of 800x480. Setting QT_QPA_EGLFS_WIDTH and QT_QPA_EGLFS_HEIGHT does not help either. As the image has no X11 and wayland i am not sure how to fix the resolution.

Hardware:
Apalis iMX6D V1.1B
Ixora V1.2A
BSP2.8.7
800x480 HDMI Display

Thanks in advance.

Hello @qojote ,

Several parts of this thread seem very relevant to your issue, especially setting resolution via vidargs. Have you had a look already?

Best regards,
Janani

Hi @saijanani.tx ,
My framebuffer supports the 800x480 resolution:

cat /sys/class/graphics/fb0/modes
D:800x480p-65
V:640x480p-60

and i did set the vidargs to:

fw_setenv vidargs 'mxc_hdmi.only_cea=0 video=mxcfb0:dev=hdmi,800x480M@65,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=32M'

respectivly. Anything else i might have missed?

BR

Setting the framebuffer explicitly does work though.

echo D:800x480p-65 > /sys/class/graphics/fb0/mode