summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-02-08 10:39:20 +0100
committerDavid Seifert <soap@gentoo.org>2021-02-08 10:39:20 +0100
commit3f48cdfdff62bdeb440900f04d7745dd08365eba (patch)
tree733a3127544dbc702a0d0d173832e0e7124e44a4 /x11-drivers
parentdev-util/howdoi: version bump 2.0.10 (diff)
downloadgentoo-3f48cdfdff62bdeb440900f04d7745dd08365eba.tar.gz
gentoo-3f48cdfdff62bdeb440900f04d7745dd08365eba.tar.bz2
gentoo-3f48cdfdff62bdeb440900f04d7745dd08365eba.zip
x11-drivers/nvidia-drivers: Default disable PreserveVideoMemoryAllocations
Bug: https://bugs.gentoo.org/763129 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-460.conf20
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-460.39-r1.ebuild (renamed from x11-drivers/nvidia-drivers/nvidia-drivers-460.39.ebuild)2
2 files changed, 21 insertions, 1 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-460.conf b/x11-drivers/nvidia-drivers/files/nvidia-460.conf
new file mode 100644
index 000000000000..faf0243a8230
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia-460.conf
@@ -0,0 +1,20 @@
+# Nvidia drivers support
+alias char-major-195 nvidia
+alias /dev/nvidiactl char-major-195
+
+# To tweak the driver the following options can be used, note that
+# you should be careful, as it could cause instability!! For more
+# options see /usr/share/doc/PACKAGE/README
+#
+# !!! SECURITY WARNING !!!
+# DO NOT MODIFY OR REMOVE THE DEVICE FILE RELATED OPTIONS UNLESS YOU KNOW
+# WHAT YOU ARE DOING.
+# ONLY ADD TRUSTED USERS TO THE VIDEO GROUP, THESE USERS MAY BE ABLE TO CRASH,
+# COMPROMISE, OR IRREPARABLY DAMAGE THE MACHINE.
+options nvidia \
+ NVreg_DeviceFileGID=VIDEOGID \
+ NVreg_DeviceFileMode=432 \
+ NVreg_DeviceFileUID=0 \
+ NVreg_ModifyDeviceFiles=1 \
+ NVreg_PreserveVideoMemoryAllocations=0 \
+ NVreg_TemporaryFilePath=/tmp
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-460.39.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-460.39-r1.ebuild
index 2c16377cf6eb..87e315b2413a 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-460.39.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.39-r1.ebuild
@@ -214,7 +214,7 @@ src_install() {
# This file is tweaked with the appropriate video group in
# pkg_preinst, see bug #491414
insinto /etc/modprobe.d
- newins "${FILESDIR}"/nvidia-430.conf nvidia.conf
+ newins "${FILESDIR}"/nvidia-460.conf nvidia.conf
if use uvm; then
doins "${FILESDIR}"/nvidia-rmmod.conf