mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-11-05 17:58:04 +09:00
Disable non-KMS overscan when making a KMS overscan setting
This commit is contained in:
parent
83169ae5a5
commit
a679096c43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user