Default to Xorg on NVIDIA-only systems

Bug #1969566 reported by Daniel van Vugt
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Fix Released
Alberto Milone

Bug Description

NVIDIA has requested that we default to Xorg on NVIDIA-only systems.
(@kenvandine was advised so)

One possible reason cited was:
but if anyone finds additional reasons then please add them here.

But good news: This is only for NVIDIA desktops. Hybrid laptops where Intel/AMD is the primary GPU are unaffected and should default to Wayland (after bug 1968929 is resolved).

Tags: nvidia
summary: - Default to Xorg on Nvidia-only systems
+ Default to Xorg on NVIDIA-only systems
description: updated
description: updated
Revision history for this message
jeremyszu (os369510) wrote :

and for as well.

BTW, I think we should say "on nvidia as boot_vga systems"?

Says, Hybrid desktop (boot from intel or boot from nvidia) or nvidia only laptops or other scenarios.

Hybrid desktop boot from nvidia is needed to be considered in this case, and when we talking about chassis_type then it means the rule needs to consider to check chassis_type from dmi-table. If chassis_type is not mandatory condition, then we can prevent to make it complex.

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

Bug 1969142 is a duplicate of bug 1876632 so ideally please use the latter.

I think you're right about a stricter definition of "NVIDIA-only". I do mean all forms of "NVIDIA-primary". I was just trying to word the bug in a way that makes sense to normal users.

However, given that upstream gdm3 needs more work in this area I don't think it's wise to generalise the detection methods this cycle. That will take a lot more time than we have - leave it till next cycle and ensure all that work is done upstream first. We have too many patches in this area already.

Revision history for this message
Henrik Harmsen (henrik-harmsen) wrote :

I updated my 22.04 system today (with Nvidia proprietary drivers and a 3080 card). I added this file:

cat /etc/modprobe.d/nvidia-power-management.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1

Now both Wayland and suspend/resume seems to work for the first time ever. Without the above file, the system uses X11.

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

A fix was uploaded yesterday but it seemingly didn't make the release:

Changed in gdm3 (Ubuntu):
milestone: ubuntu-22.04 → jammy-updates
Changed in gdm3 (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: In Progress → Fix Committed
Changed in gdm3 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Dimitrij Mijoski (dimztimz) wrote :

On a laptop with Nvidia + Intel GPU that works in hybrid mode (BIOS set to hybrid, nvidia-settings set to on-demand), X.Org is still considered the default. The menu on the gear icon shows "Ubuntu" and "Ubuntu on Wayland" which means X.Org is the default. This is contradictory to what the patch above says.

OS: 22.04
gdm3: 42.0-1ubuntu7.22.04.1
Nvidia driver: 525.105.17

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

Yes we know there's a bug in gdm3 that makes the fix unreliable on some systems. We never figured it out, but that doesn't matter so much because accidentally defaulting to Xorg is probably a better experience for Nvidia hybrid systems, in hindsight. Wayland still has poor performance if you plug an external monitor into the Nvidia GPU -> bug 1970291.

Revision history for this message
Alberto Milone (albertomilone) wrote :

I agree, Xorg still provides the best experience with NVIDIA.

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.