从 17.04 升级后,x11vnc 抛出“失败请求的 X 错误:BadMatch”

从 17.04 升级后,x11vnc 抛出“失败请求的 X 错误:BadMatch”

我正在尝试从远程终端调用 VNC,无论我提交什么命令行,我都会得到:

X Error of failed request:  BadMatch (invalid parameter attributes)  
Major opcode of failed request:  73 (X_GetImage)   
Serial number of failed request:  40   
Current serial number in output stream:  40

会议像平常一样开始......

owen@Thor:~$ x11vnc -storpasswd
05/11/2017 12:01:57 passing arg to libvncserver: -storpasswd
05/11/2017 12:01:57 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 13865
05/11/2017 12:01:57 XOpenDisplay("") failed.
05/11/2017 12:01:57 Trying again with XAUTHLOCALHOSTNAME=localhost ...
05/11/2017 12:01:57
05/11/2017 12:01:57 *** XOpenDisplay failed. No -display or DISPLAY.
05/11/2017 12:01:57 *** Trying ":0" in 4 seconds.  Press Ctrl-C to abort.
05/11/2017 12:01:57 *** 1 2 3 4
05/11/2017 12:02:01 *** XOpenDisplay of ":0" successful.
05/11/2017 12:02:01
05/11/2017 12:02:01 Using X display :0
05/11/2017 12:02:01 rootwin: 0x270 reswin: 0x2a00001 dpy: 0xf3ac80f0
05/11/2017 12:02:01
05/11/2017 12:02:01 ------------------ USEFUL INFORMATION ------------------
--snip--
05/11/2017 12:02:01 X FBPM extension not supported.
05/11/2017 12:02:01 X display is not capable of DPMS.
05/11/2017 12:02:01 --------------------------------------------------------
05/11/2017 12:02:01
05/11/2017 12:02:01 Default visual ID: 0x24
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)
  Serial number of failed request:  40
  Current serial number in output stream:  40

答案1

似乎您的一台机器正在 Wayland 上作为显示管理器运行,并且包括 x11vnc 在内的许多应用程序严重依赖 Xorg/Xserver,并且无法在 Wayland 上运行。

因此,切换到 Xorg 广告显示管理器应该可以解决您的问题。您可以通过注销并单击登录按钮旁边的小齿轮来更改显示管理器。(见屏幕截图)

在此处输入图片描述

相关内容