我的環(huán)境是 ubuntu 22.04
安裝
要安裝 video dummy,請在終端中運行以下命令:
sudo apt install xserver-xorg-video-dummy
配置
video dummy 的配置文件請自行搜索
使用任何文本編輯器打開此文件。
我的是 /etc/X11/xorg.conf
默認配置文件包含以下內(nèi)容:
Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
# https://arachnoid.com/modelines/
# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection
Section "Device"
Identifier "Card0"
Driver "dummy"
VideoRam 256000
EndSection
Section "Screen"
DefaultDepth 24
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 24
Modes "1920x1080_60.00"
EndSubSection
EndSection
可以根據(jù)需要修改此配置文件。以下是一些常見的配置選項:
-
Identifier
:虛擬顯示器的名稱。 -
Driver
:虛擬顯示器的驅(qū)動程序。 -
Modeline
:虛擬顯示器的顯示模式。 -
Viewport
:虛擬顯示器的顯示區(qū)域。
重啟電腦
查看效果文章來源:http://www.zghlxwxcb.cn/news/detail-766887.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-766887.html
到了這里,關(guān)于Todesk、向日葵等訪問“無顯示器”主機黑屏問題解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!