You are not logged in.

#1 2021-02-14 15:16:32

spicybread
Member
Registered: 2021-02-13
Posts: 13

[SOLVED] Nvidia card not using any drivers

I have recently installed a fresh Arch in a notebook running an Nvidia GPU. I installed the nvidia package and made sure nouveau was blacklisted, but the driver seems to not be loaded. Tensorflow does not recognize the card, and both nvidia-smi and nvidia-settings tell me something is wrong with the drivers.

I have an Asus rog zephyrus g14, and I'm using the latest linux-zen-g14 kernel with no changes.

Output of 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.

Output of nvidia-settings:

ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system

Output of lspci -k:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex
        Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU
        Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
        Kernel driver in use: pcieport
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
        Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
        Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
        Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
        Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: piix4_smbus
        Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
        Kernel driver in use: k10temp
        Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Max-Q] (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel modules: nouveau
01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: nvidia-gpu
        Kernel modules: i2c_nvidia_gpu
02:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
        Subsystem: Intel Corporation Device 0084
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi
03:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN550 NVMe SSD (rev 01)
        Subsystem: Sandisk Corp WD Blue SN550 NVMe SSD
        Kernel driver in use: nvme
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c5)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
        Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
        Kernel driver in use: ccp
        Kernel modules: ccp
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
        Subsystem: ASUSTeK Computer Inc. Device 201f
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
        Subsystem: ASUSTeK Computer Inc. Device 201f
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
05:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: ahci
05:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
        Subsystem: ASUSTeK Computer Inc. Device 1f11
        Kernel driver in use: ahci

The graphics card does not list nvidia as one of the available modules, and since nouveau is blacklisted, no driver is in use.

Output of pacman -Qs nvidia:

local/cuda 11.2.0-3
    NVIDIA's GPU programming toolkit
local/cudnn 8.1.0.77-1
    NVIDIA CUDA Deep Neural Network library
local/egl-wayland 1.1.6-1
    EGLStream-based Wayland external platform
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxnvctrl 460.39-1
    NVIDIA NV-CONTROL X extension
local/nvidia 460.39-8
    NVIDIA drivers for linux
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 460.39-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 460.39-1
    NVIDIA drivers utilities
local/nvtop 1.1.0-1
    An htop like monitoring tool for NVIDIA GPUs
local/opencl-nvidia 460.39-1
    OpenCL implemention for NVIDIA

Output of dmesg | grep nvidia:

[    1.417535] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[    2.484274] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000

I have tried purging and reinstalling nvidia with no change.

This is my first post ever and I don't know what logs or commands would be helpful, so I'll be happy to change anything and provide any extra information needed.

Last edited by spicybread (2021-02-14 16:41:40)

Offline

#2 2021-02-14 15:34:13

loqs
Member
Registered: 2014-03-06
Posts: 19,022

Re: [SOLVED] Nvidia card not using any drivers

Please post the output of the following in code tags:

pacman -Qs nvidia
dmesg

Offline

#3 2021-02-14 15:40:49

spicybread
Member
Registered: 2021-02-13
Posts: 13

Re: [SOLVED] Nvidia card not using any drivers

I updated the original post. I didn't post full dmesg because it's huge, but I can upload it somewhere.
Thanks!

Offline

#4 2021-02-14 15:44:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,346

Re: [SOLVED] Nvidia card not using any drivers

You mentioned you are not using an in repo kernel, so you'll need to install the headers of your kernel ( linux-zen-g14-headers) and nvidia-dkms to have the module built for the kernel you are using. Kernel modules need to be built against the kernel they are intended to be used on.

Last edited by V1del (2021-02-14 15:46:10)

Offline

#5 2021-02-14 15:56:00

spicybread
Member
Registered: 2021-02-13
Posts: 13

Re: [SOLVED] Nvidia card not using any drivers

You are absolutely right, I hadn't installed the headers for the kernel.  I can use the card now.
Thank you!

Offline

#6 2021-02-14 16:57:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,346

Re: [SOLVED] Nvidia card not using any drivers

Great, please mark as [SOLVED] by editing the title in your first post.

Offline

Board footer

Powered by FluxBB