From 4ca4852eac209cc822252c5b17b1e8f2ce8b2c6c Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 3 Sep 2018 15:14:47 +0300 Subject: kmstest: don't use "unknown" connectors by default When using kmstest without parameters, use only connectors in Connected state, not in Unknown state. To use Uknown state connectors, the connector must be specified in the cmdline. Signed-off-by: Tomi Valkeinen --- utils/kmstest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp index 1c2d086..06e00ba 100644 --- a/utils/kmstest.cpp +++ b/utils/kmstest.cpp @@ -637,9 +637,9 @@ static vector setups_to_outputs(Card& card, ResourceManager& resman, } if (outputs.empty()) { - // no outputs defined, show a pattern on all screens + // no outputs defined, show a pattern on all connected screens for (Connector* conn : card.get_connectors()) { - if (!conn->connected()) + if (conn->connector_status() != ConnectorStatus::Connected) continue; OutputInfo output = { }; -- cgit v1.2.3