LibVNC / x11vnc

a VNC server for real X displays
GNU General Public License v2.0
722 stars 142 forks source link

Screen painting Issues #65

Open xpaintingerror opened 6 years ago

xpaintingerror commented 6 years ago

I am getting screen painting issues. Whenever I connect to my x11vnc my screen that isnt part of the -clip continually reverts back to an earlier state. It is temporary restored if I cause a repaint with my mouse or text input changes, ect. I have tried -noxdamage -xdamage -noxcomposite -xrefresh, -safer, -nocmds, -nonap, -xd_mem 0, -defer, -ncache, -ncache_cr, -noxfixes. I think I need something like -xrefresh but for windows that are not in the clip area.

` x11vnc -many -clip 1600x900+0+0 -rfbauth ~/.vnc/passwd_1 -rfbport 5901 (Date Time) passing arg to libvncserver: -rfbauth (Date Time) passing arg to libvncserver: /home/user/.vnc/passwd_1 (Date Time) passing arg to libvncserver: -rfbport (Date Time) passing arg to libvncserver: 5901 (Date Time) x11vnc version: 0.9.14 lastmod: 2015-11-14 pid: 24555 (Date Time) Using X display :0.0 (Date Time) rootwin: 0x53d reswin: 0x2400001 dpy: 0x2c2ccf20 (Date Time) (Date Time) ------------------ USEFUL INFORMATION ------------------ (Date Time) X DAMAGE available on display, using it for polling hints. (Date Time) To disable this behavior use: '-noxdamage' (Date Time) (Date Time) Most compositing window managers like 'compiz' or 'beryl' (Date Time) cause X DAMAGE to fail, and so you may not see any screen (Date Time) updates via VNC. Either disable 'compiz' (recommended) or (Date Time) supply the x11vnc '-noxdamage' command line option. (Date Time) X COMPOSITE available on display, using it for window polling. (Date Time) To disable this behavior use: '-noxcomposite' (Date Time) (Date Time) Wireframing: -wireframe mode is in effect for window moves. (Date Time) If this yields undesired behavior (poor response, painting (Date Time) errors, etc) it may be disabled: (Date Time) - use '-nowf' to disable wireframing completely. (Date Time) - use '-nowcr' to disable the Copy Rectangle after the (Date Time) moved window is released in the new position. (Date Time) Also see the -help entry for tuning parameters. (Date Time) You can press 3 Alt_L's (Left "Alt" key) in a row to (Date Time) repaint the screen, also see the -fixscreen option for (Date Time) periodic repaints. (Date Time) (Date Time) XFIXES available on display, resetting cursor mode (Date Time) to: '-cursor most'. (Date Time) to disable this behavior use: '-cursor arrow' (Date Time) or '-noxfixes'. (Date Time) using XFIXES for cursor drawing. (Date Time) GrabServer control via XTEST. (Date Time) (Date Time) Scroll Detection: -scrollcopyrect mode is in effect to (Date Time) use RECORD extension to try to detect scrolling windows (Date Time) (induced by either user keystroke or mouse input). (Date Time) If this yields undesired behavior (poor response, painting (Date Time) errors, etc) it may be disabled via: '-noscr' (Date Time) Also see the -help entry for tuning parameters. (Date Time) You can press 3 Alt_L's (Left "Alt" key) in a row to (Date Time) repaint the screen, also see the -fixscreen option for (Date Time) periodic repaints. (Date Time) (Date Time) XKEYBOARD: number of keysyms per keycode 7 is greater (Date Time) than 4 and 51 keysyms are mapped above 4. (Date Time) Automatically switching to -xkb mode. (Date Time) If this makes the key mapping worse you can (Date Time) disable it with the "-noxkb" option. (Date Time) Also, remember "-remap DEAD" for accenting characters. (Date Time) (Date Time) X FBPM extension not supported. (Date Time) X display is capable of DPMS. (Date Time) -------------------------------------------------------- (Date Time) (Date Time) Default visual ID: 0x71 (Date Time) Read initial data from X display into framebuffer. (Date Time) initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/6400 (Date Time) (Date Time) X display :0.0 is 32bpp depth=24 true color (Date Time) (Date Time) Listening for VNC connections on TCP port 5901 (Date Time) Listening for VNC connections on TCP6 port 5900 (Date Time) Listening also on IPv6 port 5901 (socket 11) (Date Time) (Date Time) Xinerama is present and active (e.g. multi-head). (Date Time) Xinerama: number of sub-screens: 5 (Date Time) Xinerama: enabling -xwarppointer mode to try to correct (Date Time) Xinerama: mouse pointer motion. XTEST+XINERAMA bug. (Date Time) Xinerama: Use -noxwarppointer to force XTEST. (Date Time) Xinerama: sub-screen[0] 1920x1080+1600+452 (Date Time) Xinerama: sub-screen[1] 1920x1080+3520+452 (Date Time) Xinerama: sub-screen[2] 1024x768+576+900 (Date Time) Xinerama: sub-screen[3] 1600x900+0+0 (Date Time) Xinerama: sub-screen[4] 1680x945+5440+723 (Date Time) Xinerama: no blackouts needed (screen fills rectangle) (Date Time) (Date Time) fb read rate: 578 MB/sec (Date Time) fast read: reset -wait ms to: 10 (Date Time) fast read: reset -defer ms to: 10 (Date Time) The X server says there are 20 mouse buttons. (Date Time) screen setup finished. (Date Time)

The VNC desktop is: hostname:1 PORT=5901


Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster retrieval. It should work with any VNC viewer. Try it by running:

x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion. More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

(Date Time) Got connection from client 192.168.1.51 (Date Time) other clients: (Date Time) Normal socket connection (Date Time) Disabled X server key autorepeat. (Date Time) to force back on run: 'xset r on' (3 times) (Date Time) incr accepted_client=1 for 192.168.1.51:43226 sock=12 (Date Time) Client Protocol Version 3.8 (Date Time) Protocol version sent 3.8, using 3.8 (Date Time) rfbProcessClientSecurityType: executing handler for type 2 (Date Time) Pixel format for client 192.168.1.51: (Date Time) 32 bpp, depth 24, little endian (Date Time) true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0 (Date Time) no translation needed (Date Time) Using compression level 1 for client 192.168.1.51 (Date Time) Using image quality level 6 for client 192.168.1.51 (Date Time) Using JPEG subsampling 0, Q79 for client 192.168.1.51 (Date Time) Enabling X-style cursor updates for client 192.168.1.51 (Date Time) Enabling full-color cursor updates for client 192.168.1.51 (Date Time) Enabling cursor position updates for client 192.168.1.51 (Date Time) Enabling LastRect protocol extension for client 192.168.1.51 (Date Time) Using tight encoding for client 192.168.1.51 (Date Time) client 1 network rate 807.0 KB/sec (28398.8 eff KB/sec) (Date Time) client 1 latency: 0.5 ms (Date Time) dt1: 0.0108, dt2: 0.1922 dt3: 0.0005 bytes: 163725 (Date Time) link_rate: LR_LAN - 1 ms, 806 KB/s (Date Time) client_set_net: 192.168.1.51 0.0021 (Date Time) created xdamage object: 0x2400036 ^Ccaught signal: 2 (Date Time) deleted 50 tile_row polling images. (Date Time) Restored X server key autorepeat to: 1 ` Note: I removed date/time/hostname/username

xpaintingerror commented 6 years ago

nvm looks like the problem is normally triggered by x11vnc, but can be triggered by other applications when x11vnc is not running. Seeing if running lightdm fixes the problem.