Apply Patch

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-09-02 11:33:56 +02:00
parent bda16dd95c
commit cffb8344a4
2 changed files with 3 additions and 6 deletions

View File

@ -1 +1,2 @@
nvidia-modprobe /usr/bin/
nvidia-modprobe /usr/bin/
extra_files/nvidia-create-device-nodes /usr/bin/

View File

@ -5,11 +5,7 @@
# nvidia-modprobe should not be invoked.
ACTION=="add|bind", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", \
DRIVER=="nvidia", TEST!="/dev/nvidia-uvm", \
RUN+="/usr/bin/nvidia-modprobe", \
RUN+="/usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f 4); do /usr/bin/nvidia-modprobe -c${i} && /usr/bin/nvidia-modprobe -s -c${i}; done'", \
RUN+="/usr/bin/nvidia-modprobe -l -m", \
RUN+="/usr/bin/nvidia-modprobe -c0 -u", \
RUN+="/usr/bin/nvidia-smi"
RUN+="/usr/bin/nvidia-create-device-nodes"
# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
ACTION=="add|bind", SUBSYSTEM=="pci", DRIVERS=="nvidia", ATTR{vendor}=="0x10de", \