Screen turns black for a long time after each login and when detecting screens or changing screen layout.

Bug #1992756 reported by Audun
266
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-515 (Ubuntu)
Confirmed
Undecided
Unassigned
xorg-server (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a Thinkpad P15 with a A2000 GPU with Ubuntu 22.04.1 LTS.

This happens using Wayland and nvidia cuda drivers.

It seems like the system uses very long to identify the screens. This happens when I use external monitors, but also when only using the laptop screen. Changing the screen layout takes so long that I am unable to accept the change before it is reverted to the previous.

Only the mouse pointer is visible, the rest of the screens are black during this process.

$ apt-cache policy cuda
cuda:
  Installed: 11.7.1-1
  Candidate: 11.8.0-1
  Version table:
     11.8.0-1 600
        600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
 *** 11.7.1-1 600
        600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
        100 /var/lib/dpkg/status
     11.7.0-1 600
        600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages

$ nvidia-smi
Thu Oct 13 10:46:02 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA RTX A200... On | 00000000:01:00.0 On | N/A |
| N/A 46C P5 8W / N/A | 146MiB / 4096MiB | 22% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 4451 G /usr/lib/xorg/Xorg 145MiB |
+-----------------------------------------------------------------------------+

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.4-0ubuntu0.22.04.1
ProcVersionSignature: Ubuntu 5.15.0-48.54-generic 5.15.53
Uname: Linux 5.15.0-48-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 13 10:25:17 2022
DisplayManager: gdm3
InstallationDate: Installed on 2022-09-05 (37 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions: mutter-common 42.2-0ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

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

Thanks for the bug report. Please collect a log from when the bug is happening by:

1. Open a Terminal window and run:

   lspci -k > lspci.txt
   journalctl -f > recentjournal.txt

   Leave it running.

2. Reproduce the bug.

3. Press Ctrl+C in the Terminal window.

4. Attach the two resulting text files here.

tags: added: hybrid i915 multigpu nvidia
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Changed in nvidia-graphics-drivers-515 (Ubuntu):
status: New → Incomplete
Revision history for this message
Audun (sjooof) wrote :

I was wrong about using wayland. Like you can see from `nvidia-smi` I am using Xorg it seems.

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

Yes we know. Please follow the instructions in comment #2.

Revision history for this message
Audun (sjooof) wrote :

I tried updating graphics drivers to cuda-drivers-520 and the problem persists. I've attached updated lspci.txt and recentjournal.txt with these new drivers.

Let me know if you want me to reproduce with cuda-drivers-515 instead.

Revision history for this message
Audun (sjooof) wrote :
information type: Public → Public Security
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks.

It looks like the slowness is negotiation between the Nvidia driver, the external monitor, and Xorg (which includes the Intel driver for the laptop panel).

affects: gnome-shell (Ubuntu) → xorg-server (Ubuntu)
Changed in nvidia-graphics-drivers-515 (Ubuntu):
status: Incomplete → New
Changed in xorg-server (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I wonder if you can verify the same bug happens in a different Xorg desktop environment?

Revision history for this message
Audun (sjooof) wrote :

I am not sure I understand what you mean by a different Xorg desktop environment. I tried changing to wayland, and do not see the same issue there.

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

Try:

  sudo apt install xfce4-session

and then reboot.

You will now get an extra option in the login screen cog menu: Xfce Session

Revision history for this message
Audun (sjooof) wrote :

I tried with Xfce and do not see the same issue there.

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

In that case it sounds like a problem in GNOME's (Mutter's) Xorg backend.

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

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

Changed in mutter (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-515 (Ubuntu):
status: New → Confirmed
Changed in xorg-server (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

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