summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/nvidia-545.conf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-12 02:11:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-12 02:11:25 +0100
commite2d2360e108ac340994ea1464c684fa96382c3e1 (patch)
treec38a6c2d3239c73ebfe4c056d98bc3c9a1d1e513 /x11-drivers/nvidia-drivers/files/nvidia-545.conf
parent3c171c04336e3aebae12c218895ae73068b35ac8 (diff)
x11-drivers/nvidia-drivers : version bump, port to EAPI 8, resync with Gentoo
Diffstat (limited to 'x11-drivers/nvidia-drivers/files/nvidia-545.conf')
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-545.conf38
1 files changed, 38 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-545.conf b/x11-drivers/nvidia-drivers/files/nvidia-545.conf
new file mode 100644
index 00000000..ecb549e1
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia-545.conf
@@ -0,0 +1,38 @@
+# NVIDIA drivers options
+# See /usr/share/doc/nvidia-drivers-*/README.txt* for more information.
+
+# nvidia-drivers and nouveau cannot be used at same time.
+# Comment out the following line if you wish to allow nouveau.
+blacklist nouveau
+options nouveau modeset=0
+alias nouveau off
+
+# Kernel Mode Setting (notably needed for fbdev and wayland).
+# Enabling may possibly cause issues with SLI and Reverse PRIME.
+#options nvidia-drm modeset=1
+
+# Enable experimental framebuffer console support (requires modeset=1 above).
+# Replaces efifb, simpledrm, or similar once loaded (emphasis on being
+# experimental, "may" cause issues X mode switching, sleep, or more).
+#options nvidia-drm fbdev=1
+
+# Suspend options. Allocations=0 recommended over =1 unless enable nvidia's
+# systemd sleep services (nvidia-hibernate, nvidia-resume, nvidia-suspend).
+options nvidia \
+ NVreg_PreserveVideoMemoryAllocations=0 \
+ NVreg_TemporaryFilePath=/var/tmp
+
+# !!! Security Warning !!!
+# Do not change the DeviceFile 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
+
+# Should be no need to touch anything below.
+alias char-major-195 nvidia
+alias /dev/nvidiactl char-major-195
+remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidia