summarylogtreecommitdiffstats
path: root/nvidia-470xx.rules
blob: cd2a0a08c945044e0cc866513dda666b7924ba06 (plain)
1
2
3
4
5
6
# Make sure device nodes are present even when the DDX is not started for the Wayland/EGLStream case
KERNEL=="nvidia", RUN+="/usr/bin/bash -c 'if [ ! -c /dev/nvidiactl ]; then /usr/bin/mknod -Z -m 666 /dev/nvidiactl c $$(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255; fi'"
KERNEL=="nvidia", RUN+="/usr/bin/bash -c 'for i in $$(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \  -f 4); do if [ ! -c /dev/nvidia$${i} ]; then /usr/bin/mknod -Z -m 666 /dev/nvidia$${i} c $$(grep nvidia-frontend /proc/devices | cut -d \  -f 1) $${i}; fi; done'"
KERNEL=="nvidia_modeset", RUN+="/usr/bin/bash -c 'if [ ! -c /dev/nvidia-modeset ]; then /usr/bin/mknod -Z -m 666 /dev/nvidia-modeset c $$(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 254; fi'"
KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c 'if [ ! -c /dev/nvidia-uvm ]; then /usr/bin/mknod -Z -m 666 /dev/nvidia-uvm c $$(grep nvidia-uvm /proc/devices | cut -d \  -f 1) 0; fi'"
KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c 'if [ ! -c /dev/nvidia-uvm-tools ]; then /usr/bin/mknod -Z -m 666 /dev/nvidia-uvm-tools c $$(grep nvidia-uvm /proc/devices | cut -d \  -f 1) 1; fi'"