2

I'm trying to invoke VNC from a remote terminal and no matter the command line I submit I get:

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

The session starts like normal...

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
  • What is the result of echo $XDG_SESSION_TYPE on both machines? – Videonauth Nov 5 '17 at 3:45
  • It's not populated in the server's ssh session, I'm not sure about in a terminal fired within the X session, and the client is Windows. I set it to "x11" and the error remains the same. – HellionWisp Nov 5 '17 at 10:33
  • @Videonauth You were on the right track ;). The problem is related to Wayland. I changed to Xorg and x11vnc works again. The problem is not resolved, but I'll live with this workaround. – HellionWisp Nov 5 '17 at 21:32
2

It seems one of your machines is running on wayland as display manager and many applications including x11vnc depend heavily on Xorg/Xserver and fail to work on wayland.

So a switching to Xorg ad display manager should fix your problem. This you can do by logging out and change your display manager by clicking on the small cogwheel beside the sign in button. (See screen-shot)

enter image description here

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.