From ef5406990eb5a893e2f651cc3cdb7dd193f9bb0f Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Wed, 25 Sep 2019 12:02:03 +0530 Subject: [PATCH] [platforms/drm] Consider DSI connector type to be internal display Summary: Lot of mobile devices, as well as tablet devices use the DSI connector, for internal screens. This is more common in ARM devices, so consider them as internal display as well. Test Plan: checked on the device with DSI screen, it was considered internal Reviewers: #kwin, romangg Reviewed By: #kwin, romangg Subscribers: romangg, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24209 --- plugins/platforms/drm/drm_output.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/platforms/drm/drm_output.cpp b/plugins/platforms/drm/drm_output.cpp index cdb373b7d1..bfc9d4026a 100644 --- a/plugins/platforms/drm/drm_output.cpp +++ b/plugins/platforms/drm/drm_output.cpp @@ -256,7 +256,8 @@ bool DrmOutput::init(drmModeConnector *connector) return false; } - setInternal(connector->connector_type == DRM_MODE_CONNECTOR_LVDS || connector->connector_type == DRM_MODE_CONNECTOR_eDP); + setInternal(connector->connector_type == DRM_MODE_CONNECTOR_LVDS || connector->connector_type == DRM_MODE_CONNECTOR_eDP + || connector->connector_type == DRM_MODE_CONNECTOR_DSI); setDpmsSupported(true); if (isInternal()) {