OpenMandrivaAssociation / distribution

OpenMandriva Lx is an exciting free Desktop Operating System that aims to cater to and interest first time and advanced users alike. It has the breadth and depth of an advanced system but is designed to be simple and straightforward in use.
https://openmandriva.org
7 stars 2 forks source link

nVidia drivers with DKMS produce errors at early boot stage #2874

Open mtomatis opened 1 year ago

mtomatis commented 1 year ago

OpenMandriva version: Operating System: OpenMandriva ROME 23.01 KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.101.0 Qt Version: 5.15.7 Kernel Version: 6.1.4-desktop-1omv2301 (64-bit) Graphics Platform: X11 Processors: 16 × Intel® Core™ i7-10700K CPU @ 3.80GHz Memory: 15.5 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2 Manufacturer: ASUS

Describe the bug: After installing dkms nvidia drivers, my system log shows the following error messages at early stages of boot. These errors were not present when I installed the nvidia 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:

Steps to reproduce: Install dkms nvidia drivers with the command: sudo dnf --refresh in nvidia-dkms-kmod --enablerepo rolling-testing-x86_64-non-free

Observed behavior:

Expected behavior:

Additional comment:

Logs and screenshots if relevant

m0nk3h commented 1 year ago

I'm also seeing the same errors in journalctl.

Laptop Asus ROG Flow X13 Ryzen 9 5900HS CPU Nvidia GTX1650 - Max-q 16gb Ram OpenMandriva Rome 23.01 KDE / Wayland Latest Kernel, everything up to date. A fresh install 2 days ago

Doesn't happen on Fedora 37 on the same machine, using nvdia dkms drivers also. Replacing /usr/bin/mknod from Fedora to OM Rome doesn't help either. The Nvidia graphics are working perfectly with the DKMS drivers, even in a hybrid situation on my laptop. Games work on the dGPU, but the errors in journalctl persist.

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 OM forum thread for this info is https://forum.openmandriva.org/t/about-nvidia-proprietary-driver-software/4770/49 where we are testing out using the dmks nvidia drivers on OM.