Kracozebr
Kracozebr

Reputation: 401

2 GPU on notebook. NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver

I'm trying to install nvidia drivers for my notebook Lenovo Legion. My GPU is NVIDIA GeForce RTX3060 and the last driver is 470. So I tried different ways to install the driver via downloading the driver (.run) from official NVIDIA site, from Software&Update, installing from terminal. But when try:

nvidia-smi

Got the error:

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 think that the problem is that I have 2 GPUs in the notebook. I run:

sudo lspci -nnk | grep -iA3 vga

The result is:

00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9a60] (rev 01)
    Subsystem: Lenovo Device [17aa:3f80]
    Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Device [8086:9a03] (rev 05)
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:2560] (rev a1)
    Subsystem: Lenovo Device [17aa:3f80]
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:228e] (rev a1)

Another thing when I reboot Ubuntu (18.04) it can not start. There appears the message:

dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks

Then I pres Ctrl + Shift + F3:

sudo prime-select intel

After that the notebook starts. When it have been started I change the main gpu to nvidia:

sudo prime-select nvidia

The error is the same when trying nvidia-smi So the question is how to handle with drivers for 2 GPUs on a PC?

Upvotes: 0

Views: 2354

Answers (1)

Ehsan Paknejad
Ehsan Paknejad

Reputation: 698

Duplicate topic.

There is no single problem responsible for this message, so there is no single solution.

This Link has more solutions and is older:

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

For me this code worked:

sudo apt install nvidia-cuda-toolkit

Upvotes: 1

Related Questions