Hi guys,
After replacing my old RTX 1660 with a new RTX3080 the second display (connected via DP2) does not work. I thought it was the driver problem, so I upgraded nvidia driver and cuda to the lastest version i.e Driver Version: 530.30.02 CUDA Version: 12.1 but it still does not work. Output of nvidia-bug-report.sh is attached. Anyone knows how to solve this issues?
nvidia-bug-report.log.gz (350.8 KB)
Hi @nghianguyenbkdn, welcome back to the forums.
This was in the log:
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 occured 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.
You need to update the driver while in console mode without any NVIDIA kernel modules loaded.
Hope this helps.
Hi, thanks for the suggestion. I disconnected both monitor, restarted my pc, then I used another pc to ssh into my pc and updated the driver. But it still didn’t solve this issue. Same error log.
Booting without connected monitors is not the same as booting into console mode. The X server will still be loaded, in turn loading GPU kernel modules.
Please check Ubuntu How-Tos on booting into text mode.
After booting into text mode and update the driver, the error is still same. I used the following commands to update driver and cuda. Can you check if that is the correct way? Thank you
sudo apt-get purge nvidia*
sudo apt remove nvidia-*
sudo rm /etc/apt/sources.list.d/cuda*
sudo apt-get autoremove && sudo apt-get autoclean
sudo rm -rf /usr/local/cuda*
### to verify your gpu is cuda enable check
lspci | grep -i nvidia
### gcc compiler is required for development using the cuda toolkit. to verify the version of gcc install enter
gcc --version
# system update
sudo apt-get update
sudo apt-get upgrade
# install other import packages
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev
# first get the PPA repository driver
sudo add-apt-repository ppa:graphics-drivers/ppa
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
sudo apt-get update
sudo apt-get -y install cuda
Hello,
I still couldn’t solve this problem yet. Could you help please
Do you really need CUDA? Maybe start without CUDA and with plain GPU drivers first? For best ease of use, choose the Ubuntu built-in package installer in the Additional Drivers tab of the Sofware & Updates tool.
If you want to go the CUDA route, follow the instructions correctly, there is no need for the ppa repository for example.
Lastly, always include the latest log file for reference.
Thanks.
1 Like