[focal] Wayland session is not available when a laptop has an Nvidia card an Intel card is in use
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm3 (Ubuntu) |
Won't Fix
|
Low
|
Unassigned | ||
nvidia-prime (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
A Wayland session present at /usr/share/
prime-select query
intel
Only sessions at /usr/share/
➜ ~ ls /usr/share/
remmina-
➜ ~ ls /usr/share/
ubuntu-
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:/
dpkg -S /lib/udev/
gdm3: /lib/udev/
grep nvidia /lib/udev/
# disable Wayland when using the proprietary nvidia driver
DRIVER=="nvidia", RUN+="/
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/
# disable Wayland when using the proprietary nvidia driver
#DRIVER=="nvidia", RUN+="/
➜ ~ 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
summary: |
- 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 |
tags: | added: nvidia-drm.modeset |
tags: | removed: champagne |
Changed in gdm3 (Ubuntu): | |
status: | Expired → Won't Fix |
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