4

Well, that question already been asked, however my environment is slightly different. I've robot that moves mouse inside x11vnc session. I'd like that cursor motion to be properly displayed with vncviewer (tigervnc-1.4.2-r2). Seems nothing works.

What I've tried:

x11vnc -nocursor && vncviewer LocalCursor=0 DotWhenNoCursor=1

x11vnc -cursor arrow && vncviewer LocalCursor=0 DotWhenNoCursor=0

x11vnc -cursor X && vncviewer LocalCursor=0 DotWhenNoCursor=0

x11vnc -cursor some && vncviewer LocalCursor=0 DotWhenNoCursor=0

x11vnc -cursor most && vncviewer LocalCursor=0 DotWhenNoCursor=0

Also plaid some with LocalCursor=1 (although think since I need to see remote cursor that's wrong idea).

Is that possible (not sure I properly understand vnc approach for cursor display).

Archer
  • 5,073
  • 8
  • 50
  • 96
  • 1
    Same question on different sites: [1](https://unix.stackexchange.com/q/176127) [2](https://superuser.com/q/811058) [3](https://stackoverflow.com/q/34282363) [4](https://serverfault.com/q/454093) – user202729 Jun 20 '22 at 12:26

2 Answers2

10

Found solution. Just enabled -multiptr option for x11vnc. Got that option working out of the box on x11vnc-0.9.14-r2 Gentoo Linux version of x11vnc. However, it could be necessary to install additional x11vnc-multiptr module.

Archer
  • 5,073
  • 8
  • 50
  • 96
4

on ubuntu:

git clone git@github.com:LibVNC/x11vnc.git
cd x11vnc
sudo apt-get install libvncserver-dev
./autogen.sh
./configure
make
sudo make install

xset r rate 200 30    
x11vnc -repeat -multiptr
diyism
  • 12,477
  • 5
  • 46
  • 46
  • But, it's anoying, sometimes, the "-multiptr" parameter cause the error ""ERROR creating XInput2 MD"" – diyism Jul 03 '20 at 18:11