mirror of
https://github.com/Frogging-Family/nvidia-all
synced 2024-10-30 15:20:10 +00:00
28 lines
2.0 KiB
Plaintext
28 lines
2.0 KiB
Plaintext
# Device nodes are created by nvidia-modprobe, which is called by the nvidia DDX.
|
|
# In case the DDX is not started, the device nodes are never created, so call
|
|
# nvidia-modprobe in the udev rules to cover the Wayland/EGLStream and compute
|
|
# case without a started display. In the case where vfio-pci is used
|
|
# 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/nvidia-modprobe -c0 -u"
|
|
|
|
# Enable runtime PM for NVIDIA VGA/3D controller devices
|
|
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", TEST=="power/control", ATTR{power/control}="auto"
|
|
# Enable runtime PM for NVIDIA Audio devices
|
|
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", TEST=="power/control", ATTR{power/control}="auto"
|
|
# Enable runtime PM for NVIDIA USB xHCI Host Controller devices
|
|
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", TEST=="power/control", ATTR{power/control}="auto"
|
|
# Enable runtime PM for NVIDIA USB Type-C UCSI devices
|
|
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", TEST=="power/control", ATTR{power/control}="auto"
|
|
|
|
# Disable runtime PM for NVIDIA VGA/3D controller devices
|
|
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", TEST=="power/control", ATTR{power/control}="on"
|
|
# Disable runtime PM for NVIDIA Audio devices
|
|
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", TEST=="power/control", ATTR{power/control}="on"
|
|
# Disable runtime PM for NVIDIA USB xHCI Host Controller devices
|
|
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", TEST=="power/control", ATTR{power/control}="on"
|
|
# Disable runtime PM for NVIDIA USB Type-C UCSI devices
|
|
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", TEST=="power/control", ATTR{power/control}="on"
|