6f4d071bf3
Ubuntu 22.04 defaults to WaylandEnable=true in /etc/gdm3/custom.conf. Wayland + x11vnc has known issues (keyboard remap, clipboard, gnome-shell crashes on X events). Add two options: disable_wayland (write WaylandEnable=false to gdm3/custom.conf on GNOME installs, guarded when no gdm3 exists) and restart_gdm (immediately restart gdm vs apply on reboot).