Force KMS overscan setting to take effect when mutter not running

This commit is contained in:
Simon Long 2022-03-31 12:53:03 +01:00
parent d3fe4e7058
commit 0c27957230

View File

@ -371,6 +371,11 @@ do_overscan_kms() {
fi fi
fi fi
xrandr --output HDMI-$DEV --set "left margin" $PIX --set "right margin" $PIX --set "top margin" $PIX --set "bottom margin" $PIX 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_/" sed $CONFIG -i -e "s/^overscan_/#overscan_/"
set_config_var disable_overscan 1 $CONFIG set_config_var disable_overscan 1 $CONFIG
if [ -e /usr/share/ovscsetup.sh ] ; then if [ -e /usr/share/ovscsetup.sh ] ; then