Can somebody please help me find nvidia-drm module for nvidia-340

Hello, the nvidia-drm module is literally missing. Please help.

$ sudo journalctl -p 3 -xb
Aug 12 17:45:34 HELLRIDER systemd-modules-load[218]: Failed to find module 'nvidia-drm'
$ inxi -SGazy

System:
  Kernel: 5.10.56-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/vmlinuz-5.10-x86_64
  root=UUID=22ad1895-9134-4c0c-91c8-e5e48d526261 rw quiet
  resume=UUID=8d2b2432-28a4-4a0a-9378-689e7e1a1499 udev.log_priority=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Graphics:
  Device-1: Intel Core Processor Integrated Graphics vendor: ASUSTeK
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0046 class-ID: 0300
  Device-2: NVIDIA GT216M [GeForce GT 325M] vendor: ASUSTeK driver: nvidia
  v: 340.108 alternate: nouveau bus-ID: 01:00.0 chip-ID: 10de:0a35
  class-ID: 0300
  Device-3: IMC Networks 2M Integrated Webcam type: USB driver: uvcvideo
  bus-ID: 1-1.2:3 chip-ID: 13d3:5122 class-ID: 0e02
  Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver:
  loaded: modesetting,nvidia display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.7x9.4")
  s-diag: 485mm (19.1")
  Monitor-1: LVDS-1-1 res: 1600x900 hz: 60 dpi: 106
  size: 382x215mm (15.0x8.5") diag: 438mm (17.3")
  OpenGL: renderer: GeForce GT 325M/PCIe/SSE2 v: 3.3.0 NVIDIA 340.108
  direct render: Yes
$ lsmod | rg nvidia

nvidia              10604544  43
drm                   569344  7 drm_kms_helper,nvidia,i915
agpgart                53248  4 intel_agp,intel_gtt,nvidia,drm
$ fd 'nvidia-drm' /

/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
/var/tmp/pamac-build-goran/nvidia-340xx-utils/nvidia-drm-outputclass.conf
/etc/modprobe.d/nvidia-drm.conf

I did this tutorial.

First uninstalled everything and installed from AUR all for nvidia-340xx and the dkms - rebooted and nothing.
Then uninstalled again and followed the tutorial - rebooted and again nothing.

Is the module in some of the packages and how can I extract it ??

Thanks…

Hello @GokuSan :wink:

Check this folder:

find /usr/lib/modules/$(uname -r)/extramodules/ -name "nvidia*"

and please post this content:

cat /etc/modprobe.d/nvidia-drm.conf

However… I would rather say it is nvidia_drm and not nvidia-drm.

Hi :slight_smile:

$ find /usr/lib/modules/$(uname -r)/extramodules/ -name "nvidia*  # its empty.
$

However if I check manually

$ la /usr/lib/modules/5.10.56-1-MANJARO/extramodules/
.  ..  version  # Only this file is present.
$ cat /etc/modprobe.d/nvidia-drm.conf
options nvidia_drm modeset=1

For example

modinfo nvidia_drm

will show you the path… if not there try nvidia

$ modinfo nvidia_drm
modinfo: ERROR: Module nvidia_drm not found.
$ modinfo nvidia
filename:       /lib/modules/5.10.56-1-MANJARO/kernel/drivers/video/nvidia.ko.xz

Nvidia and nvidia-uvm exist.

$ fd 'nvidia-uvm' /
/usr/lib/modules/5.4.138-1-MANJARO/kernel/drivers/video/nvidia-uvm.ko.xz
/usr/lib/modules/5.10.56-1-MANJARO/kernel/drivers/video/nvidia-uvm.ko.xz
/var/lib/dkms/nvidia/340.108/5.10.56-1-MANJARO/x86_64/module/nvidia-uvm.ko.xz
/var/lib/dkms/nvidia/340.108/5.4.138-1-MANJARO/x86_64/module/nvidia-uvm.ko.xz

@megavolt I just recompiled the driver through dkms. This is the short output of the log

$ vim /var/lib/dkms/nvidia/340.108/5.10.56-1-MANJARO/x86_64/log/make.log

DKMS make.log for nvidia-340.108 for kernel 5.10.56-1-MANJARO (x86_64)
Thu 12 Aug 20:54:01 CEST 2021
NVIDIA: calling KBUILD...
make[1]: Entering directory '/usr/lib/modules/5.10.56-1-MANJARO/build'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)

Can this help you, help me :slight_smile:
Colud this be the culprit for me not having the nvidia-drm module ?? :thinking:

I searched a bit… could it not be the simple fact that v340.108 just don’t have nvidia_drm? nvidia_drm was at that time not there as I remember… Maybe I am wrong.

If I search it:

KMS site:https://download.nvidia.com/XFree86/Linux-x86_64/340.108/README/ at DuckDuckGo

I get no result.

If I search it like this:

KMS site:https://download.nvidia.com/XFree86/Linux-x86_64/ at DuckDuckGo

The earliest version is 390 which documented KMS and therefore nvidia_drm.

So my conclusion: Below v390 has no nvidia_drm (KMS).

Hello, have a :coffee: am buying :slight_smile:

I had the module prior to 19.Dec.2020. It was working. I accidentally deleted my /usr directory and after I reinstalled everything, the module was gone.
Since than I had one post about it, but it wasn’t solved. This is my second post about it in hopes that I resolve the issue and find the module. There must be someone on this forum that uses the nvidia-340 with this module.In the meantime I’ll keep looking if I missed something.