With the Nvidia driver installed there is no option to use Wayland on the login screen

Bug #1946200 reported by Daniel van Vugt
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-470 (Ubuntu)
Triaged
Low
Unassigned
nvidia-graphics-drivers-495 (Ubuntu)
Triaged
Low
Unassigned
nvidia-graphics-drivers-510 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Starting in impish with nvidia-470 and the latest gdm3 and xwayland packages, Wayland is fully supported in theory but you never get any option to select Wayland on the login screen. There is no session menu and you always get Xorg instead.

WORKAROUND:

Edit /etc/default/grub and change:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1"

and then:

  sudo update-grub

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks Daniel, how did you enable the driver? That's probably bug #1943816 if that's a new installation, the issue is that ubuntu-drivers is the one writing the kms option since https://launchpad.net/ubuntu/+source/ubuntu-drivers-common/1:0.9.2 but you only get that set if you enable the driver by using the right script

Changed in nvidia-graphics-drivers-470 (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I use:

  sudo apt install nvidia-driver-470

out of habit, and also because of bug 1946196.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also it's not a new installation.

Changed in nvidia-graphics-drivers-470 (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

Alberto, what's the rational to have ubuntu-drivers doing the kms configuration there? Wouldn't it be more robust to have it in the deb or generated in the postinst?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I wonder if we should NOT enable nvidia-drm.modeset=1 as it might reduce the available features in the Nvidia legacy/native driver for Xorg. Maintaining stability and continuity there is probably more important than enabling Wayland support by default right now...

Changed in nvidia-graphics-drivers-470 (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-470 (Ubuntu):
status: New → Confirmed
summary: - With Nvidia-470 there is no option to use Wayland on the login screen
+ With the Nvidia driver installed there is no option to use Wayland on
+ the login screen
tags: added: jammy
Changed in nvidia-graphics-drivers-495 (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → Low
Changed in nvidia-graphics-drivers-470 (Ubuntu):
status: Confirmed → Triaged
Changed in nvidia-graphics-drivers-495 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
saba46 (hpbiege) wrote :

/etc/default/grub and adding
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"
sudo upgrade-grub

Thank you! Finally that worked ! (also with nvidia-driver-470)

Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
jeremyszu (os369510) wrote :

This issue should be fixed in latest gdm in 22.04.

I tried the latest jammy + dist-upgrade, the option is there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.