From 45c86f12ddcb6c5dc93a7d8a93a2cdca009285cd Mon Sep 17 00:00:00 2001 From: jojo61 Date: Fri, 14 Jul 2023 10:41:41 +0200 Subject: [PATCH] Use first Connector with EDID Data for drm output. --- drm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drm.c b/drm.c index e03ebd7..814af23 100644 --- a/drm.c +++ b/drm.c @@ -280,7 +280,7 @@ static int FindDevice(VideoRender *render) { if (DRMConnector && strcmp(DRMConnector, connectorstr)) continue; - if (connector->connection == DRM_MODE_CONNECTED && connector->count_modes > 0) { + if (/*connector->connection == DRM_MODE_CONNECTED && */ connector->count_modes > 0) { float aspect = (float)connector->mmWidth / (float)connector->mmHeight; if ((aspect > 1.70) && (aspect < 1.85)) { render->mmHeight = 90; @@ -492,6 +492,7 @@ static void drm_swap_buffers() { uint32_t fb; eglSwapBuffers(eglDisplay, eglSurface); + usleep(1000); struct gbm_bo *bo = gbm_surface_lock_front_buffer(gbm.surface); #if 1 if (bo == NULL)