mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-11-05 17:58:04 +09:00
Force KMS overscan setting to take effect when mutter not running
This commit is contained in:
parent
d3fe4e7058
commit
0c27957230
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user