x11vnc freeze/hang issue

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
bi0mint
Level 1
Level 1
Posts: 1
Joined: Fri Sep 07, 2018 6:22 pm

x11vnc freeze/hang issue

Post by bi0mint »

Hello, first time poster around here but I've been using mint since quiana and never had an issue with VNC. I can't recall what software I had installed but it's sure wasn't x11vnc.

Now I just updated my old laptop to Tara xfce and I have problem using x11vnc. Each time I try to move a window, it hangs the connection for a good 5 sec and then comes back. I tried a lot a parameter but never found one that could completely stop the issue.

I'm using Ultravnc on Windows 10 with Hextile encoding to connect to my laptop.

here is a video to better describe the problem:
https://youtu.be/6lPgXWk4VYM

Here is a inxi -Fxz output:

Code: Select all

System:    Host: Tom-Laptop Kernel: 4.15.0-33-generic i686 bits: 32 gcc: 7.3.0
           Console: tty 0 Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: LG product: F1-224HF1 v: LG-1034 serial: N/A
           Mobo: MICRO-STAR INT'L model: MS-1034 serial: N/A
           BIOS: American Megatrends v: A1034IL1 V1.20 09/01/06 date: 09/01/2006
Battery    BAT1: charge: 15.5 Wh 58.7% condition: 26.4/48.8 Wh (54%)
           model: LG BAT1 status: N/A
CPU:       Dual core Intel Core2 T5200 (-MCP-) arch: Conroe rev.6 cache: 2048 KB
           flags: (lm nx pae sse sse2 sse3 ssse3) bmips: 6399
           clock speeds: max: 1596 MHz 1: 810 MHz 2: 815 MHz
Graphics:  Card: Intel Mobile 945GM/GMS 943/940GML Express Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: N/A drivers: intel (unloaded: modesetting,fbdev,vesa)
           tty size: 91x57 Advanced Data: N/A out of X
Audio:     Card Intel NM10/ICH7 Family High Def. Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-33-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: c800 bus-ID: 02:00.0
           IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Card-2: Intel PRO/Wireless 3945ABG [Golan] Network Connection
           driver: iwl3945 v: in-tree:s bus-ID: 03:00.0
           IF: wlp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 160.0GB (5.5% used)
           ID-1: /dev/sda model: FUJITSU_MHW2160B size: 160.0GB
Partition: ID-1: / size: 146G used: 8.2G (6%) fs: ext4 dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 52.8C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 173 Uptime: 1 day Memory: 330.6/2003.8MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56
Here is my x11vnc.service file:

Code: Select all


[Unit]
Description=Start x11vnc at startup.
Requires=display-manager.service
After=display-manager.service

[Service]
ExecStart=/usr/bin/x11vnc  -auth guess -forever -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared  -o /var/log/x11vnc.log -noxfixes
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
Restart-sec=5

[Install]
WantedBy=multi-user.target



Here is the most recent x11vnc.log output:

Code: Select all

07/09/2018 18:18:35 passing arg to libvncserver: -rfbauth
07/09/2018 18:18:35 passing arg to libvncserver: /etc/x11vnc/vncpwd
07/09/2018 18:18:35 passing arg to libvncserver: -rfbport
07/09/2018 18:18:35 passing arg to libvncserver: 5900
07/09/2018 18:18:35 passing arg to libvncserver: -rfbversion
07/09/2018 18:18:35 passing arg to libvncserver: 3.6
07/09/2018 18:18:35 passing arg to libvncserver: -permitfiletransfer
07/09/2018 18:18:35 -safer mode:
07/09/2018 18:18:35    vnc_connect=0
07/09/2018 18:18:35    accept_remote_cmds=0
07/09/2018 18:18:35    safe_remote_only=1
07/09/2018 18:18:35    launch_gui=0
07/09/2018 18:18:35 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 8108
xauth:  unable to generate an authority file name
07/09/2018 18:18:35 -auth guess: using 'XAUTHORITY=/var/run/lightdm/root/:0' for disp='uns$
07/09/2018 18:18:35 XOpenDisplay("") failed.
07/09/2018 18:18:35 Trying again with XAUTHLOCALHOSTNAME=localhost ...
07/09/2018 18:18:35 ^G
07/09/2018 18:18:35 *** XOpenDisplay failed. No -display or DISPLAY.
07/09/2018 18:18:35 *** Trying ":0" in 4 seconds.  Press Ctrl-C to abort.
07/09/2018 18:18:35 *** 1 2 3 4
07/09/2018 18:18:39 *** XOpenDisplay of ":0" successful.
07/09/2018 18:18:39
07/09/2018 18:18:39 Using X display :0
07/09/2018 18:18:39 rootwin: 0xa1 reswin: 0xa00001 dpy: 0x2666450
07/09/2018 18:18:39
07/09/2018 18:18:39 ------------------ USEFUL INFORMATION ------------------
07/09/2018 18:18:39
07/09/2018 18:18:39 XFIXES available on display, resetting cursor mode
07/09/2018 18:18:39   to: '-cursor most'.
07/09/2018 18:18:39   to disable this behavior use: '-cursor arrow'
07/09/2018 18:18:39   or '-noxfixes'.
07/09/2018 18:18:39 using XFIXES for cursor drawing.
07/09/2018 18:18:39 GrabServer control via XTEST.
07/09/2018 18:18:39
07/09/2018 18:18:39 Scroll Detection: -scrollcopyrect mode is in effect to
07/09/2018 18:18:39   use RECORD extension to try to detect scrolling windows
07/09/2018 18:18:39   (induced by either user keystroke or mouse input).
07/09/2018 18:18:39   If this yields undesired behavior (poor response, painting
07/09/2018 18:18:39   errors, etc) it may be disabled via: '-noscr'
07/09/2018 18:18:39   Also see the -help entry for tuning parameters.
07/09/2018 18:18:39   You can press 3 Alt_L's (Left "Alt" key) in a row to
07/09/2018 18:18:39   repaint the screen, also see the -fixscreen option for
07/09/2018 18:18:39   periodic repaints.
07/09/2018 18:18:39
07/09/2018 18:18:39 XKEYBOARD:
07/09/2018 18:18:39 Switching to -xkb mode to recover these keysyms:
07/09/2018 18:18:39    xkb  noxkb   Keysym  ("X" means present)
07/09/2018 18:18:39    ---  -----   -----------------------------
07/09/2018 18:18:39     X           0x40  at
07/09/2018 18:18:39     X           0x5b  bracketleft
07/09/2018 18:18:39     X           0x5d  bracketright
07/09/2018 18:18:39     X           0x5b  bracketleft
07/09/2018 18:18:39     X           0x5d  bracketright
07/09/2018 18:18:39     X           0x7b  braceleft
07/09/2018 18:18:39     X           0x7d  braceright
07/09/2018 18:18:39     X           0x5c  backslash
07/09/2018 18:18:39
07/09/2018 18:18:39   If this makes the key mapping worse you can
07/09/2018 18:18:39   disable it with the "-noxkb" option.
07/09/2018 18:18:39
07/09/2018 18:18:39
07/09/2018 18:18:39 X FBPM extension not supported.
07/09/2018 18:18:39 X display is capable of DPMS.
07/09/2018 18:18:39 --------------------------------------------------------
07/09/2018 18:18:39
07/09/2018 18:18:39 Default visual ID: 0x20
07/09/2018 18:18:39 Read initial data from X display into framebuffer.
07/09/2018 18:18:39 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
07/09/2018 18:18:39
07/09/2018 18:18:39 X display :0 is 32bpp depth=24 true color
07/09/2018 18:18:39
07/09/2018 18:18:39 Listening for VNC connections on TCP port 5900
07/09/2018 18:18:39 Listening for VNC connections on TCP6 port 5900
07/09/2018 18:18:39 listen6: bind: Address already in use
07/09/2018 18:18:39 Not listening on IPv6 interface.
07/09/2018 18:18:39
07/09/2018 18:18:39 Xinerama is present and active (e.g. multi-head).
07/09/2018 18:18:39 Xinerama: number of sub-screens: 1
07/09/2018 18:18:39 Xinerama: no blackouts needed (only one sub-screen)
07/09/2018 18:18:39
07/09/2018 18:18:39 fb read rate: 482 MB/sec
07/09/2018 18:18:39 fast read: reset -wait  ms to: 10
07/09/2018 18:18:39 fast read: reset -defer ms to: 10
07/09/2018 18:18:39 The X server says there are 12 mouse buttons.
07/09/2018 18:18:39 screen setup finished.
07/09/2018 18:18:39

The VNC desktop is:      Tom-Laptop:0

******************************************************************************
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

07/09/2018 18:18:42 Got connection from client 192.168.1.10
07/09/2018 18:18:42   other clients:
07/09/2018 18:18:42 Normal socket connection
07/09/2018 18:18:42 Disabled X server key autorepeat.
07/09/2018 18:18:42   to force back on run: 'xset r on' (3 times)
07/09/2018 18:18:42 incr accepted_client=1 for 192.168.1.10:57110  sock=11
07/09/2018 18:18:42 Client Protocol Version 3.6
07/09/2018 18:18:42 Protocol version sent 3.6, using 3.6
07/09/2018 18:18:42 Pixel format for client 192.168.1.10:
07/09/2018 18:18:42   32 bpp, depth 24, little endian
07/09/2018 18:18:42   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
07/09/2018 18:18:42 no translation needed
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000013)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000012)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000A)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
07/09/2018 18:18:42 Using compression level 6 for client 192.168.1.10
07/09/2018 18:18:42 Enabling full-color cursor updates for client 192.168.1.10
07/09/2018 18:18:42 Enabling cursor position updates for client 192.168.1.10
07/09/2018 18:18:42 Using image quality level 6 for client 192.168.1.10
07/09/2018 18:18:42 Using JPEG subsampling 0, Q79 for client 192.168.1.10
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
07/09/2018 18:18:42 Enabling LastRect protocol extension for client 192.168.1.10
07/09/2018 18:18:42 Enabling NewFBSize protocol extension for client 192.168.1.10
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8004)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
07/09/2018 18:18:42 Using hextile encoding for client 192.168.1.10
07/09/2018 18:18:42 Pixel format for client 192.168.1.10:
07/09/2018 18:18:42   32 bpp, depth 24, little endian
07/09/2018 18:18:42   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
07/09/2018 18:18:42 no translation needed
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000013)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000012)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000A)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
07/09/2018 18:18:42 Using compression level 6 for client 192.168.1.10
07/09/2018 18:18:42 Enabling full-color cursor updates for client 192.168.1.10
07/09/2018 18:18:42 Enabling cursor position updates for client 192.168.1.10
07/09/2018 18:18:42 Using image quality level 6 for client 192.168.1.10
07/09/2018 18:18:42 Using JPEG subsampling 0, Q79 for client 192.168.1.10
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
07/09/2018 18:18:42 Enabling LastRect protocol extension for client 192.168.1.10
07/09/2018 18:18:42 Enabling NewFBSize protocol extension for client 192.168.1.10
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8004)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)
07/09/2018 18:18:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
07/09/2018 18:18:42 Switching from hextile to hextile Encoding for client 192.168.1.10
07/09/2018 18:18:42 client 1 network rate 4573.4 KB/sec (56393.2 eff KB/sec)
07/09/2018 18:18:42 client 1 latency:  0.8 ms
07/09/2018 18:18:42 dt1: 0.0712, dt2: 0.0019 dt3: 0.0008 bytes: 332295
07/09/2018 18:18:42 link_rate: LR_LAN - 1 ms, 4573 KB/s
07/09/2018 18:18:42 client useCopyRect: 192.168.1.10 -1
07/09/2018 18:18:42 client_set_net: 192.168.1.10  0.0029
07/09/2018 18:18:43 copy_tiles: allocating first_line at size 41
07/09/2018 18:18:51 created selwin: 0xa0002c
07/09/2018 18:18:51 called initialize_xfixes()
Can anyone help me with this?
User avatar
smurphos
Level 17
Level 17
Posts: 7150
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: x11vnc freeze/hang issue

Post by smurphos »

There's an open bug report against the Bionic/Mint 19 version of x11vnc here which I'm gonna guess is your issue. There are some workarounds (i.e. sourcing alternative versions) outlined in the thread.

https://bugs.launchpad.net/ubuntu/+sour ... ug/1686084

It's a bit of an issue as the pre 19 default VNC server vino is also problematic to set up in Mint 19 due to upstream changes with integrate it more closely with Gnome Shell and make it a PITA to setup on any other desktop environment. It can be done though see the tail end of this thread...

viewtopic.php?f=90&t=272356&hilit=vino
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
catweazel
Level 19
Level 19
Posts: 9885
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: x11vnc freeze/hang issue

Post by catweazel »

bi0mint wrote:
Fri Sep 07, 2018 6:33 pm
I'm using Ultravnc on Windows 10 with Hextile encoding to connect to my laptop.
In light of what @smurphos has written, perhaps you might consider TeamViewer, which is free for personal use.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Post Reply

Return to “Software & Applications”