I am pleased to help as far as I can.
I will carry on using dkms, so let me know if you need me to do more specific tests.
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.
Giving it a bash with the nvidia-legacy drivers. Installation -
[lao@openmandriva-x8664 ~]$ sudo dnf --refresh in nvidia-legacy-dkms-kmod
OpenMandriva Rolling - znver1 4.3 kB/s | 4.3 kB 00:00
OpenMandriva Rolling - Unsupported - znver1 6.0 kB/s | 4.3 kB 00:00
OpenMandriva Rolling - Restricted - znver1 5.7 kB/s | 4.3 kB 00:00
OpenMandriva Rolling - Non-free - znver1 4.1 kB/s | 4.2 kB 00:01
Dependencies resolved.
==================================================================================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================================================================================
Installing:
nvidia-legacy-dkms-kmod znver1 470.161.03-5 rolling-znver1-non-free 78 M
Installing dependencies:
dkms noarch 2.8.4-3 rolling-znver1 63 k
lib64gdk-x11_2.0_0 znver1 2.24.33-1 rolling-znver1 367 k
lib64gtk-x11_2.0_0 znver1 2.24.33-1 rolling-znver1 1.9 M
lib64nvidia-egl-wayland1 znver1 1.1.11-1 rolling-znver1 36 k
nvidia-legacy znver1 470.161.03-5 rolling-znver1-non-free 51 M
nvidia-legacy-kmod-common noarch 470.161.03-5 rolling-znver1-non-free 8.4 k
nvidia-legacy-kmod-desktop znver1 470.161.03-5_6.1.4_1 rolling-znver1-non-free 34 M
nvidia-legacy-kmod-headers znver1 470.161.03-5 rolling-znver1-non-free 78 M
Transaction Summary
==================================================================================================================================================================================================================
Install 9 Packages
Total download size: 244 M
Installed size: 732 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): dkms-2.8.4-3-omv4090.noarch.rpm 32 kB/s | 63 kB 00:01
(2/9): lib64gdk-x11_2.0_0-2.24.33-1-omv4090.znver1.rpm 178 kB/s | 367 kB 00:02
(3/9): lib64gtk-x11_2.0_0-2.24.33-1-omv4090.znver1.rpm 810 kB/s | 1.9 MB 00:02
(4/9): lib64nvidia-egl-wayland1-1.1.11-1-omv4090.znver1.rpm 31 kB/s | 36 kB 00:01
(5/9): nvidia-legacy-kmod-common-470.161.03-5-omv2301.noarch.rpm 3.4 kB/s | 8.4 kB 00:02
(6/9): nvidia-legacy-470.161.03-5-omv2301.znver1.rpm 2.6 MB/s | 51 MB 00:19
(7/9): nvidia-legacy-kmod-desktop-470.161.03-5_6.1.4_1-omv2301.znver1.rpm 1.0 MB/s | 34 MB 00:34
(8/9): nvidia-legacy-dkms-kmod-470.161.03-5-omv2301.znver1.rpm 1.7 MB/s | 78 MB 00:47
(9/9): nvidia-legacy-kmod-headers-470.161.03-5-omv2301.znver1.rpm 1.7 MB/s | 78 MB 00:46
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.6 MB/s | 244 MB 01:07
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : lib64gdk-x11_2.0_0-2.24.33-1.znver1 1/9
Installing : lib64gtk-x11_2.0_0-2.24.33-1.znver1 2/9
Installing : nvidia-legacy-kmod-headers-470.161.03-5.znver1 3/9
Installing : lib64nvidia-egl-wayland1-1.1.11-1.znver1 4/9
Running scriptlet: dkms-2.8.4-3.noarch 5/9
Preinstalling packages needed for building kernel modules. Please wait...
Installing : dkms-2.8.4-3.noarch 5/9
Running scriptlet: dkms-2.8.4-3.noarch 5/9
Failed to try-restart loadmodules.service: Unit loadmodules.service not found.
Installing : nvidia-legacy-470.161.03-5.znver1 6/9
Installing : nvidia-legacy-kmod-desktop-470.161.03-5_6.1.4_1.znver1 7/9
Installing : nvidia-legacy-kmod-common-470.161.03-5.noarch 8/9
Running scriptlet: nvidia-legacy-kmod-common-470.161.03-5.noarch 8/9
Generating grub configuration file ...
Found theme: /boot/grub2/themes/OpenMandriva/theme.txt
Found background: /boot/grub2/themes/OpenMandriva/background.png
Found linux image: /boot/vmlinuz-6.1.4-desktop-1omv2301
Found initrd image: /boot/initrd-6.1.4-desktop-1omv2301.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-6.1.1-desktop-1omv2290
Found initrd image: /boot/initrd-6.1.1-desktop-1omv2290.img
fgrep: warning: fgrep is obsolescent; using grep -F
Found memtest image: /boot/memtest.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Fedora Linux 37 (KDE Plasma) on /dev/nvme0n1p3
Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Adding boot menu entry for EFI firmware configuration
done
Installing : nvidia-legacy-dkms-kmod-470.161.03-5.znver1 9/9
Running scriptlet: nvidia-legacy-dkms-kmod-470.161.03-5.znver1 9/9
Warning: I do not know how to handle 470.161.03.
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/470.161.03/source ->
/usr/src/nvidia-470.161.03
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/470.161.03///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/extra/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/extra/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/extra/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/extra/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/extra/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.
Verifying : dkms-2.8.4-3.noarch 1/9
Verifying : lib64gdk-x11_2.0_0-2.24.33-1.znver1 2/9
Verifying : lib64gtk-x11_2.0_0-2.24.33-1.znver1 3/9
Verifying : lib64nvidia-egl-wayland1-1.1.11-1.znver1 4/9
Verifying : nvidia-legacy-470.161.03-5.znver1 5/9
Verifying : nvidia-legacy-dkms-kmod-470.161.03-5.znver1 6/9
Verifying : nvidia-legacy-kmod-common-470.161.03-5.noarch 7/9
Verifying : nvidia-legacy-kmod-desktop-470.161.03-5_6.1.4_1.znver1 8/9
Verifying : nvidia-legacy-kmod-headers-470.161.03-5.znver1 9/9
Installed:
dkms-2.8.4-3.noarch
lib64gdk-x11_2.0_0-2.24.33-1.znver1
lib64gtk-x11_2.0_0-2.24.33-1.znver1
lib64nvidia-egl-wayland1-1.1.11-1.znver1
nvidia-legacy-470.161.03-5.znver1
nvidia-legacy-dkms-kmod-470.161.03-5.znver1
nvidia-legacy-kmod-common-470.161.03-5.noarch
nvidia-legacy-kmod-desktop-470.161.03-5_6.1.4_1.znver1
nvidia-legacy-kmod-headers-470.161.03-5.znver1
Complete!
[lao@openmandriva-x8664 ~]$
Going for a reboot to test…
EDIT: …aaaand we’re back!
[lao@openmandriva-x8664 ~]$ ./8w
[sudo] password for lao:
Sucessfully set stapm_limit to 8000
Sucessfully set fast_limit to 12000
Sucessfully set slow_limit to 10000
Sucessfully enable power_saving
[lao@openmandriva-x8664 ~]$ supergfxctl -g
hybrid
[lao@openmandriva-x8664 ~]$ supergfxctl -S
active
[lao@openmandriva-x8664 ~]$ lsmod | grep nvidia
nvidia_uvm 1503232 0
nvidia_drm 65536 3
nvidia_modeset 1478656 2 nvidia_drm
nvidia 40108032 319 nvidia_uvm,nvidia_modeset
drm_kms_helper 212992 4 drm_display_helper,amdgpu,nvidia_drm
drm 671744 43 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 ~]$ supergfxctl -S
suspended
[lao@openmandriva-x8664 ~]$ vkcube
Selected GPU 1: NVIDIA GeForce GTX 1650 with Max-Q Design, type: DiscreteGpu
Working! Also, the dGPU is suspending correctly again, so I don’t have to nuke this install from orbit
For testing install nvidia driver with dkms from control center module (GUI)
clone repo at
GitHub - OpenMandrivaSoftware/om-control-center at nvtest
and start the testing instance with command
htmlscript -s 1020x600 -i /usr/share/icons/openmandriva.svg index.sh.htm 2> /dev/null;
Credits @LaoTsu for providing the new modules.
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.
Where are you seeing these errors? I have the same udev rules in 60-nvidia.rules in both OM Rome and Fedora 37.
I found those errors by opening KSystemLog.
They are shown quite early in boot, just after:
16/01/23 17:04 | systemd | Reached target local-fs-pre.target - Preparation for Local File Systems. |
---|---|---|
16/01/23 17:04 | systemd | Finished systemd-udev-trigger.service - Coldplug All udev Devices. |
16/01/23 17:04 | systemd | Finished systemd-journal-flush.service - Flush Journal to Persistent Storage. |
and before:
16/01/23 17:04 | systemd | Started systemd-udevd.service - Rule-based Manager for Device Events and Files. |
---|---|---|
16/01/23 17:04 | systemd-udevd | event_source: Failed to get device name: No such file or directory |
16/01/23 17:04 | systemd | Starting modprobe@configfs.service - Load Kernel Module configfs… |
16/01/23 17:04 | systemd | Found device dev-zram0.device - /dev/zram0. |
16/01/23 17:04 | systemd | modprobe@configfs.service: Deactivated successfully. |
16/01/23 17:04 | systemd | Finished modprobe@configfs.service - Load Kernel Module configfs. |
I’m getting errors also. journalctl -b 0 -u systemd-udevd
gives this:
Jan 16 18:17:23 openmandriva-x8664 systemd-udevd[709]: /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.
Jan 16 18:17:23 openmandriva-x8664 systemd-udevd[709]: /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.
Jan 16 18:17:23 openmandriva-x8664 systemd-udevd[709]: /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.
Jan 16 18:17:23 openmandriva-x8664 systemd-udevd[709]: /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.
Jan 16 18:17:23 openmandriva-x8664 systemd-udevd[709]: /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.
The same command after booting Fedora 37 gives no errors.
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 just opened a new case #2874 named “nVidia drivers with DKMS produce errors at early boot stage”
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.
no, not cooker; just rolling.
I just did as you suggested, but no way; I can’t get a shell.
It looks like bash is not responding or is not available yet.
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.
My boot log is very long, so I will paste here only the most relevant parts of it.
I am not sure, but it seems that the wrong nvidia driver rules which start early at boot create display problems with plain shell.
Please let me know if I should search for something more specific.
gen 18 20:05:36 Sharky systemd-udevd[680]: Reading rules file: /usr/lib/udev/rules.d/60-nvidia.rules
gen 18 20:05:36 Sharky systemd-udevd[680]: /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.
gen 18 20:05:36 Sharky systemd-udevd[680]: /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.
gen 18 20:05:36 Sharky systemd-udevd[680]: /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.
gen 18 20:05:36 Sharky systemd-udevd[680]: /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.
gen 18 20:05:36 Sharky systemd-udevd[680]: /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.
[...]
gen 18 20:05:37 Sharky systemd-logind[766]: VT changed to 1
gen 18 20:05:37 Sharky sddm[809]: Failed to read display number from pipe
gen 18 20:05:37 Sharky sddm[809]: Attempt 1 starting the Display server on vt 2 failed
[...]
gen 18 20:05:39 Sharky systemd-logind[766]: VT changed to 2
gen 18 20:05:39 Sharky systemd-logind[766]: VT changed to 1
gen 18 20:05:39 Sharky sddm[809]: Failed to read display number from pipe
gen 18 20:05:39 Sharky sddm[809]: Attempt 2 starting the Display server on vt 2 failed
[...]
gen 18 20:05:42 Sharky systemd-logind[766]: VT changed to 1
gen 18 20:05:42 Sharky sddm[809]: Failed to read display number from pipe
gen 18 20:05:42 Sharky sddm[809]: Attempt 3 starting the Display server on vt 2 failed
gen 18 20:05:42 Sharky sddm[809]: Could not start Display server on vt 2
This is just a guess, but maybe worth a try. If you go into edit mode in grub2 menu (press e), and change nvidia-drm.modeset=1
to 0
and see if it boots into a tty?