From 0c279572307e1a8a3227f8684f4909d1c01ad5f6 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Thu, 31 Mar 2022 12:53:03 +0100 Subject: [PATCH] Force KMS overscan setting to take effect when mutter not running --- raspi-config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/raspi-config b/raspi-config index 4716caa..f7b699d 100755 --- a/raspi-config +++ b/raspi-config @@ -371,6 +371,11 @@ do_overscan_kms() { fi fi xrandr --output HDMI-$DEV --set "left margin" $PIX --set "right margin" $PIX --set "top margin" $PIX --set "bottom margin" $PIX + # hack to force reload when not using mutter + if ! ps ax | grep -v grep | grep -q mutter ; then + xrandr --output HDMI-$DEV --reflect x + xrandr --output HDMI-$DEV --reflect normal + fi sed $CONFIG -i -e "s/^overscan_/#overscan_/" set_config_var disable_overscan 1 $CONFIG if [ -e /usr/share/ovscsetup.sh ] ; then