Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
bamia
Posts: 4
Joined: 2022-10-29 18:38

[SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#1 Post by bamia »

Hi,

I've recently upgraded the linux kernel to 6.0, and since then I cannot start a start the X server.
I'm getting a "Failed to start Light Display Manager" error.

After looking at the logs of systemd, I've found that some units/services fail to start.
Here is the error log of the systemd-modules-load.service :
module nvidia-current-modeset not found in directory /lib/modules/6.0.0-2-amd64/

Anyone knows how to fix this?

Thanks in advance

User avatar
mrjcd
Posts: 67
Joined: 2020-01-25 18:20
Has thanked: 1 time
Been thanked: 6 times

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#2 Post by mrjcd »

This machine is on Bookworm -- NOT Sid but it worky great...bunches NVIDA stuff for its GeForce GT 1030

Code: Select all

mrjcd@daDeb:~$ uname -a
Linux daDeb 6.0.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.3-1 (2022-10-21) x86_64 GNU/Linux
mrjcd@daDeb:~$ vrms
               Non-free packages installed on daDeb

firmware-misc-nonfree               Binary firmware for various drivers in the Linux kerne
firmware-realtek                    Binary firmware for Realtek wired/wifi/BT adapters
intel-microcode                     Processor microcode firmware for Intel CPUs
libcuda1                            NVIDIA CUDA Driver Library
libegl-nvidia0                      NVIDIA binary EGL library
libgl1-nvidia-glvnd-glx             NVIDIA binary OpenGL/GLX library (GLVND variant)
libgles-nvidia1                     NVIDIA binary OpenGL|ES 1.x library
libgles-nvidia2                     NVIDIA binary OpenGL|ES 2.x library
libglx-nvidia0                      NVIDIA binary GLX library
libnvcuvid1                         NVIDIA CUDA Video Decoder runtime library
libnvidia-allocator1                NVIDIA allocator runtime library
libnvidia-cfg1                      NVIDIA binary OpenGL/GLX configuration library
libnvidia-eglcore                   NVIDIA binary EGL core libraries
libnvidia-encode1                   NVENC Video Encoding runtime library
libnvidia-glcore                    NVIDIA binary OpenGL/GLX core libraries
libnvidia-glvkspirv                 NVIDIA binary Vulkan Spir-V compiler library
libnvidia-ml1                       NVIDIA Management Library (NVML) runtime library
libnvidia-ptxjitcompiler1           NVIDIA PTX JIT Compiler library
libnvidia-rtcore                    NVIDIA binary Vulkan ray tracing (rtcore) library
nvidia-alternative                  allows the selection of NVIDIA as GLX provider
nvidia-cuda-mps                     NVIDIA CUDA Multi Process Service (MPS)
nvidia-detect                       NVIDIA GPU detection utility
nvidia-driver                       NVIDIA metapackage
nvidia-driver-bin                   NVIDIA driver support binaries
nvidia-driver-libs                  NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
nvidia-egl-common                   NVIDIA binary EGL driver - common files
nvidia-egl-icd                      NVIDIA EGL installable client driver (ICD)
nvidia-kernel-dkms                  NVIDIA binary kernel module DKMS source
nvidia-kernel-support               NVIDIA binary kernel module support files
nvidia-legacy-check                 check for NVIDIA GPUs requiring a legacy driver
nvidia-smi                          NVIDIA System Management Interface
nvidia-vdpau-driver                 Video Decode and Presentation API for Unix - NVIDIA dr
nvidia-vulkan-common                NVIDIA Vulkan driver - common files
nvidia-vulkan-icd                   NVIDIA Vulkan installable client driver (ICD)
xserver-xorg-video-nvidia           NVIDIA binary Xorg driver

                Contrib packages installed on daDeb

glx-alternative-mesa                allows the selection of MESA as GLX provider
glx-alternative-nvidia              allows the selection of NVIDIA as GLX provider
glx-diversions                      prepare for using accelerated GLX implementations from
iucode-tool                         Intel processor microcode tool
libdvd-pkg                          DVD-Video playing library - installer
libnvidia-egl-gbm1                  GBM EGL external platform library for NVIDIA
nvidia-installer-cleanup            cleanup after driver installation with the nvidia-inst
nvidia-kernel-common                NVIDIA binary kernel module support files
nvidia-modprobe                     utility to load NVIDIA kernel modules and create devic
nvidia-persistenced                 daemon to maintain persistent software state in the NV
nvidia-settings                     tool for configuring the NVIDIA graphics driver
nvidia-support                      NVIDIA binary graphics driver support files
update-glx                          utility for switching the GLX implementation

  35 non-free packages, 1.3% of 2620 installed packages.
  13 contrib packages, 0.5% of 2620 installed packages.
mrjcd@daDeb:~$ date
Sun Oct 30 03:55:14 PM CDT 2022
mrjcd@daDeb:~$ neofetch
       _,met$$$$$gg.          mrjcd@daDeb 
    ,g$$$$$$$$$$$$$$$P.       ----------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux bookworm/sid x86_64 
 ,$$P'              `$$$.     Host: OptiPlex 7010 01 
',$$P       ,ggs.     `$$b:   Kernel: 6.0.0-2-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 1 day, 19 hours, 33 mins 
 $$P      d$'     ,    $$P    Packages: 2620 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.0 
 $$;      Y$b._   _,d$P'      Resolution: 1600x900, 1600x900 
 Y$$.    `.`"Y$$$$P"'         DE: GNOME 43.0 
 `$$b      "-.__              WM: Mutter 
  `Y$$                        WM Theme: Adwaita 
   `Y$$.                      Theme: Adwaita [GTK2/3] 
     `$$b.                    Icons: gnome [GTK2/3] 
       `Y$$b.                 Terminal: gnome-terminal 
          `"Y$b._             CPU: Intel i5-3570 (4) @ 3.800GHz 
              `"""            GPU: NVIDIA GeForce GT 1030 
                              Memory: 2716MiB / 15961MiB 
mrjcd@daDeb:~$  

bamia
Posts: 4
Joined: 2022-10-29 18:38

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#3 Post by bamia »

@mrjcd, I don't know how this can help me.

But here is what I get when I check the failed systemd units of

Code: Select all

sudo systemctl --failed
  UNIT                         LOAD   ACTIVE SUB    DESCRIPTION
● lightdm.service              loaded failed failed Light Display Manager
● nvidia-persistenced.service  loaded failed failed NVIDIA Persistence Daemon
● systemd-modules-load.service loaded failed failed Load Kernel Modules
● virtualbox.service           loaded failed failed LSB: VirtualBox Linux kernel module

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
4 loaded units listed.
And this is the error log of the systemd-modules-load.service unit :

Code: Select all

× systemd-modules-load.service - Load Kernel Modules
     Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
     Active: failed (Result: exit-code) since Mon 2022-10-31 14:37:53 CET; 1min 0s ago
       Docs: man:systemd-modules-load.service(8)
             man:modules-load.d(5)
    Process: 521 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
   Main PID: 521 (code=exited, status=1/FAILURE)
        CPU: 9ms

Oct 31 14:37:53 dontpanic systemd-modules-load[525]: modprobe: ERROR: could not insert 'nvidia': Invalid argument
Oct 31 14:37:53 dontpanic systemd-modules-load[528]: modprobe: FATAL: Module nvidia-current-modeset not found in directory /lib/modules/6.0.0-2-amd64
Oct 31 14:37:53 dontpanic systemd-modules-load[523]: modprobe: ERROR: ../libkmod/libkmod-module.c:1047 command_do() Error running install command 'modprobe nvidia ; modprobe -i nvidia-current-modeset ' for module nvidia_modeset: retcode 1
Oct 31 14:37:53 dontpanic systemd-modules-load[523]: modprobe: ERROR: could not insert 'nvidia_modeset': Invalid argument
Oct 31 14:37:53 dontpanic systemd-modules-load[529]: modprobe: FATAL: Module nvidia-current-drm not found in directory /lib/modules/6.0.0-2-amd64
Oct 31 14:37:53 dontpanic systemd-modules-load[521]: Error running install command 'modprobe nvidia-modeset ; modprobe -i nvidia-current-drm modeset=1 ' for module nvidia_drm: retcode 1
Oct 31 14:37:53 dontpanic systemd-modules-load[521]: Failed to insert module 'nvidia_drm': Invalid argument
Oct 31 14:37:53 dontpanic systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Oct 31 14:37:53 dontpanic systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Oct 31 14:37:53 dontpanic systemd[1]: Failed to start Load Kernel Modules.
Any idea on what's going on?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#4 Post by stevepusser »

what do you get for

Code: Select all

apt policy nvidia-driver
MX Linux packager and developer

bamia
Posts: 4
Joined: 2022-10-29 18:38

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#5 Post by bamia »

Code: Select all

$ sudo apt policy nvidia-driver
nvidia-driver:
  Installed: 510.85.02-6
  Candidate: 510.85.02-6
  Version table:
 *** 510.85.02-6 500
        500 http://deb.debian.org/debian sid/non-free amd64 Packages
        100 /var/lib/dpkg/status

User avatar
mrjcd
Posts: 67
Joined: 2020-01-25 18:20
Has thanked: 1 time
Been thanked: 6 times

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#6 Post by mrjcd »

looky like SID has a little bump over Bookworm

Code: Select all

root@daDeb:~# apt policy nvidia-driver
nvidia-driver:
  Installed: 510.85.02-5
  Candidate: 510.85.02-5
  Version table:
 *** 510.85.02-5 500
        500 https://deb.debian.org/debian bookworm/non-free amd64 Packages
        100 /var/lib/dpkg/status

milomak
Posts: 2160
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#7 Post by milomak »

i think this is probably that sometimes nvidia drivers have a lag to the most current kernel

especially if it is a major change

the answer is wait if you are using the proprietary drivers. i do.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#8 Post by stevepusser »

AFAIK, the -5 revision builds fine on a backported 6.0.5 kernel after I backported them for MX Linux advanced hardware support section.

It can't hurt to look at the changelog...

Code: Select all

nvidia-graphics-drivers (510.85.02-6) unstable; urgency=medium

  * Split firmware-nvidia-gsp from nvidia-kernel-support.

 -- Andreas Beckmann <anbe@debian.org>  Thu, 27 Oct 2022 10:29:39 +0200

nvidia-graphics-drivers (510.85.02-5) unstable; urgency=medium

  * Restrict nvidia-legacy-check dependency to driver architectures.
  * Backport nv-acpi.c changes from 515.65.01 and drm_frambuffer.h changes
    from 515.76 to fix kernel module build for Linux 6.0.  (Closes: #1021958)

 -- Andreas Beckmann <anbe@debian.org>  Mon, 17 Oct 2022 15:40:28 +0200
Huh. Looks like -6 users will also need firmware-nvidia-gsp.
MX Linux packager and developer

User avatar
mrjcd
Posts: 67
Joined: 2020-01-25 18:20
Has thanked: 1 time
Been thanked: 6 times

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#9 Post by mrjcd »

Bookworm now on 510.85.02-6 ...still all good on this old thang

Code: Select all

root@daDeb:~# apt policy nvidia-driver
nvidia-driver:
  Installed: 510.85.02-6
  Candidate: 510.85.02-6
  Version table:
 *** 510.85.02-6 500
        500 https://deb.debian.org/debian bookworm/non-free amd64 Packages
        100 /var/lib/dpkg/status
root@daDeb:~# vrms
               Non-free packages installed on daDeb

firmware-misc-nonfree               Binary firmware for various drivers in the Linux kerne
firmware-nvidia-gsp                 NVIDIA GSP firmware
firmware-realtek                    Binary firmware for Realtek wired/wifi/BT adapters
intel-microcode                     Processor microcode firmware for Intel CPUs
libcuda1                            NVIDIA CUDA Driver Library
libegl-nvidia0                      NVIDIA binary EGL library
libgl1-nvidia-glvnd-glx             NVIDIA binary OpenGL/GLX library (GLVND variant)
libgles-nvidia1                     NVIDIA binary OpenGL|ES 1.x library
libgles-nvidia2                     NVIDIA binary OpenGL|ES 2.x library
libglx-nvidia0                      NVIDIA binary GLX library
libnvcuvid1                         NVIDIA CUDA Video Decoder runtime library
libnvidia-allocator1                NVIDIA allocator runtime library
libnvidia-cfg1                      NVIDIA binary OpenGL/GLX configuration library
libnvidia-eglcore                   NVIDIA binary EGL core libraries
libnvidia-encode1                   NVENC Video Encoding runtime library
libnvidia-glcore                    NVIDIA binary OpenGL/GLX core libraries
libnvidia-glvkspirv                 NVIDIA binary Vulkan Spir-V compiler library
libnvidia-ml1                       NVIDIA Management Library (NVML) runtime library
libnvidia-ptxjitcompiler1           NVIDIA PTX JIT Compiler library
libnvidia-rtcore                    NVIDIA binary Vulkan ray tracing (rtcore) library
nvidia-alternative                  allows the selection of NVIDIA as GLX provider
nvidia-cuda-mps                     NVIDIA CUDA Multi Process Service (MPS)
nvidia-detect                       NVIDIA GPU detection utility
nvidia-driver                       NVIDIA metapackage
nvidia-driver-bin                   NVIDIA driver support binaries
nvidia-driver-libs                  NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
nvidia-egl-common                   NVIDIA binary EGL driver - common files
nvidia-egl-icd                      NVIDIA EGL installable client driver (ICD)
nvidia-kernel-dkms                  NVIDIA binary kernel module DKMS source
nvidia-kernel-support               NVIDIA binary kernel module support files
nvidia-legacy-check                 check for NVIDIA GPUs requiring a legacy driver
nvidia-smi                          NVIDIA System Management Interface
nvidia-vdpau-driver                 Video Decode and Presentation API for Unix - NVIDIA dr
nvidia-vulkan-common                NVIDIA Vulkan driver - common files
nvidia-vulkan-icd                   NVIDIA Vulkan installable client driver (ICD)
xserver-xorg-video-nvidia           NVIDIA binary Xorg driver

                Contrib packages installed on daDeb

glx-alternative-mesa                allows the selection of MESA as GLX provider
glx-alternative-nvidia              allows the selection of NVIDIA as GLX provider
glx-diversions                      prepare for using accelerated GLX implementations from
iucode-tool                         Intel processor microcode tool
libdvd-pkg                          DVD-Video playing library - installer
libnvidia-egl-gbm1                  GBM EGL external platform library for NVIDIA
nvidia-installer-cleanup            cleanup after driver installation with the nvidia-inst
nvidia-kernel-common                NVIDIA binary kernel module support files
nvidia-modprobe                     utility to load NVIDIA kernel modules and create devic
nvidia-persistenced                 daemon to maintain persistent software state in the NV
nvidia-settings                     tool for configuring the NVIDIA graphics driver
nvidia-support                      NVIDIA binary graphics driver support files
update-glx                          utility for switching the GLX implementation

  36 non-free packages, 1.4% of 2625 installed packages.
  13 contrib packages, 0.5% of 2625 installed packages.
root@daDeb:~# 

bamia
Posts: 4
Joined: 2022-10-29 18:38

Re: [SID - Unstable] systemd failing to load nvidia drivers since update to linux 6.0

#10 Post by bamia »

Ok, I've just found the issue.
I've just tried to upgrade the linux-image-6.0.0-2-amd64 and linux-image-amd64 packages, and while upgrading, I saw an error :

Code: Select all

dkms: running auto installation service for kernel 6.0.0-2-amd64:Sign command: /usr/lib/linux-kbuild-6.0/scripts/sign-file
Binary /usr/lib/linux-kbuild-6.0/scripts/sign-file not found, modules won't be signed
Error! Your kernel headers for kernel 6.0.0-2-amd64 cannot be found at /lib/modules/6.0.0-2-amd64/build or /lib/modules/6.0.0-2-amd64/source.
Please install the linux-headers-6.0.0-2-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located.
Sign command: /usr/lib/linux-kbuild-6.0/scripts/sign-file
Binary /usr/lib/linux-kbuild-6.0/scripts/sign-file not found, modules won't be signed
Error! Your kernel headers for kernel 6.0.0-2-amd64 cannot be found at /lib/modules/6.0.0-2-amd64/build or /lib/modules/6.0.0-2-amd64/source.
Please install the linux-headers-6.0.0-2-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located.
So I installed the linux-headers-6.0.0-2-amd64 packages, then reinstalled linux-image-6.0.0-2-amd64 and linux-image-amd64 packages, and now everything works fine!

Thanks!

Post Reply