双屏,xrandr:获取视频设备的名称

Ada*_*tan 9 multiple-monitors xrandr ubuntu

我一直在尝试使用xrandr.

经过一些 Google 和 SU 搜索后,我设法:

xrandr --output LVDS --pos 1680x0
Run Code Online (Sandbox Code Playgroud)

这将我的笔记本电脑屏幕 (LVDS) 设置为与我的台式机屏幕大小合适。

现在,如果我想把它放在左边,我必须使用这个符号:

xrandr --output LVDS --left-of MY_DESKTOP_SCREEN
Run Code Online (Sandbox Code Playgroud)

当然,没有MY_DESKTOP_SCREEN设备,所以我得到:

xrandr: cannot find output "MY_DESKTOP_SCREEN"
Run Code Online (Sandbox Code Playgroud)

如何查找或配置视频设备的名称?

Ada*_*tan 11

这个网站有帮助,所以我输入:

xrandr -q
Run Code Online (Sandbox Code Playgroud)

q 代表查询,它给出:

Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 2960 x 1050
VGA connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      60.0*+   59.9
   1280x1024      75.0     59.9
   1280x960       59.9
   1152x864       75.0     74.8
   1024x768       75.1     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        75.0     72.8     66.7     60.0
   720x400        70.1
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800       60.2*+   60.0     50.0
   1280x768       60.0
   1024x768       60.0
   800x600        60.3
   640x480        59.9
TV disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)

现在我能:

xrandr --output LVDS --left-of VGA
Run Code Online (Sandbox Code Playgroud)

和:

魔法发生了: