From 10ec66f3c26b4a4212dc757df04cd9abc98c39c4 Mon Sep 17 00:00:00 2001 From: Maciej Sitarz Date: Sun, 12 Feb 2012 14:10:06 +0100 Subject: [PATCH] Handle outputs with "unknown connection" as "off". --- autorandr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autorandr b/autorandr index 89d5e25..376b1ae 100755 --- a/autorandr +++ b/autorandr @@ -126,7 +126,8 @@ current_cfg_xrandr() { next; } # disconnected or disabled displays - /^[^ ]+ (dis)?connected / { + /^[^ ]+ (dis)?connected / || + /^[^ ]+ unknown connection / { print "output "$1; print "off"; next; -- 2.39.5