]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Run xrandr disabling connected, but inactive outputs before any other xrandr commands
authorPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 26 Jan 2015 06:46:45 +0000 (07:46 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 26 Jan 2015 06:46:45 +0000 (07:46 +0100)
Related to bug #13

autorandr.py

index 8fc597da6cb8b95a97675efa86049b45aa34ace6..5083c03c20486cb08e9ab7e459bb7a62403e5f96 100755 (executable)
@@ -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: