37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From b9cc563f142f2d3b8edd976bbdb2bf302220e1fd Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Yannick=20Fertr=C3=A9?= <yannick.fertre@st.com>
|
|
Date: Fri, 11 Jan 2019 10:55:05 +0100
|
|
Subject: [PATCH] Force to close all output
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
In case of plug/unplug HMDI, it's necessary to close all output enabled.
|
|
Without this patch, weston is stuck on DSI output.
|
|
|
|
Signed-off-by: Yannick Fertré <yannick.fertre@st.com>
|
|
---
|
|
compositor/main.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/compositor/main.c b/compositor/main.c
|
|
index cf94d17..71c547b 100644
|
|
--- a/compositor/main.c
|
|
+++ b/compositor/main.c
|
|
@@ -1819,7 +1819,11 @@ drm_heads_changed(struct wl_listener *listener, void *arg)
|
|
|
|
if ((connected || forced) && !enabled) {
|
|
drm_head_prepare_enable(wet, head);
|
|
- } else if (!(connected || forced) && enabled) {
|
|
+ } else if (enabled) {
|
|
+ /*
|
|
+ * closed all output (connected or not connected)
|
|
+ * this is neccessary to switch between HDMI <> DSI
|
|
+ */
|
|
drm_head_disable(head);
|
|
} else if (enabled && changed) {
|
|
weston_log("Detected a monitor change on head '%s', "
|
|
--
|
|
2.7.4
|
|
|