summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-23 11:00:59 +0100
committerSimon Rettberg2021-11-23 11:00:59 +0100
commita2fa6d9016c57f4b98ca6b8d8130fd5045ff4cc0 (patch)
tree695d6b339d4cbdc9bf3bdf693f50b18e4bb314d6
parentMore fallback special case workaroud stuff (diff)
downloadbeamergui-29r2.tar.gz
beamergui-29r2.tar.xz
beamergui-29r2.zip
Print which screen has no EDID (and caused GUI to show on startup)v29r2v29r1
-rw-r--r--src/xx.cpp6
1 files changed, 5 insertions, 1 deletions
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;
}