[nvidia] Software cursor in Wayland sessions (EGLStreams)

Bug #1948410 reported by Daniel van Vugt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Low
Unassigned
Jammy
Fix Released
Low
Unassigned

Bug Description

Impact
------
In the Wayland session with older Nvidia graphics (usually nvidia driver 470), a software cursor is used instead of a hardware cursor. This causes worse performance with unnecessary updates of the display.

Test Case
---------

1. Set up an Nvidia-only desktop. No other GPUs active. Driver version must be 470 or higher.

2. Add this to /etc/environment:

   MUTTER_DEBUG_FORCE_EGL_STREAM=1
   CLUTTER_PAINT=damage-region

3. Reboot.

4. Log into 'Ubuntu on Wayland'.

Observed: The red and blue boxes from the above debugging option follow the mouse cursor.

Expected: No red and blue boxes follow the mouse cursor.

What Could Go Wrong
-------------------
See the master bug for this mutter update LP: #1972726

Changed in mutter (Ubuntu):
importance: Undecided → Low
status: New → Triaged
tags: added: impish
tags: added: jammy nvidia-wayland wayland wayland-session
removed: nvidia-drm.modeset
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in mutter (Ubuntu):
status: Triaged → In Progress
Changed in mutter (Ubuntu):
status: In Progress → Fix Committed
tags: added: fixed-in-42.1 fixed-upstream
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu Jammy):
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Daniel van Vugt (vanvugt)
description: updated
description: updated
Changed in mutter (Ubuntu Jammy):
assignee: Daniel van Vugt (vanvugt) → nobody
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Daniel, or anyone else affected,

Accepted mutter into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/42.1-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in mutter (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 42.1-1ubuntu1

---------------
mutter (42.1-1ubuntu1) kinetic; urgency=medium

  [ Jeremy Bicha ]
  * Merge from Debian unstable. Remaining changes:
    - Add triple-buffering patch
    - Add x11-Add-support-for-fractional-scaling-using-Randr.patch:
      + X11: Add support for fractional scaling using Randr
    - Add ubuntu/wayland-data-device-Allow-any-drag-timestamp....patch
      + Allow any drag timestamp as drag start serial
    - Add backends-native-kms-crtc-Don-t-compare-gamma-values-on-un.patch
      + Avoid memory errors when comparing gamma values
    - Add monitor-manager-Ensure-monitors-settings-after-backend-ha.patch
      + Ensure privacy screen settings are applied on startup
    - Add patches from GNOME !2364
      + Fix X11 selection related crash when Xwayland died
    - debian/libmutter-10-0.symbols: Add symbols for triple buffering patch
  * Refresh triple buffering patch with latest version

  [ Marco Trevisan (Treviño) ]
  * debian/patches: Adapt expected messages to new domains

mutter (42.1-1) unstable; urgency=medium

  * New upstream release
    (LP: #1972726, #1967274, #1965557, #1969574, #1948410, #1967219, #1971693)
  * Drop patches applied in new release
  * debian/libmutter-10-0.symbols: Add new symbol
  * debian/libmutter-10-0.symbols: Drop a symbol that was only in experimental
  * Add Breaks against old gtk3 & gtk4 versions.
    See Ubuntu bug 1972721
  * Release to unstable

mutter (42.0-5) experimental; urgency=medium

  * Team upload
  * d/patches: Update to upstream commit 42.0-74-g6c8e8fbba
    - Bug fixes targeted for 42.1
    - d/p/clutter-stage-Repick-when-pointer-actor-goes-unmapped.patch:
      Replace with the version that was applied upstream
    - d/p/core-Account-ClutterStage-grabs-on-Wayland-key-focus-sync.patch:
      Mark as applied upstream

mutter (42.0-4) unstable; urgency=medium

  * Team upload
  * d/patches: Update to upstream commit 42.0-55-gbe9deeba0
    - Update translations
    - Update upstream status of cherry-picked patches
    - Add various bug fixes including LP: #1959888, LP: #1964037
  * d/p/core-Account-ClutterStage-grabs-on-Wayland-key-focus-sync.patch:
    Add patch proposed upstream to fix grabs vs. system-modal prompts.
    This is particularly annoying when using pkexec, or when using gcr as
    a passphrase prompt for PGP, ssh and/or sudo.
    (Closes: #1008998, LP: #1964442)

 -- Jeremy Bicha <email address hidden> Fri, 13 May 2022 09:14:41 -0400

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Verified fixed in mutter version 42.1-0ubuntu1 on jammy.

I've also written a full test case at the top of the page.

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for mutter has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

This bug was fixed in the package mutter - 42.1-0ubuntu1

---------------
mutter (42.1-0ubuntu1) jammy; urgency=medium

  [ Jeremy Bicha ]
  * New upstream release
    (LP: #1972726, #1948410, #1967219, #1971693)
  * Refresh triple buffering patch with latest version
  * Drop patches applied in new release
  * debian/libmutter-10-0.symbols: Add new symbol
  * Add Breaks against old gtk3 & gtk4 versions.
    See Ubuntu bug 1972721

  [ Marco Trevisan (Treviño) ]
  * debian/patches: Adapt expected log messages to new domains

 -- Jeremy Bicha <email address hidden> Fri, 13 May 2022 12:10:07 -0400

Changed in mutter (Ubuntu Jammy):
status: Fix Committed → Fix Released
Changed in mutter:
status: Unknown → Fix Released
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.