Commit d9d1c976 authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

platforms/drm: do not try to use the GPU card node

On some devices, the GPU nodes are also added as /dev/dri/cardX, they
are not useful for KMS purposes and does not have display resources.
If we encounter such cards, then skip them.
parent c586a255
......@@ -250,6 +250,17 @@ void DrmBackend::openDrm()
qCWarning(KWIN_DRM) << "failed to open drm device at" << devNode;
// try to make a simple drm get resource call, if it fails it is not useful for us
drmModeRes *resources = drmModeGetResources(fd);
if (!resources) {
qCDebug(KWIN_DRM) << "Skipping KMS incapable drm device node at" << devNode;
m_active = true;
QSocketNotifier *notifier = new QSocketNotifier(fd, QSocketNotifier::Read, this);
connect(notifier, &QSocketNotifier::activated, this,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment