Public bug reported: 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 ** Affects: gdm3 (Ubuntu) Importance: Undecided Status: New ** Affects: nvidia-prime (Ubuntu) Importance: Undecided Status: New ** Tags: champagne ** Also affects: nvidia-prime (Ubuntu) Importance: Undecided Status: New ** Summary changed: - Wayland session is not available when a laptop has an Nvidia card an Intel card is in use + [focal] Wayland session is not available when a laptop has an Nvidia card an Intel card is in use -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm3 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1862531/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs