I have a Pi 4b headless machine with a fake display dongle. The dongle seems to be recognized just fine as a display, however, when I try to connect with NoMachine and Wayland enabled I just get a black screen, without ever having the login screen presented.
Here are my environment’s details:
lsb_release -rd
Description: Ubuntu Mantic Minotaur (development branch)
Release: 23.10
[Note I also see this with 23.04 and 22.10]
uname -a
Linux 6.2.0-1009-raspi #11-Ubuntu SMP PREEMPT Mon Jul 17 10:19:57 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
NoMachine Version on the Ubuntu NoMachine server = 8.8.1
NoMachine Version on my MacBook Pro (macOS 12.6.8) = 8.8.1
As you’ll see, in addition to Wayland being enabled in /etc/gdm3/custom.conf, I also have egl capture turned on in the nx config and WaylandModes egl,compositor,drm set in the node.cfg.
If I disable Wayland in /etc/gdm3/custom, then I do get the login screen. Though after authenticating in, the NoMachine client window closes. Whereupon, if I let it automatically retry, or force it to retry connecting, I see my desktop. This, is not the point of my request for help however. As, I ultimately can login with Wayland disabled.
The point is, I’d much prefer to use Wayland enabled as it provides a significant performance boost, while also using less resources on my Raspberry Pi.
You will find attached the debug logs I captured while reproducing the black screen on Wayland enabled issue.