I installed the NVIDIA 510 drivers from the Additional Drivers app on Ubuntu 22.04. I also edited /etc/default/grub and added GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1". Unfortunately, it didn't work. I can't see the little gear icon when I login.
Funnily enough I had 21.10 running before this install and it was working in Wayland after editing /etc/default/grub.
Here is my setup. It's a very recent Dell Laptop with Secure Boot enabled:
