mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
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>
This commit is contained in:
20
x11-drivers/nvidia-drivers/files/nvidia-460.conf
Normal file
20
x11-drivers/nvidia-drivers/files/nvidia-460.conf
Normal file
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user