# Pastebin 50OnAH67 diff --git a/drm-common.c b/drm-common.c index 136fe69..cc6a0cf 100644 --- a/drm-common.c +++ b/drm-common.c @@ -183,7 +183,8 @@ int init_drm(struct drm *drm, const char *device) /* find a connected connector: */ for (i = 0; i < resources->count_connectors; i++) { connector = drmModeGetConnector(drm->fd, resources->connectors[i]); - if (connector->connection == DRM_MODE_CONNECTED) { + if (connector->encoder_id && + connector->connection == DRM_MODE_CONNECTED) { /* it's connected, let's use this! */ break; }