Nomachine_虚拟桌面_调整虚拟桌面分辨率

使用虚拟桌面

安装基础组件

sudo apt-get install  xserver-xorg-core-hwe-18.04
sudo apt-get install  xserver-xorg-video-dummy-hwe-18.04  --fix-missing

修改配置文件,以创建一个虚拟桌面

vim /usr/share/X11/xorg.conf.d/xorg.conf

写入以下内容

Section "Monitor"
  Identifier "Monitor0"
  HorizSync   5.0 - 1000.0
  VertRefresh 5.0 - 200.0
  # https://arachnoid.com/modelines/
  # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
  Modeline "2560x1600" 47.12 2560 2592 2768 2800 1600 1639 1642 1681
  Modeline "2560x1440" 42.12 2560 2592 2752 2784 1440 1475 1478 1513
  Modeline "1920x1080" 23.53 1920 1952 2040 2072 1080 1106 1108 1135
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 "2560x1600" "2560x1440" "1920x1080"
  EndSubSection
EndSection

重启,即可生效,此时,物理屏幕输出为黑屏 若要恢复有线屏幕输出,则删除该文件,重启

调整为任意分辨率

xrandr --fb 1280x960
posted @   zeroSignal  阅读(432)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
点击右上角即可分享
微信分享提示