VNC 中的鼠标光标跳转

Mouse cursor in VNC jumps

在我的嵌入式 linux 设备上启动了 X11VNC 服务器并连接了 VNC 客户端(TigerVNC 或 Guacamole)。 VNC 服务器直接将帧缓冲区流式传输到端口 5901。光标在 GUI 上移动时跳得很厉害 (see video)。

x11vnc -rfbport 5901 -no6 -rawfb /dev/fb0 -scale 640x480x16x1280 -verbose -cursor none -nodragging -pipeinput UINPUT:direct_abs=/dev/uinput

尝试了很多附加参数但没有成功:-pointer_mode n -extra_fbur n -visual TrueColor:32 -noshm

我怀疑问题出在默认加速上。

see documentation

Note: the default acceleration is 2.0 since it seems both X and qt-embedded often (but not always) use this value.

所以编辑的 x11vnc 命令包括 accel=1.0:

x11vnc -rfbport 5901 -no6 -rawfb /dev/fb0 -verbose -cursor none -nodragging -pipeinput UINPUT:direct_abs=/dev/uinput,accel=1.0 -forever