From bdf8373bc2b2775d2285f96688907ae46823488c Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Fri, 23 Jan 2015 11:14:21 +0100 Subject: [PATCH] Python version: xrandr 1.2.0 didn't output a *current modeline, ignore the missing information --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorandr.py b/autorandr.py index da1abee..d91d2c8 100755 --- a/autorandr.py +++ b/autorandr.py @@ -197,7 +197,7 @@ class XrandrOutput(object): options["off"] = None edid = "".join(match["edid"].strip().split()) else: - if "mode_width" in match: + if "mode_width" in match and match["mode_width"]: options["mode"] = "%sx%s" % (match["mode_width"], match["mode_height"]) else: if match["rotate"] not in ("left", "right"): -- 2.39.2