[Seek Help] deepin不外接显示器x11vnc远程桌面时不显示任务栏
Tofloor
poster avatar
封狼居胥
deepin
2021-06-06 04:52
Author

安装的是deepin 20.2,接显示器时,使用vnc登陆正常显示,如果不接物理显示器,远程VNC连接后,不能显示任务栏.

使用 xrandr命令时,显示Can't open display .

考虑安装虚拟显示器xserver-xorg-video-dummy,安装完后,连桌面也不能正常显示了.

有成功安装过虚拟显示器的吗?

 

==============

经测试已经解决,方法如下:

安装虚拟显示组件

sudo apt install xserver-xorg-video-dummy

编辑配置文件

sudo nano /usr/share/X11/xorg.conf.d/xorg.conf,内容如下:

Section "Device" 

  Identifier "Dummy0" 

  Driver "dummy" 

  VideoRam 256000 

  Option "IgnoreEDID" "true" 

  Option "NoDDC" "true" 

EndSection 

 

Section "Monitor" 

  Identifier "Monitor0" 

  HorizSync 15.0-100.0 

  VertRefresh 15.0-200.0 

EndSection 

 

Section "Screen"

#Identifier "Screen0" 

  Identifier "Screen0"

  Monitor "Monitor" 

  Device "Dummy" 

  DefaultDepth 24 

  SubSection "Display" 

    Depth 24 

    Modes "1920x1080" "1280x1024" 

  EndSubSection

EndSection

测试配置文件是否正常

sudo X -config /usr/share/X11/xorg.conf.d/xorg.conf 

正常的显示如下:

如果配置文件异常,会有错误提示,根据错误提示解决,下图是有错误显示的

重启后,就可以在不接物理显示器的情况下,通过VNC远程连接时桌面任务栏可以正常显示了.

参考以下资料:

https://ywnz.com/linuxjc/6923.html

https://techoverflow.net/2019/02/23/how-to-run-x-server-using-xserver-xorg-video-dummy-driver-on-ubuntu/

 

Reply Favorite View the author
All Replies
封狼居胥
deepin
2021-06-06 06:44
#1

经以上,桌面显示虽然正常了,但使用 xrandr命令时,依然显示Can't open display ,而且桌面分辨率也不是我们配置的。这个是什么问题知道的大侠指点一下。

Reply View the author