I cannot use my GPU in Ubuntu 20.04

I used to connect my 2nd monitor but after training a model in Darknet I cannot. I tried a few commands regarding OpenCV but it says that “GPU is not started”. I have not been able to run nvidia-smi command to see GPU usage etc… The error is : “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

I removed the driver and download recommended version but it is still not working. Even though, it says after sudo prime-select nvidia command , Info: the nvidia profile is already set , I still see Intel Graphic in the graphic settings in system.

I checked the command lspci -k | grep -A 2 -i “VGA”, the output is :
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
Subsystem: Lenovo UHD Graphics 630 (Mobile)
Kernel driver in use: i915

01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
Subsystem: Lenovo GP107M [GeForce GTX 1050 Ti Mobile]
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Nvidia-bug- report has been attached. How can I make to run GPU again?
nvidia-bug-report.log.gz (162.3 KB)

Please try this:

  • run
sudo prime-select nvidia
  • run
grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*

to find a file containing

blacklist nvidia

and remove it,
then run

sudo update-initramfs -u

and reboot. If the problem persists, please create a ne nvidia-bug-report.log.

1 Like

Thank you so much it worked.

Not working for me