From: Phillip Berndt Date: Mon, 23 Jan 2023 10:17:39 +0000 (+0100) Subject: Do a final xrandr call to reset the fb size X-Git-Tag: 1.13.2~5 X-Git-Url: https://git.donarmstrong.com/deb_pkgs/autorandr.git?a=commitdiff_plain;h=9aa18d7bd948400a8b35b3078b979fd4b2f18fd7;p=deb_pkgs%2Fautorandr.git Do a final xrandr call to reset the fb size Fixes #319 --- diff --git a/README.md b/README.md index a411bd3..311d04f 100644 --- 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 diff --git a/autorandr.py b/autorandr.py index db835fb..cc9d9c8 100755 --- a/autorandr.py +++ b/autorandr.py @@ -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): """