Is there any chance the NVIDIA-specific libraries were overwritten by something from Mesa? There are a lot of Mesa files which work perfectly well (and are needed), so there would be plenty of those, but I am thinking in particular about GL/GLX/GLES hardware acceleration files being accidentally overwritten.
What happens is that some stage of the GUI software may run without special requirements, e.g., the login manager, but then as the X server spawns and adds hardware acceleration, then any replacement with the wrong library will cause a load failure (and crash of the GUI, which was ok until hardware accelerated display was attempted).
Which files that would involve would depend on the particular Jetson and the release version. Typically there is a copy of the NVIDIA-specific version somewhere under “
/usr/lib/aarch64-linux-gnu/tegra”, and a copy or symbolic link will exist to this in one of the Xorg X11 directories. If the Xorg version gets replaced with an invalid non-accelerated version, then copying the NVIDIA version in (or symbolic link to there) fixes the issue. I have not seen this in quite some time, but if you were working with an older release, then this could still occur.