From 0027280d275e2119d9a5e097fd0cbb7708fe7f2c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 25 Jun 2024 23:01:11 +0200 Subject: [PATCH] drm: ignore crtc-less connectors in scanConnectors --- src/backend/drm/DRM.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 596ce21..f489522 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -451,7 +451,10 @@ void Aquamarine::CDRMBackend::scanConnectors() { } else conn = *it; - backend->log(AQ_LOG_DEBUG, std::format("drm: Connectors size {}", connectors.size())); + if (!conn->crtc) { + backend->log(AQ_LOG_DEBUG, std::format("drm: Ignoring connector {} because it has no CRTC", connectorID)); + continue; + } backend->log(AQ_LOG_DEBUG, std::format("drm: Connector {} connection state: {}", connectorID, (int)drmConn->connection));