teamviewer、anydesk等连接没有插显示器的debian系统时会卡顿的问题

用teamviewer或anydesk连接远程debian机器时,即使在局网内也会卡成屎。原因未明,哈哈哈哈

原因

据说是xwindow没有启动,但没有启动为何又能连得上,只是很卡。算了,不懂也不深究,只说解决方法

解决方法

https://askubuntu.com/questions/453109/add-fake-display-when-no-monitor-is-plugged-in

Found a way to do it without requiring a dummy plug: Ubuntu Headless VNC VESA 800x600 Resolution Fix ~ Andy Hawkins @ June 12, 2011

Basically install a dummy driver:

sudo apt-get install xserver-xorg-video-dummy
Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf (or possibly /etc/X11/xorg.conf) file (create one, if it does not exist):

Section “Device”
Identifier “Configured Video Device”
Driver “dummy”
EndSection

Section “Monitor”
Identifier “Configured Monitor”
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024x800”
EndSubSection
EndSection

还是翻译成中文吧,就是:

装一个虚拟显示器燕驱动

  1. apt安装驱动

    1
    sudo apt-get install xserver-xorg-video-dummy
  2. 配置虚拟显示器
    将以下配置写入配置文件,/usr/share/X11/xorg.conf.d/xorg.conf/etc/X11/xorg.conf

    在下试的/etc/X11/xorg.conf,可以正常使用

    配置文件如下:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    Section "Device"
    Identifier "Configured Video Device"
    Driver "dummy"
    EndSection

    Section "Monitor"
    Identifier "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
    EndSection

    Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1024x800"
    EndSubSection
    EndSection

    是啥子意思呢,看不懂。。。哈哈哈哈

  3. 重启系统
    如果正常,那么再次用teamviewer连接,就不会卡了

0%