Bug 6784

Summary: udev rules don't work
Product: Fedora Reporter: daron439
Component: xorg-x11-drv-nvidiaAssignee: leigh scott <leigh123linux>
Status: RESOLVED FIXED    
Severity: normal CC: ego.cordatus, kwizart, negativo17
Priority: P1    
Version: f40   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: udev rules patch

Description daron439 2023-11-03 09:54:28 CET
Created attachment 2526 [details]
udev rules patch

After updating to 545.29.02 I no longer have nvidia-frontend in /proc/devices -> udev rules fail -> results in a 1 fps slideshow on kde wayland.
❯ grep nvidia /proc/devices         
195 nvidia
195 nvidia-modeset
195 nvidiactl
234 nvidia-nvswitch
235 nvidia-nvlink
236 nvidia-caps
511 nvidia-uvm

I changed nvidia-frontend to nvidiactl in the udev rules file and now it's working fine.
Comment 1 Nicolas Chauvet 2023-11-03 10:17:05 CET
Thanks for the report.


This udev rules compete with what's doing nvidia-modprobe, so changes there are not reflected to this udev rules.


I would also like to get rid of this spurious message:
NVRM: loading NVIDIA UNIX x86_64 Kernel Module  535.113.01  Tue Sep 12 19:41:24 UTC 2023
nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
nvidia: Process '/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> ...

Can we just drop this udev rules file ?
Comment 2 leigh scott 2023-11-03 16:17:48 CET
(In reply to daron439 from comment #0)
> Created attachment 2526 [details]
> udev rules patch
> 
> After updating to 545.29.02 I no longer have nvidia-frontend in
> /proc/devices -> udev rules fail -> results in a 1 fps slideshow on kde
> wayland.
> ❯ grep nvidia /proc/devices         
> 195 nvidia
> 195 nvidia-modeset
> 195 nvidiactl
> 234 nvidia-nvswitch
> 235 nvidia-nvlink
> 236 nvidia-caps
> 511 nvidia-uvm
> 
> I changed nvidia-frontend to nvidiactl in the udev rules file and now it's
> working fine.

Try the latest build.

https://download1.rpmfusion.org/nonfree/fedora/development/rawhide/Everything/x86_64/os/repoview/xorg-x11-drv-nvidia.html
Comment 3 daron439 2023-11-03 17:09:38 CET
Seems to work fine. Nvidia devices are present:
❯ ls /dev/nvidia*
/dev/nvidia0  /dev/nvidiactl  /dev/nvidia-modeset  /dev/nvidia-uvm  /dev/nvidia-uvm-tools

/dev/nvidia-caps:
nvidia-cap1  nvidia-cap2

sddm wayland, plasma wayland are alright. Thanks!