From: Phillip Berndt Date: Mon, 26 Jan 2015 06:46:45 +0000 (+0100) Subject: Run xrandr disabling connected, but inactive outputs before any other xrandr commands X-Git-Tag: 1.0~89 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=198d8eb06e2dbd015e4d14932ff55a746861f5bb Run xrandr disabling connected, but inactive outputs before any other xrandr commands Related to bug #13 --- 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: