Hi experts,
I'm using imx8m-evk, I have bought waveshare 7inch hdmi (c) model. This screen supports fixed resolution 1024x600, but from drm/fb0/modes, I could not find this resolution. I can see the nxp logo at boot time, but it does not show the penguin, loading screen and main desktop. I suppose a reason is from not supported resolution in yocto build. How can I add a custom resolution to my build?
Thank you!
try to add 1024x600 in the drm_dmt_modes ofdrm_edid.c according to your display spec,
after boot up, check the log file if the board detect the display or not
Hi joanxie,
I added several settings in
linux-imx/drivers/gpu/drm/drm_edid.c
// In drm_dmt_modes
/* 0x59 - 1024x600@60Hz */
{ DRM_MODE("1024x600", DRM_MODE_TYPE_DRIVER, 54000, 1024, 1072,
1168, 1312, 0, 600, 603, 613, 626, 0,
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC) },
// In edid_cea_modes
/* 108 - 1024x600@60Hz 16:9 */
{ DRM_MODE("1024x600", DRM_MODE_TYPE_DRIVER, 54000, 1024, 1072,
1168, 1312, 0, 600, 603, 613, 626, 0,
DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC),
.vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },
sources/meta-imx/meta-bsp/recipes-graphics/wayland/weston-init/weston.ini
[output]
name=HDMI-A-1
mode=1024x600@60
But still no 1024x600 resolution in cat /sys/class/drm/card0-HDMI-A-1/modes
Thank you!