Update on comment 142
(https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2089709/comments/142):
further investigation with an instrumented mutter 46.2 in a VM (13
measured GDM->user logins, logind dbus-monitor + mutter KMS debug +
drmIsMaster logging) shows the picture is simpler than suggested there,
and I want to correct it before it misleads anyone.

Findings:

- The incoming (user) session is handed a DRM fd that is already DRM master 
with TakeDevice paused=false in 13/13 logins, and its first atomic commit 
succeeds. The "user session commits while the previous session holds DRM 
master" race does not occur in the GDM handover flow.
- The EACCES in the logs belongs to the GDM greeter, inside logind's designed 
PauseDevice(force) window (logind drops the outgoing master before the VT 
switch completes). It is harmless - that process is exiting, and mutter already 
treats PERMISSION_DENIED on page flips as non-fatal.
- The reported symptom (stale GDM frame / black screen with cursor when the 
mouse is moved during login) matches the separate Clutter stage bug upstream 
https://gitlab.gnome.org/GNOME/mutter/-/issues/3804: an update discarded before 
the stage is mapped leaves ClutterStage::update_scheduled stuck TRUE, so queued 
input events make every later update a no-op and the session never paints 
(journals show the user session making zero commits). That is what comment 136 
(commit 24083e1e) fixes.

So comment 136 / the #3804 backport is the fix for this bug report. The
EACCES discussion (and MRs
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5497) should be
read as a separate robustness improvement - a transient commit failure
currently leaves the compositor with no mode set and no further commits
- not as a cause of the symptoms in this report.

Thanks to daniel van vugt and the reporters; the journals in this bug
were essential to untangling this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089709

Title:
  Ubuntu 24.04 sometimes logs in to a black screen if the mouse is moved
  during login

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/2089709/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to