]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Do a final xrandr call to reset the fb size
authorPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 23 Jan 2023 10:17:39 +0000 (11:17 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 23 Jan 2023 10:18:47 +0000 (11:18 +0100)
Fixes #319

README.md
autorandr.py

index a411bd31b26733b61624b3b855f6d09c98d72241..311d04fbb1ee6036735ad53edf8af77cf75786d3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -259,6 +259,7 @@ options nvidia_drm modeset=1
 
 **autorandr 1.13.2 (dev)**
 * *2023-01-23* Fix wildcard use in EDIDs (see #322)
+* *2023-01-23* Do a final xrandr call to set the frame buffer size (see #319)
 
 **autorandr 1.13.1**
 * *2023-01-16* Fix bug with Version comparison
index db835fb8311796ca4482cfdf2299767a5dcb58ac..cc9d9c8b9d0e56527d9c47a344a0e70eefa228c5 100755 (executable)
@@ -1016,6 +1016,13 @@ def apply_configuration(new_configuration, current_configuration, dry_run=False)
         if call_and_retry(argv, dry_run=dry_run) != 0:
             raise AutorandrException("Command failed: %s" % " ".join(map(shlex.quote, argv)))
 
+    # Adjust the frame buffer to match (see #319)
+    if fb_args:
+        argv = base_argv
+        if call_and_retry(argv, dry_run=dry_run) != 0:
+            raise AutorandrException("Command failed: %s" % " ".join(map(shlex.quote, argv)))
+
+
 
 def is_equal_configuration(source_configuration, target_configuration):
     """