//关闭显示器VGA1
xrandr --output VGA1 --off
//开启显示器VGA1
xrandr --output VGA1 --auto
//关闭显示器LVDS1
xrandr --output LVDS1 --off
//开启显示器LVDS1
xrandr --output LVDS1 --auto
//打开VGA1,同时关闭LVDS1
xrandr --output VGA1 --auto --output LVDS1 --off
//关闭VGA1,同时打开LVDS1
xrandr --output VGA1 --off --output LVDS1 --auto
//扩展模式时,将LVDS1显示在VGA1的左侧
xrandr --output LVDS1 --left-of VGA1 --auto
//扩展模式时,将LVDS1显示在VGA1右侧.
xrandr --output LVDS1 --right-of VGA1 --auto
//从扩展模式变成复制模式.
xrandr --output LVDS1 --same-as VGA1 --auto
//设定主显示器.
xrandr --output HDMI1 --auto --primary
本文详细介绍如何利用xrandr命令灵活控制Linux系统下多个显示器的状态,包括开关显示器、设置扩展模式、复制模式以及主显示器的指定等。适用于需要进行多显示器管理的Linux用户。
828

被折叠的 条评论
为什么被折叠?



