Black screen after install of nvidia driver ubuntu

Hi,

I have an Alienware 15 R3 with an Nvidia GTX 1060 GPU (and an intel one as well). I have dual boot with Kubuntu and after installing the Nvidia drivers I cannot boot into Kubuntu normally anymore, and a black screen appears immediately. Weirdly enough, I can log in through the third option in “Advanced Options for Ubuntu”.

I have tried many different things by following forums but it would be too much to share. As main takeaways, I managed to have an external display working with the Nvidia driver (but that is not the case anymore, once I tried fixing the black screen), and both nvidia-smi and nvcc seem to work fine (so does PyTorch with CUDA). The driver is installed and works, but something may be interfering.

I am attaching the bug report. Note that I changed the name but it is still a .gz. Thank you for your help.
nvidia-bug-report.log (327.1 KB)

@generix I have this same issue with a Dell XPS 15 9510 it has an nvidia RTX 3050 Ti, Bios 1.9.0. I need to run ubuntu 18.04 and use nvidia driver due to existing work environment. After installing Ubuntu 18.04 and nvidia driver laptop is rebooted. I get a black screen afterwards and CTRL F1 - F6 does nothing. If there is a fix for this, please share. I understand that Ubuntu 20.04 is working, but I need Ubuntu 18.04 and the nvidia/CUDA libraries/cudnn, etc, etc…

What I did. Fresh install, apt update, apt upgrade apt install ssh, Installed to version 470 proprietary (tested) via Ubuntu’s Software & Updates / Additional Drivers, rebooted, desktop does not load. I can ssh to the laptop though. attached picture and nvidia-bug-report.

Thanks for any help.

nvidia-bug-report.log (1.8 MB)

https://forums.developer.nvidia.com/t/black-screen-after-install-of-nvidia-driver-for-my-ubuntu/210815/3?u=generix

@generix I have the similar problem. Laptop screen not working without external screen plugged. I am attaching log file. Can you please take a look
nvidia-bug-report.log.gz (326.8 KB)

The internal display seems to be detected and used. The lenovo legion has issues with the backlight, did you check if it’s just turned off?

Hello, I upgraded from Ubuntu 20.04 to 22.04 and I cannot get the GUI to work past the login screen.

I tried several things I read in this thread but nothing worked for me. Over the past week I did several tests, also with the help with Canonical support without being able to find a solution yet.

Behavior:
The system boots normally and reaches Ubuntu log-in screen. Here the resolution looks as if the driver loaded fine since the minimal graphics is displayed in the monitor’s native display resolution, 4K, without looking enlarged or pixelated as when the drivers do not load. The anomaly here is that the background has no graphics and is fully grey. If I log in, the screen goes black. I can access the command line with ctrl alt f5.

Some of the tests I did:

  • Upgrade from the latest generic kernel to OEM. No difference so I went back to generic.
  • Changed drivers multiple times. I tried different Nvidia drivers both supplied by the distro and from third-party ppa. No difference so I went back to the latest 5.20 available on ppa.
  • Purged Nvidia drivers and tried Nouveau. Same behavior. Went back to Nvidia and re-blacklisted Nouveau.
  • Deleted and re-generated xorg.conf - no difference
  • changed options nvidia-drm modeset=1 to options nvidia-drm modeset=0 - no difference

Drivers appear to load.

One anomaly I noticed is that lshw does not show the card model. It only says generic Nvidia VGA device or something along those lines.

My card is a 3090Ti.

If I go back to 20.04 via backup, everything works fine. I re-upgrade and the problem comes back.

If I boot Ubuntu from live USB, GUI works after login. However, I get some color artifacts probably because of the Nouveau drivers that come with it.

Any help would be very apperciated.

Nvidia logs are attached.

Thanks.

nvidia-bug-report.log (3.2 MB)

I upgrade to nvidia driver 520 and then reboot, black screen only, but i can access ubuntu from SSH.
Appreciated !
nvidia-bug-report.log (7.0 MB)

@leqt you have installed a driver with a known hdmi bug, Please use either driver 520.56.06 or 525.60.11

Dear generix
Appreciate for your promptly reply.
I do as following after downloading and error occurs

  1. sudo systemctl isolate multi-user.target

  2. sudo modprobe -r nvidia-drm

  3. sudo bash NVIDIA-Linux-x86_64-525.60.11.run

ERROR message

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Sat Dec 3 14:07:26 2022
installer version: 525.60.11

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line:
./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
→ Detected 104 CPUs online; setting concurrency level to 32.
ERROR: An NVIDIA kernel module ‘nvidia-drm’ appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occurred that has corrupted an NVIDIA kernel module’s usage count, for which the simplest remedy is to reboot your computer.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

ERROR: An NVIDIA kernel module ‘nvidia-drm’ appears to already be loaded in your kernel. This may be
because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence
Daemon), but this may also happen if your kernel was configured without support for module
unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting
to upgrade your driver. If no GPU-based programs are running, you know that your kernel
supports module unloading, and you still receive this message, then an error may have occurred
that has corrupted an NVIDIA kernel module’s usage count, for which the simplest remedy is to
reboot your computer.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You
may find suggestions on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

No, please don’t use the runfile installer. Only switch drivers using Software&Updates, if no useful driver is available, add the graphics driver ppa:
https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
to have more driver versions available in Software&Updates.

Thanks, but the monitor is black after going to ubuntu, there is no GUI, so i can not use Software&Updates.
Many thanks

Then please try removing the driver from command line first

Thanks for your advice,
I can install Ubuntu 2204 with nvidia-driver 525.60.13, then nvidia-smi reports cuda-version 12.0.
But the only latest cuda version 11.8 is available, therefore i can not install cuda 11.8 due to incompatible with 525 driver. I need to cuda to install tensorflow-gpu.
Any hints or advices, please,
Thanks and regards,

The driver is backward compatible regarding cuda, it only defines a maximum cuda version, not a minimum.

Hi @generix My sisuation is the same
here are my bug report file .
please check .
nvidia-bug-report.log.gz (341.9 KB)

@mmcuav_dev Please delete /etc/X11/xorg.conf

Hi, same issue, fresh ubuntu installation, planned on using in tty mostly. Black screen after installing nvidia drivers. Can connect over ssh, so got details from there:

nvidia-detector

nvidia-driver-470

nvidia-smi

Sun Jan  8 10:27:21 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.161.03   Driver Version: 470.161.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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 GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A |
| 40%   36C    P0    N/A /  N/A |      0MiB /  2001MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

inxi -Gx --display

 Graphics:
   Device-1: Intel IvyBridge GT2 [HD Graphics 4000] vendor: ASRock
     driver: i915 v: kernel arch: Gen-7 bus-ID: 00:02.0
   Device-2: NVIDIA GK208B [GeForce GT 730] vendor: Gigabyte driver: nvidia
     v: 470.161.03 arch: Kepler bus-ID: 01:00.0
   Display: server: X.org v: 1.21.1.4 driver: X: loaded: nvidia
     gpu: i915,nvidia tty: 151x85
   Message: GL data unavailable in console for root.

nvidia-bug-report.log at bug report at https://termbin.com/vpwp
dpkg -l | grep nvidia | nc termbin.com 9999 at https:termbin.com/oaj6

Thanks a lot for your help

Have you found solution for this i am also getting same problem

I never found a solution. I resorted to using the integrated graphics instead of the NVIDIA gpu. I have switched back to using the NVIDIA gpu in ‘On Demand’ mode and haven’t had an issue in a while. I’m guessing whatever bug caused the problem has been fixed by a driver update.

1 Like

I tried using NVIDIA GPU in ‘On Demand’ mode but still it goes black screen , I am using driver version 535