Fix disabling the external screen
authorRalf Jung <post@ralfj.de>
Sat, 21 Jul 2012 20:30:37 +0000 (22:30 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 21 Jul 2012 20:30:49 +0000 (22:30 +0200)
external_screen.py

index 895405e20d4a2fd01217ce306f64b596809b1bc6..01c744ba2fe350c2810bdb457524674b951f13fd 100755 (executable)
@@ -72,7 +72,7 @@ if externalResolutions is not None: # we need to ask what to do
                else:
                        internalArgs += ["--primary"]
 else:
                else:
                        internalArgs += ["--primary"]
 else:
-       internalArgs = ["--mode", res2str(internalResolutions[0]), "--primary"]
+       internalArgs = ["--mode", res2xrandr(internalResolutions[0]), "--primary"]
        externalArgs = ["--off"]
 # and do it
 call = ["xrandr", "--output", internalName] + internalArgs + ["--output", externalName] + externalArgs
        externalArgs = ["--off"]
 # and do it
 call = ["xrandr", "--output", internalName] + internalArgs + ["--output", externalName] + externalArgs