步骤
# 首先使用使用xrandr命令查看外接端口名称
$ xrandr
# 打开外接显示器(–auto:最高分辨率),设置为z左侧扩展屏幕
$ xrandr --output VGA-0 --left-of LVDS --auto
# 打开外接显示器,同时关闭笔记本液晶屏幕(只用外接显示器工作)
$ xrandr --output VGA-0 --auto --output LVDS --off
参考链接
[1] ubuntu扩展屏幕:https://blog.csdn.net/qq_29796317/article/details/78703585