MATE Desktop session fails to start with NVIDIA 495 & 510 drivers

Bug #1960621 reported by Ian
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
marco (Ubuntu)
Fix Released
High
Martin Wimpress 
Focal
Invalid
Undecided
Unassigned
Impish
Invalid
Undecided
Unassigned
Jammy
Fix Released
High
Martin Wimpress 
metacity (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Invalid
Undecided
Unassigned
nvidia-graphics-drivers-510 (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Invalid
Undecided
Unassigned
Impish
Invalid
Undecided
Unassigned
Jammy
Invalid
Undecided
Unassigned
xorg-server (Ubuntu)
New
Undecided
Unassigned
Jammy
New
Undecided
Unassigned

Bug Description

I have been using nvidia-graphics-drivers-470 for a while. In January, I tried the 495 drivers, but this resulted in failing to start the GUI when booting: the mouse cursor would appear, but then the screen would clear and the switch to graphics would be attempted again. This would repeat until restarted, so I used recovery mode to test that a) it still happened with that (yes) and b) to go back to the 470 drivers via the root terminal.

For some reason, yesterday xscreensaver had a problem getting the right GLcontext. I noticed that the 510 drivers were available, so used Software & Updates's Additional Drivers to install those.

Exactly the same issue as with the 495 drivers: the mouse cursor appears for a second, then disappears, and reappears, and.. until I reboot and go back to 470.

I am using Ubuntu MATE 21.10 with a GeForce GTX 1050 Ti card.

$ lsb_release -rd
Description: Ubuntu 21.10
Release: 21.10

Tags: impish
Revision history for this message
Rolf Leggewie (r0lf) wrote (last edit ):

It seems that this might be a regression introduced via the fix for bug 1957790.

Please show the output of "dpkg -l nvidia-driver"

Revision history for this message
Ian (superian) wrote :
Download full text (5.9 KiB)

ian@pc:~$ dpkg -l nvidia-driver
dpkg-query: no packages found matching nvidia-driver

:)

If I look for anything starting with that, it's

ian@pc:~$ dpkg -l nvidia-driver*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================-===========================-============-=============>
ii nvidia-driver-470 470.103.01-0ubuntu0.21.10.1 amd64 NVIDIA driver>
un nvidia-driver-binary <none> <none> (no descripti>

Looking for everything nvidia...

ian@pc:~$ dpkg -l nvidia*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================-===========================-============-===============================================
un nvidia-384 <none> <none> (no description available)
un nvidia-390 <none> <none> (no description available)
un nvidia-common <none> <none> (no description available)
un nvidia-compute-utils <none> <none> (no description available)
rc nvidia-compute-utils-390 390.116-0ubuntu1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-430 430.50-0ubuntu2 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-435 435.21-0ubuntu7 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-450 450.102.04-0ubuntu0.20.10.2 amd64 NVIDIA compute utilities
ii nvidia-compute-utils-470 470.103.01-0ubuntu0.21.10.1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-495 495.46-0ubuntu0.21.10.1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-510 510.47.03-0ubuntu0.21.10.1 amd64 NVIDIA compute utilities
rc nvidia-dkms-390 390.116-0ubuntu1 amd64 NVIDIA DKMS package
rc nvidia-dkms-430 430.50-0ubuntu2 amd64 NVIDIA DKMS package
rc nvidia-dkms-435 435.21-0ubuntu7 amd64 NVIDIA DKMS package
rc nvidia-dkms-450 450.102.04-0ubuntu0.20.10.2 amd64 NVIDIA DKMS package
ii nvidia-dkms-470 470.103.01-0ubuntu0.21.10.1 amd64 NVIDIA DKMS package
rc nvidia-dkms-495 495.46-0ubuntu0.21.10.1 amd64 NVIDIA DKMS package
rc nvidia-dkms-510 510.47.03-0ubuntu0.21.10.1 amd64 NVIDIA DKMS package
un nvidia-dkms-kernel <none> <none> (no description available)
ii nvidia-driver-470 470.103.01-0ubuntu0.21.10.1 amd64 NVIDIA driver metapackage
un nvidia-driver-binary <none> <none> (no description available)
un nvidia-egl-wayland-common <none> <none> (no description av...

Read more...

Revision history for this message
Ian (superian) wrote :
Download full text (5.0 KiB)

After installing, but before rebooting...

ian@pc:~$ dpkg -l nvidia*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================-===========================-============-===============================================
un nvidia-384 <none> <none> (no description available)
un nvidia-390 <none> <none> (no description available)
un nvidia-common <none> <none> (no description available)
un nvidia-compute-utils <none> <none> (no description available)
rc nvidia-compute-utils-390 390.116-0ubuntu1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-430 430.50-0ubuntu2 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-435 435.21-0ubuntu7 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-450 450.102.04-0ubuntu0.20.10.2 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-470 470.103.01-0ubuntu0.21.10.1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-495 495.46-0ubuntu0.21.10.1 amd64 NVIDIA compute utilities
ii nvidia-compute-utils-510 510.47.03-0ubuntu0.21.10.1 amd64 NVIDIA compute utilities
rc nvidia-dkms-390 390.116-0ubuntu1 amd64 NVIDIA DKMS package
rc nvidia-dkms-430 430.50-0ubuntu2 amd64 NVIDIA DKMS package
rc nvidia-dkms-435 435.21-0ubuntu7 amd64 NVIDIA DKMS package
rc nvidia-dkms-450 450.102.04-0ubuntu0.20.10.2 amd64 NVIDIA DKMS package
rc nvidia-dkms-470 470.103.01-0ubuntu0.21.10.1 amd64 NVIDIA DKMS package
rc nvidia-dkms-495 495.46-0ubuntu0.21.10.1 amd64 NVIDIA DKMS package
ii nvidia-dkms-510 510.47.03-0ubuntu0.21.10.1 amd64 NVIDIA DKMS package
un nvidia-dkms-kernel <none> <none> (no description available)
ii nvidia-driver-510 510.47.03-0ubuntu0.21.10.1 amd64 NVIDIA driver metapackage
un nvidia-driver-binary <none> <none> (no description available)
un nvidia-egl-wayland-common <none> <none> (no description available)
un nvidia-kernel-common <none> <none> (no description available)
rc nvidia-kernel-common-390 390.116-0ubuntu1 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-430 430.50-0ubuntu2 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-435 435.21-0ubuntu7 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-450 450.102.04-0ubuntu0.20.10.2 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-470 470.103.01-0ubuntu0.21.10.1 amd64 Shared files used with the kernel module...

Read more...

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

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

Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

My experience with the 495 and 510 drivers is identical to those described in the opening post.

  * I'm using Ubuntu MATE 21.10 with NVIDIA RTX 3090.
  * The 470.103.01-0ubuntu0.21.10.1 and 470.74-0ubuntu1 drivers both work/worked without issue.
  * The 495 and 510 drivers both fail to bring up the display server

Revision history for this message
Yannick Mauray (yannick-mauray) wrote :

I have exactly the same problem :
* Ubuntu MATE 21.10, NVIDIA GeForce 1060
* 470.103.1 works fine
* 495 and 510 both fail after reboot.

Changed in marco (Ubuntu):
status: New → Triaged
assignee: nobody → Martin Wimpress  (flexiondotorg)
importance: Undecided → High
Revision history for this message
Martin Wimpress  (flexiondotorg) wrote (last edit ):

This issue is only reproducible when Marco (the MATE Window Manager) is built with Xpresent support and Marco's compositing manager is enabled. This has been the default configuration in Debian & Ubuntu packaging of Marco for some years. I am not sure if this issue is due to a regression in NVIDIAs driver or if Marcos Xpresent support is at fault.

That said, the reports of this issue I've seen elsewhere (NVIDIA forums, Linux Mint forums, upstream MATE Desktop GitHub) all indicate this problem is only observed with MATE Desktop.

A few solutions are available:

 - Apply a gschema override to disable Marco's compositing manager. Not a great option since it degrades the user experience and it can be easily re-enabled via the Control Center leading to a non-functioning desktop session.
 - Upstream are discussing adding a gsettings option to disable Xpresent. Again, this could be overridden by a user and leads to a broken desktop session.
 - I am investigating building Marco without Xpresent, which will retain the compositing manager functionality.
 - By coincidence, I have created a wrapper for Marco that uses the picom compositor several weeks ago. This is presented as an alternative Window Manager option in MATE Tweak and currently shipping in Jammy.

I will research the options more thoroughly before choosing a way forward.

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

I've built Metacity 3.42 for Ubuntu 21.10 with Xpresent support, which is behind a gsettings option that defaults to xrender. When Metacity is set as the required window manager in MATE with Xpresent set as the compositor the same failure to bring up a desktop session is encountered.

I have also built Marco without Xpresent and as expected it fallsback to Xrender which works with the new NVIDIA drivers and also preserves compositor support.

summary: - Nvidia 510 drivers result in failure to start GUI on GeForce GTX 1050 Ti
+ MATE Desktop session fails to start with NVIDIA 495 & 510 drivers
no longer affects: metacity (Ubuntu Focal)
no longer affects: metacity (Ubuntu Impish)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in marco (Ubuntu Focal):
status: New → Confirmed
Changed in marco (Ubuntu Impish):
status: New → Confirmed
Changed in metacity (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-510 (Ubuntu Focal):
status: New → Confirmed
Changed in nvidia-graphics-drivers-510 (Ubuntu Impish):
status: New → Confirmed
Changed in marco (Ubuntu Jammy):
status: Triaged → Fix Committed
Changed in marco (Ubuntu Impish):
status: Confirmed → In Progress
Changed in marco (Ubuntu Focal):
status: Confirmed → In Progress
Revision history for this message
Martin Wimpress  (flexiondotorg) wrote (last edit ):

I've uploaded Marco to Jammy with Xpresent disabled. I've created a PPA for users of Ubuntu MATE 20.04 and 21.10 that hosts rebuilds of Marco with Xpresent disabled.

  * https://launchpad.net/~ubuntu-mate-dev/+archive/ubuntu/marco

These are temporary measures while the root cause of the issue is patched.

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package marco - 1.26.0-1ubuntu0

---------------
marco (1.26.0-1ubuntu0) jammy; urgency=medium

  * debian/control:
    + Drop B-D: libxpresent-dev (LP: #1960621)

 -- Martin Wimpress <email address hidden> Fri, 25 Feb 2022 11:21:33 +0000

Changed in marco (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Ian (superian) wrote :

Thank you, Martin.

I do indeed have Marco with the 'adaptive compositor' (it's the default, I think...)

It's been ages since I used Compiz, but... :)

Norbert (nrbrtx)
tags: added: impish
Revision history for this message
Ian (superian) wrote :

It turns out that I may have misunderstood - the same thing happens for me when telling MATE Tweak that I want to use Compiz rather than Marco as my window manager.

The switch to Compiz certainly happens (I am reminded of why I stopped using it..) and it is sticky between reboots.

So either it's not just a Marco thing or some part of Marco is retained when using Compiz.

Revision history for this message
Ian (superian) wrote :

.. and the PPA means I am now running the 510 drivers successfully.

Thanks again, Martin.

Revision history for this message
Jacob Moroni (jakemoroni) wrote :

Hello Martin,

I noticed that you pushed a release to Jammy which disables Xpresent to work around this issue. As expected, this re-introduces screen tearing on my system running Intel Iris Xe integrated graphics.

I've manually switched to the most recent release with Xpresent still enabled and the tearing is gone.

According to bug 1959995, this issue has been fixed in Jammy. If that's true, do you have any plans on re-enabling Xpresent? Should a new bug be opened for that?

https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1959995

Revision history for this message
Rob Pieke (robpieke) wrote :

Shamelessly piggy-backing on this thread, is there a target/plan for an official 20.04 fix? Is the above PPA still the way to go? Thanks all!

Changed in marco (Ubuntu Focal):
status: In Progress → Invalid
Changed in marco (Ubuntu Impish):
status: In Progress → Invalid
Changed in nvidia-graphics-drivers-510 (Ubuntu Focal):
status: Confirmed → Invalid
Changed in nvidia-graphics-drivers-510 (Ubuntu Impish):
status: Confirmed → Invalid
Changed in nvidia-graphics-drivers-510 (Ubuntu Jammy):
status: Confirmed → Invalid
Changed in metacity (Ubuntu Jammy):
status: Confirmed → Invalid
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.