From 198d8eb06e2dbd015e4d14932ff55a746861f5bb Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Mon, 26 Jan 2015 07:46:45 +0100 Subject: [PATCH] Run xrandr disabling connected, but inactive outputs before any other xrandr commands Related to bug #13 --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorandr.py b/autorandr.py index 8fc597d..5083c03 100755 --- a/autorandr.py +++ b/autorandr.py @@ -422,7 +422,7 @@ def apply_configuration(configuration, dry_run=False): # Disable all unused outputs argv = base_argv[:] for output in outputs: - if not configuration[output].edid: + if not configuration[output].edid or "off" in configuration[output].options: argv += configuration[output].option_vector if argv != base_argv: if subprocess.call(argv) != 0: -- 2.39.2