Thanks for the bug report. That udev rule causing the problem is unfortunately something that upstream won't let us replace. I have tried replacing it with smarter mutter logic and (so far) it's been rejected:
https://gitlab.gnome.org/GNOME/mutter/merge_requests/625 ** Tags added: focal ** Changed in: gdm3 (Ubuntu) Status: New => Won't Fix ** Changed in: nvidia-prime (Ubuntu) Status: New => Invalid ** Tags added: nvidia-drm.modeset -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nvidia-prime in Ubuntu. https://bugs.launchpad.net/bugs/1862531 Title: [focal] Wayland session is not available when a laptop has an Nvidia card an Intel card is in use Status in gdm3 package in Ubuntu: Won't Fix Status in nvidia-prime package in Ubuntu: Invalid Bug description: A Wayland session present at /usr/share/wayland-sessions/ubuntu- wayland.desktop is not displayed at the login screen when a system has an iGPU (Intel) and dGPU (Nvidia) and Intel iGPU is used: prime-select query intel Only sessions at /usr/share/xsessions are present. ➜ ~ ls /usr/share/xsessions remmina-gnome.desktop ubuntu.desktop ➜ ~ ls /usr/share/wayland-sessions ubuntu-wayland.desktop The root cause is the existence of a udev rule in 61-gdm.rules that runs gdm-disable-wayland when an nvidia driver is loaded in combination with LP: #1848326 (see this comment specifically https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1848326/comments/7). dpkg -S /lib/udev/rules.d/61-gdm.rules gdm3: /lib/udev/rules.d/61-gdm.rules grep nvidia /lib/udev/rules.d/61-gdm.rules # disable Wayland when using the proprietary nvidia driver DRIVER=="nvidia", RUN+="/usr/lib/gdm3/gdm-disable-wayland" When I comment it out and reboot, I get the right menu entry and am able to observe the right session type: ➜ ~ grep nvidia /lib/udev/rules.d/61-gdm.rules # disable Wayland when using the proprietary nvidia driver #DRIVER=="nvidia", RUN+="/usr/lib/gdm3/gdm-disable-wayland" ➜ ~ loginctl SESSION UID USER SEAT TTY 2 1000 dima seat0 tty2 1 sessions listed. ➜ ~ loginctl show-session 2 -p Type Type=wayland System info: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Focal Fossa (development branch) Release: 20.04 Codename: focal ➜ ~ dpkg -l | grep gdm3 ii gdm3 3.34.1-1ubuntu1 amd64 GNOME Display Manager ➜ ~ dpkg -l | grep nvidia-prime ii nvidia-prime 0.8.13 all Tools to enable NVIDIA's Prime ➜ ~ dpkg -l | grep nvidia-driver ii nvidia-driver-440 440.59-0ubuntu1 amd64 NVIDIA driver metapackage To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1862531/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp