Quantcast
Viewing all articles
Browse latest Browse all 3387

Graphical Environments & Desktops • Nvidia driver on Legion 9 with RTX 4090 won't load

Hi,
I have a Lenovo Legion 9 with an Nvidia RTX 4090 running Debian 12.6.

I have not been able to get Nvidia to run on my system. Below you will find the steps I have taken to try and get the Nvidia driver to load. To date nothing I have done has worked.

I would appreciate it if anyone might have some suggestions as to what I might try next to attempt to resolve this problem.

Thanks,

Alex Donnini

1) Secure boot disabled
mokutil --sb
-----------------------------------
SecureBoot disabled

2) Bios set to hybrid graphics. If set to discrete graphics system hangs at start-up

3) Removed, purged and reinstalled ```nvidia-driver``` using ```apt-get``` many times

4) I black listed nouveau

5) I have both ```bumblebee``` and ```mesa``` installed. Whether they are installed or not, makes no difference, the Nvidia driver will not load either way.

6) As you will see from the information reported below, Most of the error messages refer to Nvidia files which should be present in ```/lib/modules/6.1.0-22-amd64``` and in ```/dev/```. I have not found any information on how to make that happen or errors that prevent that from happening.

7) I have searched for information on how others have resolved a problem similar to mine. None of the proposed solutions have worked for me. Here are some links to sources of information I have used:
https://wiki.debian.org/NvidiaGraphicsDrivers (and other Debian related resources e.g. Optimus, Mesa and Bumblebee)
https://askubuntu.com/questions/1413512 ... lib-module
https://www.reddit.com/r/debian/comment ... ce_daemon/
https://askubuntu.com/questions/1408652 ... esnt-exist
https://forums.developer.nvidia.com/t/d ... nel/228222
https://forums.developer.nvidia.com/t/d ... dev/283329
https://www.reddit.com/r/linux4noobs/co ... p_by_step/
viewtopic.php?t=148516

Output of current configuration, status related commands
========================================================================================================

Code:

nvidia-detect----------------------------------Detected NVIDIA GPUs:0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GN21-X11 [10de:2757] (rev a1)Checking card: 00.0 VGA compatible controllerYour card is supported by the default drivers.It is recommended to install the    nvidia-driver
========================================================================================================

Code:

uname -m && cat /etc/*release-------------------------------x86_64PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"NAME="Debian GNU/Linux"VERSION_ID="12"VERSION="12 (bookworm)"VERSION_CODENAME=bookwormID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"

Code:

cat /etc/debian_version-----------------------12.6

Code:

apt search nvidia-driver------------------------------------- Sorting... DoneFull Text Search... Doneglx-alternative-nvidia/stable,now 1.2.2 amd64 [installed,automatic]  allows the selection of NVIDIA as GLX providerlibegl-nvidia0/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA binary EGL librarylibgl1-nvidia-glvnd-glx/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA binary OpenGL/GLX library (GLVND variant)libgles-nvidia1/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA binary OpenGL|ES 1.x librarylibgles-nvidia2/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA binary OpenGL|ES 2.x librarylibglx-nvidia0/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA binary GLX librarynvidia-alternative/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  allows the selection of NVIDIA as GLX providernvidia-detect/stable,now 535.183.01-1~deb12u1 amd64 [installed]  NVIDIA GPU detection utilitynvidia-driver/stable,now 535.183.01-1~deb12u1 amd64 [installed]  NVIDIA metapackagenvidia-driver-bin/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA driver support binariesnvidia-driver-full/stable 535.183.01-1~deb12u1 amd64  NVIDIA metapackage (all components)nvidia-driver-libs/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)nvidia-kernel-dkms/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA binary kernel module DKMS sourcenvidia-kernel-source/stable 535.183.01-1~deb12u1 amd64  NVIDIA binary kernel module sourcenvidia-open-kernel-dkms/stable 535.183.01-1~deb12u1 amd64  NVIDIA open kernel module DKMS sourcenvidia-open-kernel-source/stable 535.183.01-1~deb12u1 amd64  NVIDIA open kernel module sourcexserver-xorg-video-nvidia/stable,now 535.183.01-1~deb12u1 amd64 [installed,automatic]  NVIDIA binary Xorg driver
========================================================================================================

Code:

dkms status------------bbswitch/0.8: addednvidia-current/535.183.01: added
========================================================================================================

Code:

apt-cache policy linux-image-amd64 linux-headers-amd64----------------------------------------------------------linux-image-amd64:  Installed: (none)  Candidate: 6.1.94-1  Version table:     6.7.12-1~bpo12+1 100        100 https://httpredir.debian.org/debian bookworm-backports/main amd64 Packages     6.1.94-1 500        500 http://ftp.us.debian.org/debian bookworm/main amd64 Packages        500 http://ftp.de.debian.org/debian bookworm/main amd64 Packages        500 http://deb.debian.org/debian bookworm/main amd64 Packages        100 /var/lib/dpkg/status     6.1.90-1 500        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages     6.1.67-1 500        500 http://deb.debian.org/debian bookworm-updates/main amd64 Packageslinux-headers-amd64:  Installed: 6.1.94-1  Candidate: 6.1.94-1  Version table:     6.7.12-1~bpo12+1 100        100 https://httpredir.debian.org/debian bookworm-backports/main amd64 Packages *** 6.1.94-1 500        500 http://ftp.us.debian.org/debian bookworm/main amd64 Packages        500 http://ftp.de.debian.org/debian bookworm/main amd64 Packages        500 http://deb.debian.org/debian bookworm/main amd64 Packages        100 /var/lib/dpkg/status     6.1.90-1 500        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages     6.1.67-1 500        500 http://deb.debian.org/debian bookworm-updates/main amd64 Packages
========================================================================================================

Code:

apt list -i linux-image-* linux-headers-*--------------------------------------------Listing... Donelinux-headers-6.1.0-18-amd64/stable,stable,stable,now 6.1.76-1 amd64 [installed]linux-headers-6.1.0-18-common/stable,stable,stable,now 6.1.76-1 all [installed,automatic]linux-headers-6.1.0-22-amd64/stable,stable,stable,now 6.1.94-1 amd64 [installed]linux-headers-6.1.0-22-common/stable,stable,stable,now 6.1.94-1 all [installed,automatic]linux-headers-amd64/stable,stable,stable,now 6.1.94-1 amd64 [installed,automatic]linux-image-6.1.0-18-amd64/stable,stable,stable,now 6.1.76-1 amd64 [installed,automatic]linux-image-6.1.0-22-amd64/stable,stable,stable,now 6.1.94-1 amd64 [installed]
========================================================================================================

Code:

vrms---------------             Non-free packages installed on actlnxlpt7amd64-microcode                     Processor microcode firmware for AMD CPUsatmel-firmware                      Firmware for Atmel at76c50x wireless networking chips.bluez-firmware                      Firmware for Bluetooth devicesdahdi-firmware-nonfree              DAHDI non-free firmwarefirmware-amd-graphics               Binary firmware for AMD/ATI graphics chipsfirmware-ast                        Binary firmware for ASpeed Technologies graphics chipsfirmware-atheros                    Binary firmware for Qualcomm Atheros wireless cardsfirmware-bnx2                       Binary firmware for Broadcom NetXtremeIIfirmware-bnx2x                      Binary firmware for Broadcom NetXtreme II 10Gbfirmware-brcm80211                  Binary firmware for Broadcom/Cypress 802.11 wireless cfirmware-cavium                     Binary firmware for Cavium Ethernet adaptersfirmware-intel-sound                Binary firmware for Intel sound DSPsfirmware-ipw2x00                    Binary firmware for Intel Pro Wireless 2100, 2200 andfirmware-ivtv                       Binary firmware for iTVC15-family MPEG codecs (ivtv anfirmware-iwlwifi                    Binary firmware for Intel Wireless cardsfirmware-libertas                   Binary firmware for Marvell wireless cardsfirmware-linux                      Binary firmware for various drivers in the Linux kernefirmware-linux-nonfree              Binary firmware for various drivers in the Linux kernefirmware-misc-nonfree               Binary firmware for various drivers in the Linux kernefirmware-myricom                    Binary firmware for Myri-10G Ethernet adaptersfirmware-netronome                  Binary firmware for Netronome network adaptersfirmware-netxen                     Binary firmware for QLogic Intelligent Ethernet (3000firmware-nvidia-gsp                 NVIDIA GSP firmwarefirmware-qlogic                     Binary firmware for QLogic HBAsfirmware-realtek                    Binary firmware for Realtek wired/wifi/BT adaptersfirmware-realtek-rtl8723cs-bt       Bluetooth firmware for Realtek RTL8723CSfirmware-siano                      Binary firmware for Siano MDTV receiversfirmware-sof-signed                 Intel SOF firmware - signedfirmware-zd1211                     binary firmware for the zd1211rw wireless driverintel-microcode                     Processor microcode firmware for Intel CPUslibcuda1                            NVIDIA CUDA Driver Librarylibegl-nvidia0                      NVIDIA binary EGL librarylibgl1-nvidia-glvnd-glx             NVIDIA binary OpenGL/GLX library (GLVND variant)libgles-nvidia1                     NVIDIA binary OpenGL|ES 1.x librarylibgles-nvidia2                     NVIDIA binary OpenGL|ES 2.x librarylibglx-nvidia0                      NVIDIA binary GLX librarylibnvcuvid1                         NVIDIA CUDA Video Decoder runtime librarylibnvidia-allocator1                NVIDIA allocator runtime librarylibnvidia-cfg1                      NVIDIA binary OpenGL/GLX configuration librarylibnvidia-eglcore                   NVIDIA binary EGL core librarieslibnvidia-encode1                   NVENC Video Encoding runtime librarylibnvidia-glcore                    NVIDIA binary OpenGL/GLX core librarieslibnvidia-glvkspirv                 NVIDIA binary Vulkan Spir-V compiler librarylibnvidia-ml1                       NVIDIA Management Library (NVML) runtime librarylibnvidia-pkcs11-openssl3           NVIDIA PKCS #11 Library (OpenSSL 3)libnvidia-ptxjitcompiler1           NVIDIA PTX JIT Compiler librarylibnvidia-rtcore                    NVIDIA binary Vulkan ray tracing (rtcore) librarynvidia-alternative                  allows the selection of NVIDIA as GLX providernvidia-detect                       NVIDIA GPU detection utilitynvidia-driver                       NVIDIA metapackagenvidia-driver-bin                   NVIDIA driver support binariesnvidia-driver-libs                  NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)nvidia-egl-common                   NVIDIA binary EGL driver - common filesnvidia-egl-icd                      NVIDIA EGL installable client driver (ICD)nvidia-kernel-dkms                  NVIDIA binary kernel module DKMS sourcenvidia-kernel-support               NVIDIA binary kernel module support filesnvidia-legacy-check                 check for NVIDIA GPUs requiring a legacy drivernvidia-smi                          NVIDIA System Management Interfacenvidia-suspend-common               NVIDIA driver - systemd power management scriptsnvidia-vdpau-driver                 Video Decode and Presentation API for Unix - NVIDIA drnvidia-vulkan-common                NVIDIA Vulkan driver - common filesnvidia-vulkan-icd                   NVIDIA Vulkan installable client driver (ICD)xserver-xorg-video-nvidia           NVIDIA binary Xorg driver             Contrib packages installed on actlnxlpt7bumblebee-nvidia                    NVIDIA Optimus support using the proprietary NVIDIA drglx-alternative-mesa                allows the selection of MESA as GLX providerglx-alternative-nvidia              allows the selection of NVIDIA as GLX providerglx-diversions                      prepare for using accelerated GLX implementations fromgpustat                             pretty nvidia device monitorlibnvidia-egl-gbm1                  GBM EGL external platform library for NVIDIAnvidia-installer-cleanup            cleanup after driver installation with the nvidia-instnvidia-kernel-common                NVIDIA binary kernel module support filesnvidia-modprobe                     utility to load NVIDIA kernel modules and create devicnvidia-persistenced                 daemon to maintain persistent software state in the NVnvidia-primus-vk-common             thin wrapper for the NVIDIA binary Vulkan ICD (commonnvidia-primus-vk-wrapper            thin wrapper for using the NVIDIA binary Vulkan ICD winvidia-settings                     tool for configuring the NVIDIA graphics drivernvidia-support                      NVIDIA binary graphics driver support filesnvidia-xconfig                      deprecated X configuration tool for non-free NVIDIA drnvtop                               Interactive NVIDIA GPU process monitorprimus-nvidia                       NVIDIA Primus support using the proprietary NVIDIA driprimus-vk-nvidia                    NVIDIA Optimus support for Vulkan applicationspython3-pynvml                      Python3 bindings to the NVIDIA Management Libraryupdate-glx                          utility for switching the GLX implementation  63 non-free packages, 2.1% of 3032 installed packages.  20 contrib packages, 0.7% of 3032 installed packages.
========================================================================================================

Code:

journalctl -xeu nvidia-persistenced.service---------------------------------------------Jul 07 15:40:34 actlnxlpt7 nvidia-persistenced[1053]: nvidia-persistenced failed to initialize. Check syslog for more details.Jul 07 15:40:34 actlnxlpt7 systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE░░ Subject: Unit process exited░░ Defined-By: systemd░░ Support: https://www.debian.org/support░░ ░░ An ExecStart= process belonging to unit nvidia-persistenced.service has exited.░░ ░░ The process' exit code is 'exited' and its exit status is 1.Jul 07 15:40:34 actlnxlpt7 systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.░░ Subject: Unit failed░░ Defined-By: systemd░░ Support: https://www.debian.org/support░░ ░░ The unit nvidia-persistenced.service has entered the 'failed' state with result 'exit-code'.Jul 07 15:40:34 actlnxlpt7 systemd[1]: Failed to start nvidia-persistenced.service - NVIDIA Persistence Daemon.░░ Subject: A start job for unit nvidia-persistenced.service has failed░░ Defined-By: systemd░░ Support: https://www.debian.org/support░░ ░░ A start job for unit nvidia-persistenced.service has finished with a failure.░░ ░░ The job identifier is 139 and the job result is failed.
========================================================================================================

Code:

journalctl -b | grep nvidia--------------------------------Jul 07 15:40:34 actlnxlpt7 audit[1007]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=1007 comm="apparmor_parser"Jul 07 15:40:34 actlnxlpt7 audit[1007]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=1007 comm="apparmor_parser"Jul 07 15:40:34 actlnxlpt7 kernel: audit: type=1400 audit(1720381234.703:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=1007 comm="apparmor_parser"Jul 07 15:40:34 actlnxlpt7 kernel: audit: type=1400 audit(1720381234.703:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=1007 comm="apparmor_parser"Jul 07 15:40:34 actlnxlpt7 systemd[1]: Starting nvidia-persistenced.service - NVIDIA Persistence Daemon...Jul 07 15:40:34 actlnxlpt7 nvidia-persistenced[1072]: Started (1072)Jul 07 15:40:34 actlnxlpt7 nvidia-persistenced[1072]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 116 has read and write permissions for those files.Jul 07 15:40:34 actlnxlpt7 nvidia-persistenced[1072]: Shutdown (1072)Jul 07 15:40:34 actlnxlpt7 nvidia-persistenced[1053]: nvidia-persistenced failed to initialize. Check syslog for more details.Jul 07 15:40:34 actlnxlpt7 systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILUREJul 07 15:40:34 actlnxlpt7 systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.Jul 07 15:40:34 actlnxlpt7 systemd[1]: Failed to start nvidia-persistenced.service - NVIDIA Persistence Daemon.
========================================================================================================

Code:

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.
========================================================================================================

Code:

gpustat --debug--------------------Error on querying NVIDIA devices. Use --debug flag for detailsTraceback (most recent call last):  File "/usr/lib/python3/dist-packages/gpustat/cli.py", line 18, in print_gpustat    gpu_stats = GPUStatCollection.new_query(debug=debug)                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/lib/python3/dist-packages/gpustat/core.py", line 370, in new_query    N.nvmlInit()  File "/usr/lib/python3/dist-packages/pynvml.py", line 1785, in nvmlInit    nvmlInitWithFlags(0)  File "/usr/lib/python3/dist-packages/pynvml.py", line 1775, in nvmlInitWithFlags    _nvmlCheckReturn(ret)  File "/usr/lib/python3/dist-packages/pynvml.py", line 848, in _nvmlCheckReturn    raise NVMLError(ret)pynvml.NVMLError_DriverNotLoaded: Driver Not Loaded
========================================================================================================

Code:

modprobe nvidia--------------------------modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/6.1.0-22-amd64modprobe: ERROR: ../libkmod/libkmod-module.c:1047 command_do() Error running install command 'modprobe -i nvidia-current ' for module nvidia: retcode 1modprobe: ERROR: could not insert 'nvidia': Invalid argument
========================================================================================================

Code:

modprobe -i nvidia-current-----------------------modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/6.1.0-22-amd64root@actlnxlpt7:/var/log# Directory ```/lib/modules/6.1.0-22-amd64``` contains nothing related to nvidia  or (nvidia-current) drivers
========================================================================================================

Code:

apt-get install linux-modules-nvidia-535-6.1.0-22-amd64-----------------------------------------------------------Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneE: Unable to locate package linux-modules-nvidia-535-6.1.0-22-amd64E: Couldn't find any package by glob 'linux-modules-nvidia-535-6.1.0-22-amd64'E: Couldn't find any package by regex 'linux-modules-nvidia-535-6.1.0-22-amd64'
========================================================================================================

Statistics: Posted by adonnini — 2024-07-08 11:48 — Replies 9 — Views 127



Viewing all articles
Browse latest Browse all 3387

Trending Articles