Error unable to load the nvidia drm kernel module



Unable to load the nvidia-drm kernel module #9

Comments

jonahbron commented May 24, 2020

I just ran install.sh today and got this error:

Kernel version is 5.4.42-40.lts2019, Clear Linux system version is 33180.

What could cause this?

The text was updated successfully, but these errors were encountered:

lebensterben commented May 24, 2020

I just ran install.sh today and got this error: .

@jonahbron Do you see this error when you run the script or after you run it?

jonahbron commented May 25, 2020

During. Here’s an image.

jonahbron commented May 25, 2020

I managed to get my system back up by uninstalling the NVidia driver and rolling back to kernel lts2018 (instead of the current lts2019).

I think this may be an issue with the driver itself (440.82). I think that may be the case because I’ve tried installing with several different kernel versions, but none of them work. I might try to install an older driver version.

jonahbron commented May 26, 2020

Tried with a different version of the NVidia driver (435.21). No change in behavior, still unable to load nvidia-drm.

jonahbron commented May 26, 2020

I thought a full system wipe might fix it. I reinstalled Clear Linux from scratch with the lts kernel. I’m still getting the same error. Tried with both the native and lts versions.

lebensterben commented May 26, 2020 •

I thought a full system wipe might fix it. I reinstalled Clear Linux from scratch with the lts kernel. I’m still getting the same error. Tried with both the native and lts versions. .

@jonahbron I can reproduce this error.

nvidia-drm is a kernel module required by NVIDIA proprietary driver. During installation, the installer also add a Xorg config file to load this module.

It’s confusing to me that the build log of dkms module says it succeeded and then the next line is an error of missing nvidia-drm.

FanFani4 commented May 26, 2020

i get same error — tried different kernel versions — and none is working, any ideas how to fix this ?

jonahbron commented May 26, 2020 •

Relieved to hear it’s not just me 😄 . I posted about this on the NVidia forums, so watch this thread.

If a solution is found, I’ll update this issue so we can patch the installer script.

My only idea is that I think Clear Linux recently update the GCC version. I wonder if that could be related.

jonahbron commented May 26, 2020

Also created an issue for Clear Linux directly.

FanFani4 commented May 27, 2020

rolling back version fixed issue for me

swupd verify —fix —picky -m 32990

not sure if it is safe to do it that way, but drivers are working 🙂

lebensterben commented May 27, 2020

rolling back version fixed issue for me .

jonahbron commented May 27, 2020

I can afford to wait, so I won’t roll back yet. Hopefully we can use my machine to find the cause.

insilications commented May 28, 2020

Could be because of gcc 10. Someone was saying the problem disappears with gcc 10 test version https://aur.archlinux.org/packages/nvidia-390xx-dkms/

insilications commented May 30, 2020 •

After two days trying to solve this, I’ve finally managed to install 440.82 with the latest kernel-native (custom built with SECTION_MISMATCH_WARN_ONLY). Perhaps nvidia or intel staff will clarify what’s at fault here, but there is some problematic interaction between 5.6.15 kernel vs GCC 10.1 vs nvidia 440.92 installer in 1) creating the proper dkms build and source tree in «/var/lib/dkms/nvidia/440.82/» and 2) issuing the proper install command to the /usr/bin/dkms tool.

Using the following installation command (per https://docs.01.org/clearlinux/latest/tutorials/nvidia.html plus «—no-cc-version-check» just as a guarantee and «—expert» instead of «—silent» for a more verbose installation)

sudo ./NVIDIA-Linux-x86_64-440.82.run
—utility-prefix=/opt/nvidia
—opengl-prefix=/opt/nvidia
—compat32-prefix=/opt/nvidia
—compat32-libdir=lib32
—x-prefix=/opt/nvidia
—x-module-path=/opt/nvidia/lib64/xorg/modules
—x-library-path=/opt/nvidia/lib64
—x-sysconfig-path=/etc/X11/xorg.conf.d
—documentation-prefix=/opt/nvidia
—application-profile-path=/etc/nvidia/nvidia-application-profiles-rc.d
—no-precompiled-interface
—no-distro-scripts
—force-libglx-indirect
—glvnd-egl-config-path=/etc/glvnd/egl_vendor.d
—egl-external-platform-config-path=/etc/egl/egl_external_platform.d
—dkms
—no-cc-version-check
—expert

Using the «—expert» options reveals why the installer issues «ERROR: Unable to load the ‘nvidia-drm’ kernel module» without any explanation at all:

-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the ‘nvidia-drm’ kernel module: ‘modprobe: ERROR: ctx=0x5646828152a0 path=/lib/modules/5.6.15-957.native/kernel/drivers/video/nvidia-modeset.ko error=No such file or directory
modprobe: ERROR: ctx=0x5646828152a0 path=/lib/modules/5.6.15-957.native/kernel/drivers/video/nvidia-modeset.ko error=No such file or directory
modprobe: ERROR: could not insert ‘nvidia_drm’: Unknown symbol in module, or unknown parameter (see dmesg)’

Читайте также:  Error free invalid pointer

The DKMS kernel modules are being built, but they are not being finally installed from the proper build directory to the corresponding kernel modules path. That is why they are not being loaded by modprobe. ls /var/lib/dkms/nvidia/440.82/ reveals the following:

The correct source symlink directory pointing to the nvidia kernel modules sources. And the build symlink directory which after the successful build should hold the resulting binaries, make.log, etc. And that is not happening. build/ is an empty directory. The solution is to manually build and install the dkms nvidia source tree. Here is the fix, after rebuilding the kernel with «SECTION_MISMATCH_WARN_ONLY». Start by installing the driver again, this time with the —silent flag instead of the —expert flag:

sudo ./NVIDIA-Linux-x86_64-440.82.run
—utility-prefix=/opt/nvidia
—opengl-prefix=/opt/nvidia
—compat32-prefix=/opt/nvidia
—compat32-libdir=lib32
—x-prefix=/opt/nvidia
—x-module-path=/opt/nvidia/lib64/xorg/modules
—x-library-path=/opt/nvidia/lib64
—x-sysconfig-path=/etc/X11/xorg.conf.d
—documentation-prefix=/opt/nvidia
—application-profile-path=/etc/nvidia/nvidia-application-profiles-rc.d
—no-precompiled-interface
—no-distro-scripts
—force-libglx-indirect
—glvnd-egl-config-path=/etc/glvnd/egl_vendor.d
—egl-external-platform-config-path=/etc/egl/egl_external_platform.d
—dkms
—no-cc-version-check
—silent

Go to the same /var/lib/dkms/nvidia/440.82/ directory. Enter source/, where dkms.conf and Makefile is. Try this:

sudo dkms autoinstall

All nvidia modules will be successfully build, added and installed. ls /var/lib/dkms/nvidia/440.82/ will now correctly show a proper dkms compilation tree:
source/
5.6.15-957.native/

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED] Nvidia 780M on Asus G750JH — stuttering

[SOLVED] Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Sun Feb 10, 2019 4:28 pm

I freshly installed 19.1 on my Asus G750JH Notebook.
Performance was ok, but I need my lappy for rendering with blender.
So I installed in drivers -> nvidia-driver-410. Rendering was fast, but the complete desktop was stuttering every 2 sec for just a split of a second.
Went to drivers -> nvidia-340. Rendering was fast but same problem as with nvidia-driver-410.

So I downloaded the driver from Nvidia website. Installed «NVIDIA-Linux-x86_64-410.93.run»

Installation was not possible.

So I rebooted. Low resolution desktop awaited me.

I followed every step:

next re-boot your machine.

pop0 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-410:amd64 410.78-0ubuntu1

pop0 amd64 NVIDIA libcompute package

I am now unsure what to do. My problem are gone. Stuttering is gone. Rendering is fast. glxgears runs without stuttering.

But is this how it should be?

Is there everything ok? Should I be worried?

Hope someone can shed light . thanks

Re: Nvidia 780M on Asus G750JH — stuttering

Post by roblm » Sun Feb 10, 2019 8:12 pm

It appears you have a partial Nvidia driver installation of the nvidia-410.93 driver you downloaded from Nvidia’s website. Your inxi output and the log file lists that driver, so you never removed it. The sudo apt-get remove —purge nvidia-* command you used will not remove that driver. It’s for removing drivers installed through the package manager.

That’s why there is no output from this command; there should be 4 kernel modules listed:
ls /lib/modules/`uname -r`/kernel/drivers/char/drm/

The nvidia-installer that comes with a downloaded driver installs the kernel modules in a different location.

Question: You have a laptop with Optimus technology. Did you disable the Intel GPU in the BIOS by selecting the Discrete GPU, instead of Hybrid Graphics?

You reported this error message:

That message can be seen when trying to install the Nvidia driver but the Intel GPU is enabled in the nvidia-prime program. You have to switch to the Nvidia GPU in the Nvidia Settings utility or use the command: sudo prime-select nvidia

For an Optimus laptop, you should use the distro’s package manager to install the Nvidia driver unless you plan on only using the Nvidia GPU. If you want to be able to switch GPUs, then the installation must be modified and is a lot more complicated. The instructions for doing that are in my guide in this topic, under the section:
How to install the Nvidia driver on an Optimus laptop (integrated Intel + Nvidia card)
viewtopic.php?f=59&t=154932&start=20#p847465

I suggest doing these steps:
Use this command in the Terminal to remove the downloaded Nvidia driver: sudo nvidia-installer —uninstall
If you get a black screen after doing that, then press and hold the Alt key and then press, one at a time, the keys R, E, I, S, U, B.

Remove the blacklist-nvidia-nouveau.conf file: sudo rm /etc/modprobe.d/blacklist-nvidia-nouveau.conf

Update the initial ramdisk: sudo update-initramfs -u

Remove other Nvidia files from the 340.107 and 410.78 installations: apt autoremove

Читайте также:  Ubuntu org freedesktop dbus error

Reboot. When you get to the desktop, post the output of inxi -Gx

Re: Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Mon Feb 11, 2019 4:11 am

*** Thanks a lot man for this quick and very detailed info.***

I will follow and reply as soon as possible.

Some answers as far as I can tell so far:
I think this laptop has no optimus graphics. It is more a portable pc. But this machine makes me render my projects quite quickly.

Thanks again and I will report back after work.

Re: Nvidia 780M on Asus G750JH — stuttering

Post by roblm » Mon Feb 11, 2019 8:39 am

If you haven’t done anything yet, then post the output of this command. It’s possible that the nvidia-drm.ko kernel module was the only component that was not installed: ls /lib/modules/`uname -r`/kernel/drivers/video/

Re: Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Mon Feb 11, 2019 3:11 pm

thanks for helping me out. I just came home from work. Have not done anything yet.

Here the output of:

Re: Nvidia 780M on Asus G750JH — stuttering

Post by roblm » Mon Feb 11, 2019 5:25 pm

Use this command to check if that module is loading: lsmod | grep nvidia

If it is the only one that is not loading, then that’s OK because according to the info in this NVIDIA Accelerated Linux Graphics Driver README and Installation Guide, the nvidia-drm.ko module is not needed for your single GPU system:
http://us.download.nvidia.com/XFree86/L . E/kms.html

Sometimes a module that doesn’t load will prevent another one from loading. However, you can try loading it with the command:
sudo modprobe nvidia-drm and then check again with the lsmod | grep nvidia command.

Re: Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Mon Feb 11, 2019 6:02 pm

I spot an «nvidia_drm» . is that the one we are looking for?

I then tried to load it manually as you suggested:

(no output — no errors)

and checked again as you said with:

which is the same output as the one one top.

So the «nvidia _drm» is the same like «nvidia —drm»?

What do you think?

I really have to thank you a lot. You saved me a lot of time. I do not know what I would have done without your good advice .

Re: Nvidia 780M on Asus G750JH — stuttering

Post by roblm » Mon Feb 11, 2019 6:19 pm

The ERROR: Installation has failed message must not have been an actual error. Like I previously said, I’ve only seen that with Optimus systems and the installation was really aborted.

That explains why everything is performing well, so you can leave the nvidia-410.93 driver installed. That driver wasn’t available through the graphics-drivers PPA when I checked yesterday, so that it could be installed through the Driver Manager, but probably will be available soon.

[SOLVED] Re: Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Mon Feb 11, 2019 6:52 pm

Thanks a lot for your great help! Really appreciated.

You have a paypal account so I can stand you a cop of coffee?

Re: [SOLVED] Re: Nvidia 780M on Asus G750JH — stuttering

Post by roblm » Mon Feb 11, 2019 8:00 pm

Thanks but I don’t drink coffee.

I just did an installation of the same nvidia-410.93 driver on one of my testing PCs and got the same result with the naming method used for the kernel modules, so evidently that’s how Nvidia names them, vs the Linux developers:
ls /lib/modules/`uname -r`/kernel/drivers/video/

Re: [SOLVED] Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Tue Feb 12, 2019 4:31 am

Thanks a lot. Really appreciate it.

One funny thing to mention: The little Tasklet (Applet) called «GPU temperature» does not work anymore sine then. But that’s not really a problem for me as far as the rest is working.

Re: [SOLVED] Nvidia 780M on Asus G750JH — stuttering

Post by roblm » Tue Feb 12, 2019 8:45 pm

Re: [SOLVED] Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Wed Feb 13, 2019 6:28 pm

Re: [SOLVED] Nvidia 780M on Asus G750JH — stuttering

Post by roblm » Fri Feb 15, 2019 4:13 pm

Читайте также:  Ошибка event tracing fatal error

I did some further testing to find out the reason for those error messages that were displayed after installing the nvidia-410.93 driver and how to prevent their occurrence from future installations. I also wanted to make sure you are not stuck with an unstable driver installation that prevents the use of the Driver Manager.

You initially installed the nvidia-410.78 driver from the graphics-drivers.PPA. That was uninstalled and the nvidia-340.107 driver was installed.

You then installed the nvidia-410.93 driver, which was downloaded from Nvidia’s website, but did not mention if the nvidia-340.107 driver was uninstalled first. I assumed you did. However, you actually did not, so the «ERROR: Unable to load the ‘nvidia-drm’ kernel module» message resulted from there being two nvidia-drm modules now installed. You then used the command sudo apt-get remove —purge nvidia-*

I don’t know what guide you used for installing downloaded Nvidia drivers but most do not mention that any Nvidia driver already installed through the distro’s package manager should be uninstalled first . My guide does mention that.

If you want to continue installing Nvidia drivers directly from Nvidia’s website, then the 410.78 driver does not need to be uninstalled first. That will be done automatically by the nvidia-installer during the installation of a different driver. You will continue to see those error messages at the end but they are harmless. Normally you would then use the command
sudo service lightdm start , but now you will need to reboot.

If you want to go back to using Driver Manager, them first remove the blacklist-nvidia-nouveau.conf file:
sudo rm /etc/modprobe.d/blacklist-nvidia-nouveau.conf

Update the initial ramdisk: sudo update-initramfs -u

Uninstall the nvidia-410.93 driver: sudo nvidia-installer —uninstall

Reboot. If you get a black screen, then press and hold the Alt key and then press, one at a time, the letters R, E, I, S, U, B.

The desktop will be in Fallback mode and you won’t be able to use Driver Manager.

Usually the nvidia-340 driver installation would install the nvidia-340 libraries and create some file links which would be removed when it was uninstalled, but then the nvidia-410 driver was installed, so it made some changes that now prevents removal of those libraries and links by the apt package manager. The best way to do that now is to re-install the nvidia-340 driver and uninstall it again.

When you use the command apt install nvidia-340 , you will see this:

Use this command to remove libGL.so.1.distrib: sudo rm /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib

Running apt install nvidia-340 again, the significant lines are:

Use this command to remove libEGL.so.1.distrib: sudo rm /usr/lib/x86_64-linux-gnu/libEGL.so.1.distrib

Running apt install nvidia-340 again, the significant lines are:

Use this command to remove libGLESv2.so.2.distrib: sudo rm /usr/lib/x86_64-linux-gnu/libGLESv2.so.2.distrib

Now run the apt install nvidia-340 command again and hopefully it should work. After the installation and rebooting, the Driver Manager should now be working. Then remove that driver and after rebooting, the nouveau driver should be installed.

If you decide to install a driver downloaded from Nvidia’s website, those error messages should be gone and all the normal installation steps can be used.

Re: [SOLVED] Nvidia 780M on Asus G750JH — stuttering

Post by peterling » Sat Feb 16, 2019 4:58 am

It is very nice of you to dig so deep into this problem. But I am too cowardly to go back now to the Driver Manager. I am so happy that it is now running smoothly my fan only running from time to time . my rendering speed is convenient . it cannot really get better.

If I had not had this problems with the Driver Manager and the nvidia-410.78 driver before I would not have installed the nvidia-410.93. But nothing was running smooth and even youtube vids were lagging every

2-3 secs. Fan was running all the time.

But you are right. Looking into the Driver manager all is greyed out now. And it makes me a little worry. But I think I will still leave it as it is.

I am gonna copy your posting on my harddrive just in case. So if I am in trouble I will gonna use it to revert back to Driver Manager.

Thanks again for your very very detailed and excellent troubleshooting!

Источник

Оцените статью
toolgir.ru
Adblock
detector