Verify that the gdm cherry-picks are wanted for jammy

Bug #1968809 reported by Jeremy Bícha
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Earlier this week, I cherry-picked commits from GDM. One of those commits isn't needed because we distro-patched some fixes for Nvidia hybrid graphics in Ubuntu 22.04.

The GDM commit disabled Wayland in that situation but since Wayland works, we don't want to disable it.

Tags: jammy
Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

This bug probably needs more details. If you're referring to disabling Wayland GDM for some GPUs then:

 VMs: yes
 GPUless server chips: yes
 Nvidia: no
 Hybrid: no (because bug 1964037 / bug 1959888 fixes those)

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Yes, details were minimal because I just wanted to get a block-proposed bug in so we could discuss more.

Initial thinking is that we should remove the 440d6f9ecc151fbcf8c852d500c5cc5add168b94 patch.

Revision history for this message
Jack Howarth (jwhowarth) wrote :

gdm3 42.0-1ubuntu3 blocks use of wayland on a X570 UD v1.1 motherboard with an AMD 5600X and Nvidia 1050 graphics card.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gdm3 (Ubuntu):
status: New → Confirmed
Jeremy Bícha (jbicha)
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 1968929.

Jeremy Bícha (jbicha)
description: updated
Changed in gdm3 (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → Medium
Jeremy Bícha (jbicha)
tags: removed: block-proposed
tags: added: block-proposed
Revision history for this message
Jack Howarth (jwhowarth) wrote :

gdm3 42.0-1ubuntu4 still blocks use of wayland on a X570 UD v1.1 motherboard with an AMD 5600X and Nvidia 1050 graphics card. https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1969198

Jeremy Bícha (jbicha)
tags: removed: block-proposed
Jeremy Bícha (jbicha)
Changed in gdm3 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Marcos Alano (mhalano) wrote :

I got the gdm3 package version 42.0-1ubuntu4 and still don't get Wayland. I troubleshot and found the problem in the file /lib/udev/rules.d/61-gdm.rules in the following lines:
IMPORT{program}="/bin/sh -c \"sed -e 's/: /=/g' -e 's/\([^[:upper:]]\)\([[:upper:]]\)/\1_\2/g' -e 's/[[:lower:]]/\U&/g' -e 's/^/NVIDIA_/' /proc/driver/nvidia/params\""
ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}!="1", GOTO="gdm_disable_wayland"
If I comment that Wayland appears as an option in GDM.
I had to create a file /etc/modprobe.d/nvidia-hack.conf with the follow content:
options nvidia NVreg_PreserveVideoMemoryAllocations=1
This theoretically enable the option to preserve video memory allocations, but still getting the option as "1", still don't enable Wayland.

Revision history for this message
Marcos Alano (mhalano) wrote :

The result of command showing the preserve option enabled in my system

Revision history for this message
Marcos Alano (mhalano) wrote :

The command executed right in the shell showing the necessary option as "1"

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdm3 - 42.0-1ubuntu4

---------------
gdm3 (42.0-1ubuntu4) jammy; urgency=medium

  * Drop patch disabling Wayland on hybrid laptops using Nvidia's drivers.
    It's not needed for Ubuntu 22.04 LTS (LP: #1968809)

 -- Jeremy Bicha <email address hidden> Thu, 14 Apr 2022 14:29:35 -0400

Changed in gdm3 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Marcos, that is intended behavior.

https://salsa.debian.org/gnome-team/gdm/-/blob/ubuntu/master/debian/patches/data-Disable-wayland-on-nvidia-if-suspend-is-broken.patch

I believe Canonical is going to work on getting suspend working for the Nvidia drivers as required by GNOME for Wayland support. That will be a future stable release update for 22.04 LTS.

You'll need to open a new bug if you need to discuss this further since we don't really follow closed bugs.

Revision history for this message
Marcos Alano (mhalano) wrote :

I put all the information in my original bug report and I will unmark as duplicate. https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1968929

Revision history for this message
Kevin Keijzer (kkeijzer) wrote :

For me, gdm3 42.0-1ubuntu4 breaks Wayland entirely. There is no option to select a session left when logging in, and when I enter my password and press enter I'm left in an X11 session.

I only have machines with Intel graphics.

Reverting to 42.0-1ubuntu2 makes it work normally again (defaults to Wayland, with an option to select "Ubuntu on Xorg").

Revision history for this message
Marcos Alano (mhalano) wrote :

Kevin,

You can use the bug report I opened since this one is closed: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1968929
Also, I would like you to comment that about if 42.0-1ubuntu3 version has the problem

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

Other bug subscribers

Remote bug watches

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