From a2fa6d9016c57f4b98ca6b8d8130fd5045ff4cc0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 23 Nov 2021 11:00:59 +0100 Subject: Print which screen has no EDID (and caused GUI to show on startup) --- src/xx.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xx.cpp b/src/xx.cpp index 3ee2a2d..85f843f 100644 --- a/src/xx.cpp +++ b/src/xx.cpp @@ -330,8 +330,12 @@ bool ScreenSetup::hasScreenWithoutEdid() for (auto oi : a->_outputMap) { // no preferred modes pretty much means no EDID, although technically I think you could have EDID // that doesn't provide a preferred mode... - if (oi->output != nullptr && oi->output->connection != RR_Disconnected && oi->output->npreferred == 0) + if (oi->output != nullptr && oi->output->connection != RR_Disconnected && oi->output->npreferred == 0) { + qDebug() << oi->outputName << "has no EDID (status" << + (oi->output->connection == RR_Connected ? "Connected" : + (oi->output->connection == RR_Disconnected ? "Disconnected" : "Unknown")) << "), showing GUI"; return true; + } } return false; } -- cgit v1.2.3-55-g7522