Disable non-KMS overscan when making a KMS overscan setting

This commit is contained in:
Simon Long 2022-02-24 12:35:36 +00:00
parent 83169ae5a5
commit a679096c43

View File

@ -356,6 +356,8 @@ do_overscan_kms() {
DEV=$1
PIX=$2
fi
sed $CONFIG -i -e "s/^overscan_/#overscan_/"
set_config_var disable_overscan 1 $CONFIG
if grep "HDMI-$DEV" /usr/share/dispsetup.sh | grep -q margin ; then
sed /usr/share/dispsetup.sh -i -e "s/xrandr --output HDMI-$DEV.*margin.*/xrandr --output HDMI-$DEV --set \"left margin\" $PIX --set \"right margin\" $PIX --set \"top margin\" $PIX --set \"bottom margin\" $PIX/"
else