2
0
nvidia-driver-template/nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR#/debian/nvidia-open-kernel-common-#DRIVER_VERSION_MAJOR#.udev

10 lines
471 B
Plaintext
Raw Normal View History

2024-07-24 01:06:18 +02:00
# Set ACLs for console users on /dev/nvidia*
# This is necessary until the driver uses some other form of auth
ENV{ACL_MANAGE}=="0", GOTO="nvidia_end"
DRIVER=="nvidia",ENV{NVIDIA_DEVICE}="1"
ENV{NVIDIA_DEVICE}!="1", GOTO="nvidia_end"
ENV{ACL_MANAGE}="1"
TEST!="/lib/libglib-2.0.so.0", GOTO="nvidia_end"
# apply ACL for all locally logged in users
TEST=="/var/run/ConsoleKit/database", RUN+="nvidia_helper --action=$env{ACTION} --device=$env{DEVNAME}"
2024-08-10 14:55:32 +02:00
LABEL="nvidia_end"