NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver

Hello,
I can’t switch from Intel graphic card to Nvidia one (here is the proof).
When I try to run nvidia-settings, I get these errors:

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

I also get this message:

$ nvidia-smi
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 use Ubuntu 20.04.4 LTS

Linux andrei-Nitro-AN515-52 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

and my graphic card is

$ lspci -nnk | grep '\[03'
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev ff)

I tried to:

  • reinstall nvidia drivers
  • reinstall nvidia drivers (manually)
  • switch to an older version driver
  • enable and disable secure boot mode
  • prime select intel and then nvidia

I would really appreciate your help.
nvidia-bug-report.log.gz (159.9 KB)

You have bbswitch and bumblebee installed, so the nvidia gpu is turned off. Please uninstall both.

1 Like

It worked, thank you!!!