Changeset View
Changeset View
Standalone View
Standalone View
files/71-nvidia.rules
| # Tag the device as master-of-seat so that logind is happy | # Tag the device as master-of-seat so that logind is happy | ||||
| # (see LP: #1365336) | # (see LP: #1365336) | ||||
| SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", DRIVERS=="nvidia", TAG+="seat", TAG+="master-of-seat" | SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", DRIVERS=="nvidia", TAG+="seat", TAG+="master-of-seat" | ||||
| # Start and stop nvidia-persistenced on power on and power off | # Start and stop nvidia-persistenced on power on and power off | ||||
| # respectively | # respectively | ||||
| ACTION=="add" DEVPATH=="/bus/acpi/drivers/NVIDIA ACPI Video Driver" SUBSYSTEM=="drivers" RUN+="/usr/bin/start-nvidia-persistenced" | ACTION=="add" DEVPATH=="/bus/acpi/drivers/NVIDIA ACPI Video Driver" SUBSYSTEM=="drivers" RUN+="/bin/systemctl start --no-block nvidia-persistenced.service" | ||||
JoshStrobl: .service isn't needed | |||||
| ACTION=="remove" DEVPATH=="/bus/acpi/drivers/NVIDIA ACPI Video Driver" SUBSYSTEM=="drivers" RUN+="/usr/bin/stop-nvidia-persistenced" | ACTION=="remove" DEVPATH=="/bus/acpi/drivers/NVIDIA ACPI Video Driver" SUBSYSTEM=="drivers" RUN+="/bin/systemctl stop --no-block nvidia-persistenced" | ||||
| # Start and stop nvidia-persistenced when loading and unloading | # Start and stop nvidia-persistenced when loading and unloading | ||||
| # the driver | # the driver | ||||
| ACTION=="add" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/usr/bin/start-nvidia-persistenced" | ACTION=="add" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/bin/systemctl start --no-block nvidia-persistenced.service" | ||||
JoshStroblUnsubmitted Done Inline Actions.service isn't needed JoshStrobl: .service isn't needed | |||||
| ACTION=="remove" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/usr/bin/stop-nvidia-persistenced" | ACTION=="remove" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/bin/systemctl stop --no-block nvidia-persistenced" | ||||
| # Load and unload nvidia-uvm module | # Load and unload nvidia-uvm module | ||||
| ACTION=="add" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/sbin/modprobe nvidia-uvm" | ACTION=="add" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/sbin/modprobe nvidia-uvm" | ||||
| ACTION=="remove" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/sbin/modprobe -r nvidia-uvm" | ACTION=="remove" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/sbin/modprobe -r nvidia-uvm" | ||||
| # This will create the device nvidia device nodes | # This will create the device nvidia device nodes | ||||
| ACTION=="add" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/usr/bin/nvidia-smi" | ACTION=="add" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/usr/bin/nvidia-smi" | ||||
| # Create the device node for the nvidia-uvm module | # Create the device node for the nvidia-uvm module | ||||
| ACTION=="add" DEVPATH=="/module/nvidia_uvm" SUBSYSTEM=="module" RUN+="/sbin/create-uvm-dev-node" | ACTION=="add" DEVPATH=="/module/nvidia_uvm" SUBSYSTEM=="module" RUN+="/sbin/create-uvm-dev-node" | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.
.service isn't needed