Xorg Black Screen when upgrading packages (after CUDA installation)

Bug #2027614 reported by Baris Basturk
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-535 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

-

Revision history for this message
Baris Basturk (realbarisbasturk-deactivatedaccount) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. Next time the screen goes black and after rebooting, please run:

  journalctl -b-1 > prevboot.txt

and attach the resulting text file here.

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

If the black screen still occurs then please follow the instructions in comment #3. You do not need to reinstall.

Revision history for this message
Baris Basturk (realbarisbasturk-deactivatedaccount) wrote :
Revision history for this message
Baris Basturk (realbarisbasturk-deactivatedaccount) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If any log messages are related to the black screen then it might be these:

Tem 13 22:00:47 ms-7d86 kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Tem 13 22:00:47 ms-7d86 kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Tem 13 22:00:47 ms-7d86 kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Tem 13 22:00:47 ms-7d86 kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

But those messages are common enough in other peoples' logs that I'm skeptical they're related. More likely I think you just have a broken package combination.

Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: New → Confirmed
Kevin Yeh (kevinyeh)
Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: Confirmed → Won't Fix
status: Won't Fix → Confirmed
Revision history for this message
Tod Hagan (tod222) wrote (last edit ):

Confirmed. The last two (or three) routine system upgrades that had new nvidia packages have black screened during the upgrade.

This is a desktop. I can still log in via ssh from a laptop. Running 'top' shows:

Tasks: 627 total, 4 running, 623 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.0 us, 11.8 sy, 0.0 ni, 87.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 64209.0 total, 17847.4 free, 19228.6 used, 27133.0 buff/cache
MiB Swap: 976.0 total, 856.4 free, 119.6 used. 42589.7 avail Mem

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    513 root 20 0 0 0 0 R 100.0 0.0 9:42.51 nvidia-modeset/
   4193 gdm 20 0 4108568 204204 66536 R 100.0 0.3 12:40.42 gnome-shell
   4795 root 20 0 24.7g 415668 262976 R 100.0 0.6 650:08.69 Xorg

Running 'ps' and grepping 'update':

  11859 ? Sl 0:10 update-notifier
1803241 ? Ss 0:00 /bin/sh /usr/lib/update-notifier/update-notifier-crash
1884567 pts/13 S+ 0:00 grep --color=auto -E update
3857507 ? SNl 0:05 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map
m

Doing 'shutdown -r now' logs out ssh but doesn't reboot the machine. After waiting, pressing the hardware reset button on the case has no effect. It doesn't restart until a power down and cold boot.

I created a prevboot.txt from the instructions in an earlier comment; it is attached. It looks interesting, but I'll leave the analysis to the experts.

Revision history for this message
Luis Alvarado (luisalvarado) wrote :

Yes, when installing Nvidia (prior to 525 just in case) turn off the monitor. you would need to time the time it takes to install the driver, update the kernel nvidia modules and more then force a reboot.

This only started happening after Nvidia 525 (Around February 2023), every new version after that creates this problem.

Revision history for this message
Ernst Persson (ernstp) wrote :

This also happened to me with a 2070 and Nvidia driver 535.xy to 535.104.05 .
That was a Wayland session, dual monitors...
I can probably dig up some logs.

Revision history for this message
Ernst Persson (ernstp) wrote :

This is what
  * debian/rules:
    - Do not start the systemd services on installation or upgrade, as this can
      lead to a black screen.
is supposed to fix right?

I updated to nvidia-graphics-drivers-535 (535.104.05-0ubuntu4) on Mantic (yes I know it's in -proposed, I wanted to test the fix) and it still happened during the update.

Revision history for this message
Simon Davis (davis-decent) wrote :

I can confirm exactly the same problem and behavior as Tod Hagan (tod222) wrote on 2023-08-06 #11.

Revision history for this message
Bas van den Heuvel (2-bas) wrote :

I too have exactly the same problem as Tod Hagan (#11) described above

Revision history for this message
dorpm (dorpmueller) wrote :

The same happened on my PC yesterday with upgrade to nvidia-firmware-535-535.113.01

description: updated
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.