Re-installation of the nvidia-dkms-kmod drivers. One warning, an error, but completed okay.
[lao@openmandriva-x8664 ~]$ supergfxctl -g
hybrid
[lao@openmandriva-x8664 ~]$ supergfxctl -S
suspended
[lao@openmandriva-x8664 ~]$ lsmod | grep nvidia
nvidia_uvm 1679360 0
nvidia_drm 73728 3
nvidia_modeset 1515520 2 nvidia_drm
nvidia 61435904 310 nvidia_uvm,nvidia_modeset
drm_kms_helper 212992 4 drm_display_helper,amdgpu,nvidia_drm
drm 671744 42 gpu_sched,drm_kms_helper,drm_display_helper,nvidia,drm_buddy,amdgpu,drm_ttm_helper,nvidia_drm,ttm
video 57344 3 asus_wmi,amdgpu,nvidia_modeset
i2c_core 114688 13 i2c_designware_platform,videodev,i2c_hid,i2c_designware_core,drm_kms_helper,i2c_algo_bit,drm_display_helper,nvidia,amdgpu,i2c_hid_acpi,i2c_piix4,i2c_dev,drm
[lao@openmandriva-x8664 ~]$ sudo dnf reinstall nvidia-dkms-kmod
[sudo] password for lao:
Last metadata expiration check: 0:03:21 ago on Sun 15 Jan 2023 17:17:57 GMT.
Dependencies resolved.
=======================================================================================================
Package Architecture Version Repository Size
=======================================================================================================
Reinstalling:
nvidia-dkms-kmod znver1 525.78.01-1 rolling-znver1-non-free 117 M
Transaction Summary
=======================================================================================================
Total download size: 117 M
Installed size: 260 M
Is this ok [y/N]: y
Downloading Packages:
nvidia-dkms-kmod-525.78.01-1-omv2301.znver1.rpm 4.5 MB/s | 117 MB 00:26
-------------------------------------------------------------------------------------------------------
Total 4.5 MB/s | 117 MB 00:26
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Reinstalling : nvidia-dkms-kmod-525.78.01-1.znver1 1/2
Running scriptlet: nvidia-dkms-kmod-525.78.01-1.znver1 1/2
Warning: I do not know how to handle 525.78.01.
Error! Arguments <module> and <module-version> are not specified
Usage: add <module>/<module-version> or
add -m <module>/<module-version> or
add -m <module> -v <module-version>
Creating symlink /var/lib/dkms/nvidia/525.78.01/source ->
/usr/src/nvidia-525.78.01
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' -j2 module SYSSRC=/lib/modules/6.1.4-desktop-1omv2301/build IGNORE_XEN_PRESENCE=1 IGNORE_PREEMPT_RT_PRESENCE=1 IGNORE_CC_MISMATCH=1........................................
/sbin/dkms: line 1452: /var/lib/dkms/nvidia/525.78.01///module/symvers.gz: No such file or directory
cleaning build area...
DKMS: build completed.
nvidia.ko.zst:
Running module version sanity check.
- Original module
- Found /lib/modules/6.1.4-desktop-1omv2301/kernel/drivers/video/nvidia/nvidia.ko
- Storing in /var/lib/dkms/nvidia/original_module/6.1.4-desktop-1omv2301/znver1/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-modeset.ko.zst:
Running module version sanity check.
- Original module
- Found /lib/modules/6.1.4-desktop-1omv2301/kernel/drivers/video/nvidia/nvidia-modeset.ko
- Storing in /var/lib/dkms/nvidia/original_module/6.1.4-desktop-1omv2301/znver1/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-drm.ko.zst:
Running module version sanity check.
- Original module
- Found /lib/modules/6.1.4-desktop-1omv2301/kernel/drivers/video/nvidia/nvidia-drm.ko
- Storing in /var/lib/dkms/nvidia/original_module/6.1.4-desktop-1omv2301/znver1/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-uvm.ko.zst:
Running module version sanity check.
- Original module
- Found /lib/modules/6.1.4-desktop-1omv2301/kernel/drivers/video/nvidia/nvidia-uvm.ko
- Storing in /var/lib/dkms/nvidia/original_module/6.1.4-desktop-1omv2301/znver1/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-peermem.ko.zst:
Running module version sanity check.
- Original module
- Found /lib/modules/6.1.4-desktop-1omv2301/kernel/drivers/video/nvidia/nvidia-peermem.ko
- Storing in /var/lib/dkms/nvidia/original_module/6.1.4-desktop-1omv2301/znver1/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/6.1.4-desktop-1omv2301/extra/
depmod...
DKMS: install completed.
Running scriptlet: nvidia-dkms-kmod-525.78.01-1.znver1 2/2
-------- Uninstall Beginning --------
Module: nvidia
Version: 525.78.01
Kernel: 6.1.4-desktop-1omv2301 (znver1)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
nvidia.ko.zst:
- Uninstallation
- Deleting from: /lib/modules/6.1.4-desktop-1omv2301/extra/
- Original module
- Archived original module found in the DKMS tree
- Moving it to: /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-modeset.ko.zst:
- Uninstallation
- Deleting from: /lib/modules/6.1.4-desktop-1omv2301/extra/
- Original module
- Archived original module found in the DKMS tree
- Moving it to: /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-drm.ko.zst:
- Uninstallation
- Deleting from: /lib/modules/6.1.4-desktop-1omv2301/extra/
- Original module
- Archived original module found in the DKMS tree
- Moving it to: /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-uvm.ko.zst:
- Uninstallation
- Deleting from: /lib/modules/6.1.4-desktop-1omv2301/extra/
- Original module
- Archived original module found in the DKMS tree
- Moving it to: /lib/modules/6.1.4-desktop-1omv2301/extra/
nvidia-peermem.ko.zst:
- Uninstallation
- Deleting from: /lib/modules/6.1.4-desktop-1omv2301/extra/
- Original module
- Archived original module found in the DKMS tree
- Moving it to: /lib/modules/6.1.4-desktop-1omv2301/extra/
depmod...
Removing original_module from DKMS tree for kernel 6.1.4-desktop-1omv2301 (znver1)
DKMS: uninstall completed.
egrep: warning: egrep is obsolescent; using grep -E
------------------------------
Deleting module version: 525.78.01
completely from the DKMS tree.
------------------------------
Done.
Cleanup : nvidia-dkms-kmod-525.78.01-1.znver1 2/2
Verifying : nvidia-dkms-kmod-525.78.01-1.znver1 1/2
Verifying : nvidia-dkms-kmod-525.78.01-1.znver1 2/2
Reinstalled:
nvidia-dkms-kmod-525.78.01-1.znver1
Complete!
[lao@openmandriva-x8664 ~]$
Very weird result now. Having done sudo dnf remove nvidia-dkms-kmod and rebooting, I am left here:
[lao@openmandriva-x8664 ~]$ supergfxctl -g
hybrid
[lao@openmandriva-x8664 ~]$ supergfxctl -S
active
[lao@openmandriva-x8664 ~]$ supergfxctl -S
active
[lao@openmandriva-x8664 ~]$ lsmod | grep nvidia
nvidia_uvm 1679360 0
nvidia_drm 73728 1
nvidia_modeset 1515520 1 nvidia_drm
nvidia 61435904 2 nvidia_uvm,nvidia_modeset
drm_kms_helper 212992 4 drm_display_helper,amdgpu,nvidia_drm
drm 671744 42 gpu_sched,drm_kms_helper,drm_display_helper,nvidia,drm_buddy,amdgpu,drm_ttm_helper,nvidia_drm,ttm
video 57344 3 asus_wmi,amdgpu,nvidia_modeset
i2c_core 114688 13 i2c_designware_platform,videodev,i2c_hid,i2c_designware_core,drm_kms_helper,i2c_algo_bit,drm_display_helper,nvidia,amdgpu,i2c_hid_acpi,i2c_piix4,i2c_dev,drm
[lao@openmandriva-x8664 ~]$ sudo dnf remove nvidia-dkms-kmod
No match for argument: nvidia-dkms-kmod
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
[lao@openmandriva-x8664 ~]$ supergfxctl -S
active
It doesnāt think that the nvidia dkms package is installed, but I have nvidia modules loaded, and the dGPU wonāt suspend. If I canāt fix the dGPU suspending, then Iāll have to re-install.
EDIT: That could be supergfxctl loading the kernel modules, so maybe not so weird.
I donāt know if it may be relevant or useful is some way, but I just wanted to let you know that after installing dkms nvidia drivers my system log shows the following messages at boot. These messages were not present when I installed drivers in the standard way.
|16/01/23 06:50|systemd-udevd|/usr/lib/udev/rules.d/60-nvidia.rules:2 Invalid value /usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 255' for RUN (char 61: invalid substitution type), ignoring.|
|---|---|---|
|16/01/23 06:50|systemd-udevd|/usr/lib/udev/rules.d/60-nvidia.rules:3 Invalid value /usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f 4); do /usr/bin/mknod -Z -m 666 /dev/nvidia${i} c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) ${i}; done' for RUN (char 28: invalid substitution type), ignoring.|
|16/01/23 06:50|systemd-udevd|/usr/lib/udev/rules.d/60-nvidia.rules:4 Invalid value /usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidia-modeset c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 254' for RUN (char 66: invalid substitution type), ignoring.|
|16/01/23 06:50|systemd-udevd|/usr/lib/udev/rules.d/60-nvidia.rules:5 Invalid value /usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0' for RUN (char 62: invalid substitution type), ignoring.|
|16/01/23 06:50|systemd-udevd|/usr/lib/udev/rules.d/60-nvidia.rules:6 Invalid value /usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidia-uvm-tools c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 1' for RUN (char 68: invalid substitution type), ignoring.|
Moderator: Changed post to show code as code. This makes it easier to read as you can see. How to do that is here.
This should get a bug report. If you and @Marco both include your information there that makes it even better and makes it a confirmed bug or maybe bugs report.
Unfortunate Yāall are seeing these errors. This is exactly why we needed users testing, with information like this there is a chance of getting some issues fixed, making things better for folks with nvidia hardware.
Iāve added my errors as a comment on the issue. Github nickname is m0nk3h.
The weird thing is, there doesnāt seem (on my system at least) any missing functionality with the dkms drivers. Iāve tried poking around in the various folders mentioned in the error, but no eureka moment.
I do not know if it is somehow related to dkms nvidia drivers, but my system cannot boot in console or maintenance mode. The screen shows the boot background image and wonāt change.
The same happens if I change runlevel to 1 in bash.
Iād like to perform a file system check, but I am stuck at the moment.
It should not matter since video/graphic part of system should not be started.
Anyway an easy way to boot to maintenance mode:
When you get to grub2 menu while on the ānormalā boot line press āeā for edit. Navigate down to the Linux line, press āendā key to go to end of line. Type a space and ā3ā. (For run level 3.) Then press F-10 to boot.
Let us know if that works and the other stuff needs to be investigated but I am not sure how to do that.
Edit: As far as we know this is related to either the nvidia dkms packages or nvidia packages somehow. But we need to confirm that somehow perhaps by removing the nivdia stuff and seeing if maintenance mode, console mode, or run level ā3ā works.
I just checked my ROME with AMD graphics so no nvidia anything. Booting to console mode works but there is a delay before it will login to root. Booting to run level 3 works and logs in to root right away. Booting to recovery mode boots to graphical desktop which seems wrong but not sure.
So this should get a bug report. This would be a pretty significant bug.
To get logs of this you need to get logs of previous boot. To get the log of last boot before current boot:
$ sudo journalctl -b -1
In other words 0 would be current boot, -1 previous, -2 the one before -1 and so on. We can hope those log will show something useful.
Edit: You can see this more clearly with this command:
$ sudo journalctl --list-boots
Any user interested in know more about journal logs can read this. Or you can find other articles about Linux journal online with your own search.