You are not logged in.

#26 2024-03-10 20:50:29

seth
Member
Registered: 2012-09-03
Posts: 64,355

Re: [SOLVED] Nvidia drivers installed but not loading

Do you think a symlink could work?

Depends on how much you kernel deviates from the 6.6.4-arch build.
You can try.

the wiki wrote:

Consider the Arch build system tools are developed and maintained to make repeatable compilation tasks efficient and safe.

The function there just copies headers into the system.
Symlinking the kernel sources into /lib/modules/6.6.4/build might do (not as a subdirectory, the build dir is the directory containing the kernel sources)

Offline

#27 2024-03-10 21:11:34

eenzaameendje
Member
Registered: 2024-03-04
Posts: 19

Re: [SOLVED] Nvidia drivers installed but not loading

seth wrote:

Symlinking the kernel sources into /lib/modules/6.6.4/build might do (not as a subdirectory, the build dir is the directory containing the kernel sources)

Maybe I got the wrong interpretation of symlinking in this context. I was thinking to do this, following the "journalctl -b" log:

sudo mkdir /lib/modules/6.6.4/updates/dkms/
sudo ln -s /lib/modules/6.6.4/updates/dkms/nvidia.ko.zst /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia.ko.zst

Or this is incorrect?

Offline

#28 2024-03-10 21:18:22

seth
Member
Registered: 2012-09-03
Posts: 64,355

Re: [SOLVED] Nvidia drivers installed but not loading

This would symlink (one of) the nvidia kernel module(s) - what I was talking about there was to effectively install the linux headers for your custom kernel.
But also the oder is wrong

sudo ln -s /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia.ko.zst /lib/modules/6.6.4/updates/dkms/nvidia.ko.zst

(What => Where)

Offline

#29 2024-03-10 21:28:19

eenzaameendje
Member
Registered: 2024-03-04
Posts: 19

Re: [SOLVED] Nvidia drivers installed but not loading

seth wrote:

This would symlink (one of) the nvidia kernel module(s) - what I was talking about there was to effectively install the linux headers for your custom kernel.
But also the oder is wrong

sudo ln -s /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia.ko.zst /lib/modules/6.6.4/updates/dkms/nvidia.ko.zst

(What => Where)

I did the symlink for all the nvidia files from /lib/modules/6.6.4-arch1-1/updates/dkms/ to /lib/modules/6.6.4/updates/dkms/:

sudo ln -s /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-uvm.ko.zst /lib/modules/6.6.4/updates/dkms/nvidia-uvm.ko.zst
sudo ln -s /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-peermem.ko.zst /lib/modules/6.6.4/updates/dkms/nvidia-peermem.ko.zst
sudo ln -s /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-modeset.ko.zst /lib/modules/6.6.4/updates/dkms/nvidia-modeset.ko.zst
sudo ln -s /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-drm.ko.zst /lib/modules/6.6.4/updates/dkms/nvidia-drm.ko.zst

And I rebooted but still not working. Here the journalctl -b log: http://0x0.st/HhQ2.txt

Here the /etc/default/grub just in case:

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nvidia_drm.modeset=1"
GRUB_CMDLINE_LINUX=""
GRUB_EARLY_INITRD_LINUX_CUSTOM="ux6404vi_cirrus_patch.cpio"

Is it possible that I have to rename "quiet nvidia_drm.modeset=1" to "quiet nvidia-drm.modeset=1"?

Offline

#30 2024-03-10 21:42:30

seth
Member
Registered: 2012-09-03
Posts: 64,355

Re: [SOLVED] Nvidia drivers installed but not loading

Mar 10 22:22:47 fabrizio systemd-modules-load[356]: Failed to insert module 'nvidia_uvm': Exec format error
Mar 10 22:22:47 fabrizio kernel: nvidia: version magic '6.6.4-arch1-1 SMP preempt mod_unload ' should be '6.6.4 SMP preempt mod_unload '
Mar 10 22:22:47 fabrizio kernel: nvidia: version magic '6.6.4-arch1-1 SMP preempt mod_unload ' should be '6.6.4 SMP preempt mod_unload '

I forgot about the vermagic… you can modprobe them w/ --force-vermagic, but that's not a great solution.
You'll have to build  the modules for your kernel, it's the cleaner approach anyway.

Offline

#31 2024-03-10 21:50:08

eenzaameendje
Member
Registered: 2024-03-04
Posts: 19

Re: [SOLVED] Nvidia drivers installed but not loading

seth wrote:

Mar 10 22:22:47 fabrizio systemd-modules-load[356]: Failed to insert module 'nvidia_uvm': Exec format error
Mar 10 22:22:47 fabrizio kernel: nvidia: version magic '6.6.4-arch1-1 SMP preempt mod_unload ' should be '6.6.4 SMP preempt mod_unload '
Mar 10 22:22:47 fabrizio kernel: nvidia: version magic '6.6.4-arch1-1 SMP preempt mod_unload ' should be '6.6.4 SMP preempt mod_unload '

I forgot about the vermagic… you can modprobe them w/ --force-vermagic, but that's not a great solution.
You'll have to build  the modules for your kernel, it's the cleaner approach anyway.

I am going to build the modules of my 6.6.4 kernel as you suggest. Do you have any suggestion for a beginner friendly guide on how to do this?

Thanks for your help, you have been hitting really on the nail

Offline

#32 2024-03-10 21:52:32

seth
Member
Registered: 2012-09-03
Posts: 64,355

Re: [SOLVED] Nvidia drivers installed but not loading

As mentioned, symlinking your kernel sources into the lib/modules path as build directory will likely allow dkms to function.
The bestmostideal approach would be  to use the ABS (as referenced in the wiki) and build actual packages for your kernel (and headers)

Offline

#33 2024-03-10 21:56:40

sphraax
Member
Registered: 2020-02-26
Posts: 23

Re: [SOLVED] Nvidia drivers installed but not loading

eenzaameendje wrote:
seth wrote:

Mar 10 22:22:47 fabrizio systemd-modules-load[356]: Failed to insert module 'nvidia_uvm': Exec format error
Mar 10 22:22:47 fabrizio kernel: nvidia: version magic '6.6.4-arch1-1 SMP preempt mod_unload ' should be '6.6.4 SMP preempt mod_unload '
Mar 10 22:22:47 fabrizio kernel: nvidia: version magic '6.6.4-arch1-1 SMP preempt mod_unload ' should be '6.6.4 SMP preempt mod_unload '

I forgot about the vermagic… you can modprobe them w/ --force-vermagic, but that's not a great solution.
You'll have to build  the modules for your kernel, it's the cleaner approach anyway.

I am going to build the modules of my 6.6.4 kernel as you suggest. Do you have any suggestion for a beginner friendly guide on how to do this?

Thanks for your help, you have been hitting really on the nail

What do you see when you run this?

modinfo nvidia

Then try to run

modprobe nvidia

Offline

#34 2024-03-11 08:46:19

eenzaameendje
Member
Registered: 2024-03-04
Posts: 19

Re: [SOLVED] Nvidia drivers installed but not loading

seth wrote:

As mentioned, symlinking your kernel sources into the lib/modules path as build directory will likely allow dkms to function.
The bestmostideal approach would be  to use the ABS (as referenced in the wiki) and build actual packages for your kernel (and headers)

Let me see if I understood you correctly. Would these steps do what you mean?

cd ~
mkdir kernelbuild
cd kernelbuild
wget https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.6.4.tar.gz
tar xzvf linux-6.6.4.tar.gz
cd linux-6.6.4
make mrproper
zcat /proc/config.gz > .config
make -j8
ln -s /usr/lib/modules/6.6.4/build ~/kernelbuild/linux-6.6.4

But what about the folder /usr/lib/modules/6.6.4/updates/dkms, where I created the symlinks for the nvidia modules before? I mean this:

ls -l /usr/lib/modules/6.6.4/updates/dkms/
total 8
lrwxrwxrwx 1 root root 57 Mar 10 22:21 nvidia-drm.ko.zst -> /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-drm.ko.zst
lrwxrwxrwx 1 root root 53 Mar 10 22:21 nvidia.ko.zst -> /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia.ko.zst
lrwxrwxrwx 1 root root 61 Mar 10 22:21 nvidia-modeset.ko.zst -> /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-modeset.ko.zst
lrwxrwxrwx 1 root root 61 Mar 10 22:22 nvidia-peermem.ko.zst -> /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-peermem.ko.zst
lrwxrwxrwx 1 root root 57 Mar 10 22:22 nvidia-uvm.ko.zst -> /lib/modules/6.6.4-arch1-1/updates/dkms/nvidia-uvm.ko.zst

Should "rm -R /usr/lib/modules/6.6.4/updates"?

EDIT: typo and added question

Last edited by eenzaameendje (2024-03-11 08:49:29)

Offline

#35 2024-03-11 09:36:28

seth
Member
Registered: 2012-09-03
Posts: 64,355

Re: [SOLVED] Nvidia drivers installed but not loading

Certainly remove the kernel modules you linked there, nb. that you apparenly had a build path in place, make sure /usr/lib/modules/6.6.4/build has the proper content (eg. .config) and not just  a symlink inside.
You want the build directory to be the symlink.

Edit: afterwards you'll still have to test dkms.
Going on, I highly recommend to use the ABS next time you need/want to rebuild the kernel

Last edited by seth (2024-03-11 09:37:14)

Offline

#36 2024-03-11 09:42:18

eenzaameendje
Member
Registered: 2024-03-04
Posts: 19

Re: [SOLVED] Nvidia drivers installed but not loading

seth wrote:

Certainly remove the kernel modules you linked there, nb. that you apparenly had a build path in place, make sure /usr/lib/modules/6.6.4/build has the proper content (eg. .config) and not just  a symlink inside.
You want the build directory to be the symlink.

Edit: afterwards you'll still have to test dkms.
Going on, I highly recommend to use the ABS next time you need/want to rebuild the kernel

I just did the following:

sudo rm -R /usr/lib/modules/6.6.4/updates

And then to double check what you said:

ls -l /usr/lib/modules/6.6.4/

total 6660
lrwxrwxrwx  1 root root      38 Dec  8 22:12 build -> /home/fabrizio/kernelbuild/linux-6.6.4
drwxr-xr-x 13 root root    4096 Dec  8 22:12 kernel
-rw-r--r--  1 root root 1528092 Dec 10 13:05 modules.alias
-rw-r--r--  1 root root 1512675 Dec 10 13:05 modules.alias.bin
-rw-r--r--  1 root root    7882 Dec  8 22:12 modules.builtin
-rw-r--r--  1 root root    7731 Dec 10 13:05 modules.builtin.alias.bin
-rw-r--r--  1 root root    9666 Dec 10 13:05 modules.builtin.bin
-rw-r--r--  1 root root   71711 Dec  8 22:12 modules.builtin.modinfo
-rw-r--r--  1 root root  814056 Dec 10 13:05 modules.dep
-rw-r--r--  1 root root 1073518 Dec 10 13:05 modules.dep.bin
-rw-r--r--  1 root root     427 Dec 10 13:05 modules.devname
-rw-r--r--  1 root root  243014 Dec  8 22:12 modules.order
-rw-r--r--  1 root root    2419 Dec 10 13:05 modules.softdep
-rw-r--r--  1 root root  683584 Dec 10 13:05 modules.symbols
-rw-r--r--  1 root root  835312 Dec 10 13:05 modules.symbols.bin

then "ls -la /usr/lib/modules/6.6.4/build/":

total 403776
drwxr-xr-x  26 fabrizio fabrizio     4096 Mar 11 09:29 .
drwxr-xr-x   3 fabrizio fabrizio     4096 Mar 11 09:44 ..
drwxr-xr-x  25 fabrizio fabrizio     4096 Mar 11 09:30 arch
drwxr-xr-x   3 fabrizio fabrizio    12288 Mar 11 08:43 block
-rw-r--r--   1 fabrizio fabrizio   234084 Mar 11 09:26 built-in.a
-rw-r--r--   1 fabrizio fabrizio      472 Mar 11 09:26 .built-in.a.cmd
drwxr-xr-x   2 fabrizio fabrizio     4096 Mar 11 08:40 certs
-rw-r--r--   1 fabrizio fabrizio        0 Mar 11 08:40 .checked-atomic-arch-fallback.h
-rw-r--r--   1 fabrizio fabrizio      465 Mar 11 08:40 ..checked-atomic-arch-fallback.h.cmd
-rw-r--r--   1 fabrizio fabrizio        0 Mar 11 08:40 .checked-atomic-instrumented.h
-rw-r--r--   1 fabrizio fabrizio      460 Mar 11 08:40 ..checked-atomic-instrumented.h.cmd
-rw-r--r--   1 fabrizio fabrizio        0 Mar 11 08:40 .checked-atomic-long.h
-rw-r--r--   1 fabrizio fabrizio      420 Mar 11 08:40 ..checked-atomic-long.h.cmd
-rw-r--r--   1 fabrizio fabrizio    20561 Dec  3 07:33 .clang-format
-rw-r--r--   1 fabrizio fabrizio       59 Dec  3 07:33 .cocciconfig
-rw-r--r--   1 fabrizio fabrizio   266655 Mar 11 08:40 .config
-rw-r--r--   1 fabrizio fabrizio   266653 Mar 11 08:38 .config.old
-rw-r--r--   1 fabrizio fabrizio      496 Dec  3 07:33 COPYING
-rw-r--r--   1 fabrizio fabrizio   102435 Dec  3 07:33 CREDITS
drwxr-xr-x   4 fabrizio fabrizio    36864 Mar 11 09:34 crypto
drwxr-xr-x  76 fabrizio fabrizio     4096 Dec  3 07:33 Documentation
drwxr-xr-x 143 fabrizio fabrizio     4096 Mar 11 09:26 drivers
drwxr-xr-x  81 fabrizio fabrizio    12288 Mar 11 09:34 fs
-rw-r--r--   1 fabrizio fabrizio      151 Dec  3 07:33 .get_maintainer.ignore
-rw-r--r--   1 fabrizio fabrizio      105 Dec  3 07:33 .gitattributes
-rw-r--r--   1 fabrizio fabrizio     2087 Dec  3 07:33 .gitignore
drwxr-xr-x  33 fabrizio fabrizio     4096 Mar 11 08:40 include
drwxr-xr-x   2 fabrizio fabrizio     4096 Mar 11 09:26 init
drwxr-xr-x   2 fabrizio fabrizio     4096 Mar 11 08:42 io_uring
drwxr-xr-x   2 fabrizio fabrizio     4096 Mar 11 08:40 ipc
-rw-r--r--   1 fabrizio fabrizio     2573 Dec  3 07:33 Kbuild
-rw-r--r--   1 fabrizio fabrizio      555 Dec  3 07:33 Kconfig
drwxr-xr-x  22 fabrizio fabrizio    12288 Mar 11 09:34 kernel
drwxr-xr-x  21 fabrizio fabrizio    20480 Mar 11 09:34 lib
drwxr-xr-x   6 fabrizio fabrizio     4096 Dec  3 07:33 LICENSES
-rw-r--r--   1 fabrizio fabrizio    36608 Dec  3 07:33 .mailmap
-rw-r--r--   1 fabrizio fabrizio   726660 Dec  3 07:33 MAINTAINERS
-rw-r--r--   1 fabrizio fabrizio    67432 Dec  3 07:33 Makefile
-rw-r--r--   1 fabrizio fabrizio      683 Mar 11 08:40 .missing-syscalls.d
drwxr-xr-x   6 fabrizio fabrizio    16384 Mar 11 09:34 mm
-rw-r--r--   1 fabrizio fabrizio     7882 Mar 11 09:26 modules.builtin
-rw-r--r--   1 fabrizio fabrizio      184 Mar 11 09:26 .modules.builtin.cmd
-rw-r--r--   1 fabrizio fabrizio    71711 Mar 11 09:26 modules.builtin.modinfo
-rw-r--r--   1 fabrizio fabrizio      101 Mar 11 09:26 .modules.builtin.modinfo.cmd
-rw-r--r--   1 fabrizio fabrizio   195078 Mar 11 09:26 modules.order
-rw-r--r--   1 fabrizio fabrizio      645 Mar 11 09:26 .modules.order.cmd
-rw-r--r--   1 fabrizio fabrizio  1940493 Mar 11 09:26 Module.symvers
-rw-r--r--   1 fabrizio fabrizio      107 Mar 11 09:26 .Module.symvers.cmd
drwxr-xr-x  73 fabrizio fabrizio     4096 Mar 11 09:04 net
-rw-r--r--   1 fabrizio fabrizio      727 Dec  3 07:33 README
drwxr-xr-x   7 fabrizio fabrizio     4096 Dec  3 07:33 rust
-rw-r--r--   1 fabrizio fabrizio      369 Dec  3 07:33 .rustfmt.toml
drwxr-xr-x  41 fabrizio fabrizio     4096 Dec  3 07:33 samples
drwxr-xr-x  17 fabrizio fabrizio     4096 Mar 11 08:40 scripts
drwxr-xr-x  14 fabrizio fabrizio     4096 Mar 11 08:42 security
drwxr-xr-x  27 fabrizio fabrizio     4096 Mar 11 09:34 sound
-rw-r--r--   1 fabrizio fabrizio  7879474 Mar 11 09:27 System.map
-rwxr-xr-x   1 fabrizio fabrizio 96115264 Mar 11 09:26 .tmp_vmlinux.kallsyms1
-rw-r--r--   1 fabrizio fabrizio  3623224 Mar 11 09:27 .tmp_vmlinux.kallsyms1.o
-rw-r--r--   1 fabrizio fabrizio 28462182 Mar 11 09:27 .tmp_vmlinux.kallsyms1.S
-rw-r--r--   1 fabrizio fabrizio  7879474 Mar 11 09:27 .tmp_vmlinux.kallsyms1.syms
-rwxr-xr-x   1 fabrizio fabrizio 98212440 Mar 11 09:27 .tmp_vmlinux.kallsyms2
-rw-r--r--   1 fabrizio fabrizio  3623224 Mar 11 09:27 .tmp_vmlinux.kallsyms2.o
-rw-r--r--   1 fabrizio fabrizio 28462182 Mar 11 09:27 .tmp_vmlinux.kallsyms2.S
-rw-r--r--   1 fabrizio fabrizio  7879474 Mar 11 09:27 .tmp_vmlinux.kallsyms2.syms
drwxr-xr-x  43 fabrizio fabrizio     4096 Dec  3 07:33 tools
drwxr-xr-x   4 fabrizio fabrizio     4096 Mar 11 08:40 usr
-rw-r--r--   1 fabrizio fabrizio        2 Mar 11 09:26 .version
drwxr-xr-x   4 fabrizio fabrizio     4096 Mar 11 08:43 virt
-rwxr-xr-x   1 fabrizio fabrizio 59095968 Mar 11 09:27 vmlinux
-rw-r--r--   1 fabrizio fabrizio   239700 Mar 11 09:26 vmlinux.a
-rw-r--r--   1 fabrizio fabrizio      216 Mar 11 09:26 .vmlinux.a.cmd
-rw-r--r--   1 fabrizio fabrizio      912 Mar 11 09:27 .vmlinux.cmd
-rw-r--r--   1 fabrizio fabrizio   583920 Mar 11 09:26 .vmlinux.export.c
-rw-r--r--   1 fabrizio fabrizio  5888920 Mar 11 09:26 .vmlinux.export.o
-rw-r--r--   1 fabrizio fabrizio     4984 Mar 11 09:26 ..vmlinux.export.o.cmd
-rw-r--r--   1 fabrizio fabrizio 84400904 Mar 11 09:26 vmlinux.o
-rw-r--r--   1 fabrizio fabrizio      385 Mar 11 09:26 .vmlinux.o.cmd

"sudo pacman -S nvidia-dkms":

warning: nvidia-dkms-550.54.14-4 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-dkms-550.54.14-4

Total Installed Size:  68.15 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                     [####################] 100%
(1/1) checking package integrity                   [####################] 100%
(1/1) loading package files                        [####################] 100%
(1/1) checking for file conflicts                  [####################] 100%
(1/1) checking available disk space                [####################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/550.54.14 -k 6.6.4
:: Processing package changes...
(1/1) reinstalling nvidia-dkms                     [####################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Install DKMS modules
==> dkms install --no-depmod nvidia/550.54.14 -k 6.6.4
==> dkms install --no-depmod nvidia/550.54.14 -k 6.6.4-arch1-1
==> depmod 6.6.4-arch1-1
==> depmod 6.6.4
(3/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux664.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: Deprecated option 'ALL_microcode' found. Update '/etc/mkinitcpio.d/linux664.preset' to use the 'microcode' hook instead.
  -> -k /boot/vmlinuz-linux664 -g /boot/initramfs-linux664.img
==> Starting build: '6.6.4'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux664.img'
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux664.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: No image or UKI specified. Skipping image 'fallback'
(4/4) Update Nvidia module in initcpio
==> Building image from preset: /etc/mkinitcpio.d/linux664.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: Deprecated option 'ALL_microcode' found. Update '/etc/mkinitcpio.d/linux664.preset' to use the 'microcode' hook instead.
  -> -k /boot/vmlinuz-linux664 -g /boot/initramfs-linux664.img
==> Starting build: '6.6.4'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux664.img'
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux664.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: No image or UKI specified. Skipping image 'fallback'

and "sudo dkms remove --no-depmod nvidia/550.54.14 -k 6.6.4-arch1-1" to remove the nvidia modules from the kernel 6.6.4-arch1-1 that I previously installed:

Module nvidia-550.54.14 for kernel 6.6.4-arch1-1 (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.6.4-arch1-1/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-uvm.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.6.4-arch1-1/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-modeset.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.6.4-arch1-1/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-drm.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.6.4-arch1-1/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-peermem.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.6.4-arch1-1/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...

Does this make sense now?

EDIT: added more commands

Last edited by eenzaameendje (2024-03-11 10:00:46)

Offline

#37 2024-03-11 10:09:13

eenzaameendje
Member
Registered: 2024-03-04
Posts: 19

Re: [SOLVED] Nvidia drivers installed but not loading

OMG now it is working!!!

"nvidia-smi -l"

Mon Mar 11 11:05:24 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14              Driver Version: 550.54.14      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4070 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   44C    P8              1W /   35W |     452MiB /   8188MiB |      9%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      3427      G   /usr/lib/Xorg                                 248MiB |
|    0   N/A  N/A      3585      G   /usr/bin/gnome-shell                          182MiB |
|    0   N/A  N/A      4945      G   /usr/lib/epiphany-search-provider               2MiB |
|    0   N/A  N/A      5574      G   /usr/bin/alacritty                              9MiB |
+-----------------------------------------------------------------------------------------+

For the next time that I have to compile my own kernel again and patch it to make the audio work, do you recommend me to avoid the Traditional compilation and instead do the Arch build system? What is the advantage of doing this?

Offline

#38 2024-03-11 13:43:54

seth
Member
Registered: 2012-09-03
Posts: 64,355

Re: [SOLVED] Nvidia drivers installed but not loading

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

The benefit of using the package manager is package management wink
You get a kernel in the system that might resolve/fulfill other dependencies, it's easier to remove, you get to install the headers w/o having to keep the sources and in your specifica case you could have used the arch headers for dkms.

Offline

Board footer

Powered by FluxBB