xrandr设置双屏显示
设置双屏幕显示
- 打开外接显示器,双屏幕显示相同的内容–克隆,(auto 为最高分辨率)
xrandr --output HDMI-1 --same-as DVI-D-1 --auto
- 若要指定外接显示器的分辨率可以使用下面的命令(1280*1024):
xrandr --output HDMI-1 --same-as DVI-D-1 --mode 1280x1024
- 打开外接显示器,设置为右侧扩展
xrandr --output HDMI-1 --right-of DVI-D-1 --auto
- 关闭显示器
xrandr --output DVI-D-1 --off
- 打开 HDMI-1 接口显示器,关闭 DVI-D-1 接口显示器
xrandr --output HDMI-1 --auto --output DVI-D-1 --off
- 设置主屏幕
xrandr --output HDMI-0 --primary