Skip to content

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Hello to everyone.

I'm a new user of arch linux. I've installed an old kernel,this version :

​

[root@zio ziomario2020]# uname -a

Linux zio 5.8.18 #1 SMP PREEMPT Mon Nov 9 13:00:03 CET 2020 x86_64 GNU/Linux

​

I'm trying to solve this problem :

​

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've read that to fix it I should install the nvidia driver,cuda and cudnn. Ok,I did it with the following commands :

​

sudo pacman -Ss nvidia

sudo pacman -S cuda cudnn python-tensorflow-opt-cuda

​

as u can see,the cuda package has been installed succesfully :

​

[root@zio ziomario2020]# nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver

Copyright (c) 2005-2020 NVIDIA Corporation

Built on Mon_Oct_12_20:09:46_PDT_2020

Cuda compilation tools, release 11.1, V11.1.105

Build cuda_11.1.TC455_06.29190527_0

​

and also the cudnn package is there :

​

[root@zio ziomario2020]# ls /usr/include/cudnn.h

/usr/include/cudnn.h

​

I have 3 graphic cards on the pc :

​

00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop 9 Series) (rev 02)

**DeviceName: Onboard - Video**

**Subsystem: Gigabyte Technology Co., Ltd Device d000**

**Kernel driver in use: i915**

**Kernel modules: i915**

​

01:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti] (rev a1)

**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**

**Kernel modules: nouveau**

​

01:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio Controller (rev a1)

**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**

**Kernel driver in use: snd\_hda\_intel**

**Kernel modules: snd\_hda\_intel**

​

01:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller (rev a1)

**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**

**Kernel driver in use: xhci\_hcd**

**Kernel modules: xhci\_pci**

​

01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU102 USB Type-C UCSI Controller (rev a1)

**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**

**Kernel driver in use: nvidia-gpu**

**Kernel modules: i2c\_nvidia\_gpu**

​

02:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1)

**Subsystem: ZOTAC International (MCO) Ltd. Device 2438**

**Kernel modules: nouveau**

​

02:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)

**Subsystem: ZOTAC International (MCO) Ltd. Device 2438**

**Kernel driver in use: snd\_hda\_intel**

**Kernel modules: snd\_hda\_intel**

​

what's wrong here ?

​

[root@zio ziomario2020]# modprobe nvidia

modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.8.18

Edited 10 Nov 2020. We only hold this version.

11 points23 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
11 · 82% up
Kind
Text
ID
jrlwma

Author

3
posts
8
comments
0
media
View profile

23 comments

You either need to install the linux-headers package for the old kernel and switch to nvidia-dkms. Or just update the kernel, the CUDA/OpenCL incompatibility is fixed with the 455.38 driver

9 points

Where did you find that the 455.38 driver solved the issue with, I assume, the kernel 5.9?? Don't get me wrong, I'm happy if it does, but Nvidia said mid-November and I've checking forum and reddits waiting for the news 🤔

3 points

I'm literally using it. You could easily make even the previous driver compatible by doing a local compile and adjusting the module license from 'NVIDIA' to 'GPL' The "incompatibility" has/had no technical reason, it was surfaced due to software/license politics. Looking at the 38 driver and the relevant nvidia_uvm module looks like the license was adjusted. Whether that was done quick and dirty or more in depth discussions take place behind the scenes I don't know.

3 points

Cool. This is good to know. Was also kind of expecting to hear something somewhere around mid-November. Gonna go ahead and give it a shot here in a few minutes. Thanks for the heads up!

E#2: Can confirm nvidia-455.38-5 is working with kernel 5.9 for me. My system is once again current:D

2 points

is this good ? (don't know if manjaro headers are good for arch

​

  1. http://ftp.riken.jp/Linux/manjaro/stable/core/x86_64/linux58-headers-5.8.18-1-x86_64.pkg.tar.zst

​

  1. I'm not able to determine which version of the nvidia driver I've installed (with pacman -S nvidia,because it is not enabled :

​

[root@zio ziomario2020]# grep "X Driver" /var/log/Xorg.0.log

grep: /var/log/Xorg.0.log: File o directory non esistente

[root@zio ziomario2020]# modinfo

modinfo: ERROR: missing module or filename.

[root@zio ziomario2020]# modinfo /usr/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko | grep ^version

modinfo: ERROR: Module /usr/lib/modules/5.8.18/kernel/drivers/video/nvidia.ko not found.

[root@zio ziomario2020]# 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 can't use the nvidia driver on kernel 5.9....

-1 points

Where did you get 5.8.18 from in the first place? It was never officially packaged for Arch. You need to install the exact headers of the exact kernel you installed. Depending on how you installed they might already be, so opting for nvidia-dkms (... and nvidia-utils) should work out.

The other things you mention either don't make much sense to me or make me not sure what you actually ended up doing.

I use the nvidia drivers on kernel 5.9 with the normal official packages from the repository, you have to do better than "I can't use" why not? What are you doing, which error messages do you see? How did you attempt to install the nvidia drivers?

5 points

oh men,sorry,I forgot to say that i'm not running the kernel 5.9. I've installed the kernel 5.8 because I read that the nvidia driver is not compatible with 5.9...

​

[root@zio ziomario2020]# uname -a

Linux zio 5.8.18 #1 SMP PREEMPT Mon Nov 9 13:00:03 CET 2020 x86_64 GNU/Linux

1 points

yes,cudnn is there :

​

[root@zio ziomario2020]# ls /usr/include/cudnn.h

/usr/include/cudnn.h

1 points

Post pacman -Q | grep nvidia

1 points

pacman -Q | grep nvidia

[root@zio grub]# pacman -Q | grep nvidia

nvidia 455.38-5

nvidia-lts 1:455.38-3

nvidia-settings 455.38-1

nvidia-utils 455.38-1

opencl-nvidia 455.38-1

1 points

The nvidia package is always up-to-date with the current linux package. For other kernels you need the nvidia-dkms package. Good luck.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.