我有一台电脑正在运行Ubuntu 20.04通过NVIDIA 1650gpu,我的显示器通过HDMI电缆。我想将我的旧笔记本电脑用作第二台显示器(扩展屏幕),因为我现在买不起新显示器。有人能帮我吗?我试过通过xrandr
或 xorg 配置添加虚拟显示器,但仍然没有成功!所有其他答案都已过时,并且不适用于nvidia
。
我的目标是创建虚拟显示器作为扩展屏幕,并通过笔记本电脑的 vnc 客户端连接到它。
我也用过这个https://github.com/mrenrich84/vnc_virtual_display_linkerrepo 但是我得到了这个错误:
>> N
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 35
Current serial number in output stream: 35
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 35
Current serial number in output stream: 36
xrandr: cannot find mode 1920x1080_60.00
xrandr 输出:
Screen 0: minimum 8 x 8, current 1920 x 1200, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 488mm x 297mm
1920x1200 59.95*+ 59.88
1920x1080 60.00 59.94 50.00
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
nvidia-smi 输出:
Mon Nov 22 22:24:04 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.82.00 Driver Version: 470.82.00 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|