I don't get that at all (see the attached screenshot). Detection seems to work well here:
giu 01 16:05:52 dell-g7 systemd[1725]: Starting GNOME Shell on Wayland... giu 01 16:05:52 dell-g7 systemd[1725]: Starting GNOME Shell on X11... giu 01 16:05:52 dell-g7 systemd[1725]: app-gnome-gnome\x2dkeyring\x2dpkcs11-2001.scope: Succeeded. giu 01 16:05:52 dell-g7 systemd[1725]: org.gnome.Shell@wayland.service: Control process exited, code=exited, status=2/INVALIDARGUMENT giu 01 16:05:52 dell-g7 systemd[1725]: org.gnome.Shell@wayland.service: Skipped due to 'exec-condition'. giu 01 16:05:52 dell-g7 systemd[1725]: Condition check resulted in GNOME Shell on Wayland being skipped. ** Attachment added: "Screenshot from 2021-06-01 16-08-04.png" https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1925238/+attachment/5501675/+files/Screenshot%20from%202021-06-01%2016-08-04.png -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1925238 Title: [nvidia-prime] switches between xorg and wayland session To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1925238/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs