xrandr虚拟显示器
虚拟一个屏幕
https://github.com/pavlobu/deskreen/issues/42
# 创建一个和实体机一样大的虚拟显示器
xrandr --newmode "2880x1800_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
# selected disconnected Screen, such as HDMI-1
xrandr --addmode HDMI-1 2880x1800_60.00
xrandr --output HDMI-1 --mode "2880x1800_60.00" --right-of eDP-1
xrandr
# see has * is runing.
# ...
# HDMI-1 disconnected 2880x1800+2880+0 (normal left inverted right x axis y axis) 0mm x 0mm
# 2880x1800_60.00 59.96*
# ...
# Off
xrandr --output HDMI-1 --off
# xrandr --delmode HDMI-1 "1920x1080_60.00"
# and use vnc server to use
x11vnc -forever -usepw -display :0