- 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
This commit is contained in:
parent
bb5de5399f
commit
59f60873f8
@ -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};
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 9 10:39:25 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
|
||||
|
||||
- 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 <sndirsch@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user