View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Sat Jun 19, 2021 8:13 am Post subject: nvidia module stopped autoloading [solved] |
|
|
for some reason in the last 2 days, the nvidia module stopped autoloading on boot.
I've not been able to understand why, here is what I see:
Code: |
# ll /etc/modules-load.d/*
-rw-r--r-- 1 root root 19 Jun 16 21:35 /etc/modules-load.d/drm.conf
-rw-r--r-- 1 root root 63 Jun 16 21:41 /etc/modules-load.d/lm_sensors.conf
|
Code: |
# cat /etc/modules-load.d/*
drm
drm_kms_helper
# Generated by sensors-detect on Wed Jun 16 21:41:27 2021
jc42
|
however after fresh boot:
Code: |
# lsmod
Module Size Used by
bridge 196608 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
joydev 24576 0
snd_hda_codec_realtek 147456 1
snd_hda_codec_hdmi 61440 1
snd_hda_codec_generic 90112 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
led_class 16384 1 snd_hda_codec_generic
snd_hda_intel 36864 0
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
r8169 98304 0
realtek 24576 1
mdio_devres 16384 1 r8169
sp5100_tco 16384 0
libphy 143360 3 r8169,mdio_devres,realtek
snd_hda_core 86016 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
wmi_bmof 16384 0
ccp 90112 0
i2c_piix4 24576 0
k10temp 16384 0
wmi 28672 1 wmi_bmof
jc42 16384 0
drm_kms_helper 270336 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 565248 1 drm_kms_helper
drm_panel_orientation_quirks 20480 1 drm
agpgart 45056 1 drm
efivarfs 16384 1
|
trying to load the module ends uike this:
Code: |
# sudo modprobe nvidia 2>&1
modprobe: ERROR: could not find module by name='nvidia'
modprobe: ERROR: could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg)
|
here are all the modules:
Code: |
# ll /lib/modules/5.12.12-gentoo/video/nvidia*
-rw-r--r-- 1 root root 104696 Jun 18 18:01 /lib/modules/5.12.12-gentoo/video/nvidia-drm.ko
-rw-r--r-- 1 root root 41486328 Jun 18 18:01 /lib/modules/5.12.12-gentoo/video/nvidia.ko
-rw-r--r-- 1 root root 1522896 Jun 18 18:01 /lib/modules/5.12.12-gentoo/video/nvidia-modeset.ko
-rw-r--r-- 1 root root 1939696 Jun 18 18:01 /lib/modules/5.12.12-gentoo/video/nvidia-uvm.ko
|
if I load drm_kms_helper manually:
Code: |
# sudo modprobe drm_kms_helper 2>&1
# lsmod
Module Size Used by
bridge 196608 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
joydev 24576 0
snd_hda_codec_realtek 147456 1
snd_hda_codec_hdmi 61440 1
snd_hda_codec_generic 90112 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
led_class 16384 1 snd_hda_codec_generic
snd_hda_intel 36864 0
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
r8169 98304 0
realtek 24576 1
mdio_devres 16384 1 r8169
sp5100_tco 16384 0
libphy 143360 3 r8169,mdio_devres,realtek
snd_hda_core 86016 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
wmi_bmof 16384 0
ccp 90112 0
i2c_piix4 24576 0
k10temp 16384 0
wmi 28672 1 wmi_bmof
jc42 16384 0
drm_kms_helper 270336 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 565248 1 drm_kms_helper
drm_panel_orientation_quirks 20480 1 drm
agpgart 45056 1 drm
efivarfs 16384 1
|
and try to load the module again, I get this:
Code: |
# sudo modprobe nvidia 2>&1
modprobe: ERROR: could not find module by name='nvidia'
modprobe: ERROR: could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg)
|
no errors in dmesg, see:
Code: |
# dmesg | egrep -i 'drm|nvidia'
[ 7.629123] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:06:00.1/sound/card0/input6
[ 7.629159] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:06:00.1/sound/card0/input7
[ 7.629186] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:06:00.1/sound/card0/input8
[ 7.629213] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:06:00.1/sound/card0/input9
[ 7.629239] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:06:00.1/sound/card0/input10
[ 7.629267] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:03.1/0000:06:00.1/sound/card0/input11
|
but if I start loading all one by one, I ge this:
Code: |
# Su insmod /lib/modules/5.12.12-gentoo/video/nvidia.ko 2>&1
# lsmod
Module Size Used by
nvidia 34443264 0
bridge 196608 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
joydev 24576 0
snd_hda_codec_realtek 147456 1
snd_hda_codec_hdmi 61440 1
snd_hda_codec_generic 90112 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
led_class 16384 1 snd_hda_codec_generic
snd_hda_intel 36864 0
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
r8169 98304 0
realtek 24576 1
mdio_devres 16384 1 r8169
sp5100_tco 16384 0
libphy 143360 3 r8169,mdio_devres,realtek
snd_hda_core 86016 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
wmi_bmof 16384 0
ccp 90112 0
i2c_piix4 24576 0
k10temp 16384 0
wmi 28672 1 wmi_bmof
jc42 16384 0
drm_kms_helper 270336 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 565248 1 drm_kms_helper
drm_panel_orientation_quirks 20480 1 drm
agpgart 45056 1 drm
efivarfs 16384 1
|
then,
Code: |
# Su insmod /lib/modules/5.12.12-gentoo/video/nvidia-uvm.ko 2>&1
# lsmod
Module Size Used by
nvidia_uvm 1048576 0
nvidia 34443264 1 nvidia_uvm
bridge 196608 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
joydev 24576 0
snd_hda_codec_realtek 147456 1
snd_hda_codec_hdmi 61440 1
snd_hda_codec_generic 90112 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
led_class 16384 1 snd_hda_codec_generic
snd_hda_intel 36864 0
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
r8169 98304 0
realtek 24576 1
mdio_devres 16384 1 r8169
sp5100_tco 16384 0
libphy 143360 3 r8169,mdio_devres,realtek
snd_hda_core 86016 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
wmi_bmof 16384 0
ccp 90112 0
i2c_piix4 24576 0
k10temp 16384 0
wmi 28672 1 wmi_bmof
jc42 16384 0
drm_kms_helper 270336 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 565248 1 drm_kms_helper
drm_panel_orientation_quirks 20480 1 drm
agpgart 45056 1 drm
efivarfs 16384 1
|
almsots done
Code: |
# Su insmod /lib/modules/5.12.12-gentoo/video/nvidia-modeset.ko 2>&1
# lsmod
Module Size Used by
nvidia_modeset 1142784 0
nvidia_uvm 1048576 0
nvidia 34443264 2 nvidia_uvm,nvidia_modeset
bridge 196608 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
joydev 24576 0
snd_hda_codec_realtek 147456 1
snd_hda_codec_hdmi 61440 1
snd_hda_codec_generic 90112 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
led_class 16384 1 snd_hda_codec_generic
snd_hda_intel 36864 0
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
r8169 98304 0
realtek 24576 1
mdio_devres 16384 1 r8169
sp5100_tco 16384 0
libphy 143360 3 r8169,mdio_devres,realtek
snd_hda_core 86016 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
wmi_bmof 16384 0
ccp 90112 0
i2c_piix4 24576 0
k10temp 16384 0
wmi 28672 1 wmi_bmof
jc42 16384 0
drm_kms_helper 270336 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 565248 1 drm_kms_helper
drm_panel_orientation_quirks 20480 1 drm
agpgart 45056 1 drm
efivarfs 16384 1
|
last one:
Code: |
# Su insmod /lib/modules/5.12.12-gentoo/video/nvidia-drm.ko 2>&1
# lsmod
Module Size Used by
nvidia_drm 53248 0
nvidia_modeset 1142784 1 nvidia_drm
nvidia_uvm 1048576 0
nvidia 34443264 2 nvidia_uvm,nvidia_modeset
bridge 196608 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
joydev 24576 0
snd_hda_codec_realtek 147456 1
snd_hda_codec_hdmi 61440 1
snd_hda_codec_generic 90112 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
led_class 16384 1 snd_hda_codec_generic
snd_hda_intel 36864 0
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
r8169 98304 0
realtek 24576 1
mdio_devres 16384 1 r8169
sp5100_tco 16384 0
libphy 143360 3 r8169,mdio_devres,realtek
snd_hda_core 86016 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
wmi_bmof 16384 0
ccp 90112 0
i2c_piix4 24576 0
k10temp 16384 0
wmi 28672 1 wmi_bmof
jc42 16384 0
drm_kms_helper 270336 1 nvidia_drm
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 565248 3 drm_kms_helper,nvidia_drm
drm_panel_orientation_quirks 20480 1 drm
agpgart 45056 1 drm
efivarfs 16384 1
|
and after that I restart the display monitor script and have login.
any ideas? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Last edited by DaggyStyle on Thu Jun 24, 2021 5:24 pm; edited 1 time in total |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2718
|
Posted: Sat Jun 19, 2021 2:28 pm Post subject: |
|
|
Given udev doesn't recognize nvidia modules, the "normal" way to load nvidia drivers is by using nvidia-modprobe -m. It's suid-root and executable by members of the video group, and it's automatically used once an nvidia library needs a module (like if something is trying to use cuda/opencl it'll load nvidia-uvm). Assuming your nvidia-modprobe is functioning normally and you and your display manager are in video group, then there should be no need to do anything.
Code: | $ ls -l /usr/bin/nvidia-modprobe
-rws--x--- 1 root video 39464 Jun 19 09:47 /usr/bin/nvidia-modprobe |
As far as nvidia-drivers go, nothing changed in the way modules are loaded since a few months ago (which changed an udev rule back then, but I doubt it's related). |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Sat Jun 19, 2021 3:31 pm Post subject: |
|
|
Ionen wrote: | Given udev doesn't recognize nvidia modules, the "normal" way to load nvidia drivers is by using nvidia-modprobe -m. It's suid-root and executable by members of the video group, and it's automatically used once an nvidia library needs a module (like if something is trying to use cuda/opencl it'll load nvidia-uvm). Assuming your nvidia-modprobe is functioning normally and you and your display manager are in video group, then there should be no need to do anything.
Code: | $ ls -l /usr/bin/nvidia-modprobe
-rws--x--- 1 root video 39464 Jun 19 09:47 /usr/bin/nvidia-modprobe |
As far as nvidia-drivers go, nothing changed in the way modules are loaded since a few months ago (which changed an udev rule back then, but I doubt it's related). |
can it be a kernel issue? I'll try to load the first kernel I had the driver working _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Jun 24, 2021 5:24 pm Post subject: |
|
|
System.map was missing, after making sure it exists, the modules autoload _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|