From 59f60873f873c4d61c1040d959ea8fd6fb4c887608a570617317cab921db594f Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Tue, 9 Jan 2024 10:40:51 +0000 Subject: [PATCH] - create /run/udev/static_node-tags/uaccess/nvidia${devid} symlinks also during modprobing the nvidia module; this changes the issue of not having access to /dev/nvidia${devid}, when gfxcard has been replaced by a different gfx card after installing the driver OBS-URL: https://build.opensuse.org/package/show/X11:Drivers:Video:Redesign/nvidia-open-driver-G06-signed?expand=0&rev=71 --- modprobe.nvidia.install | 3 +++ nvidia-open-driver-G06-signed.changes | 8 ++++++++ nvidia-open-driver-G06-signed.spec | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/modprobe.nvidia.install b/modprobe.nvidia.install index 587d705..0b1da48 100644 --- a/modprobe.nvidia.install +++ b/modprobe.nvidia.install @@ -24,6 +24,9 @@ if /sbin/modprobe --ignore-install nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFile classid=${class%%00}; if [ "$classid" == "0x0300" -o "$classid" == "0x0302" ]; then devid=$((devid+1)); + if [ ! -L /run/udev/static_node-tags/uaccess/nvidia${devid} ]; then + ln -snf /dev/nvidia${devid} /run/udev/static_node-tags/uaccess/nvidia${devid}; + fi; if [ ! -c /dev/nvidia${devid} ]; then mknod -m 660 /dev/nvidia${devid} c 195 ${devid}; chown :video /dev/nvidia${devid}; diff --git a/nvidia-open-driver-G06-signed.changes b/nvidia-open-driver-G06-signed.changes index ef007c2..4fb8c9f 100644 --- a/nvidia-open-driver-G06-signed.changes +++ b/nvidia-open-driver-G06-signed.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Jan 9 10:39:25 UTC 2024 - Stefan Dirsch + +- create /run/udev/static_node-tags/uaccess/nvidia${devid} symlinks + also during modprobing the nvidia module; this changes the issue + of not having access to /dev/nvidia${devid}, when gfxcard has + been replaced by a different gfx card after installing the driver + ------------------------------------------------------------------- Tue Dec 5 14:31:36 UTC 2023 - Stefan Dirsch diff --git a/nvidia-open-driver-G06-signed.spec b/nvidia-open-driver-G06-signed.spec index 208ebf0..87f7c34 100644 --- a/nvidia-open-driver-G06-signed.spec +++ b/nvidia-open-driver-G06-signed.spec @@ -1,7 +1,7 @@ # # spec file for package nvidia-open-driver-G06-signed # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed