summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/nvidia-595.conf
blob: e166611781d96632d5345da6b9981692018c629e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# NVIDIA drivers options
# See /usr/share/doc/nvidia-drivers-*/README.txt* for more information.

# nvidia-drivers and nouveau / nova cannot be used at same time.
# Comment out the following lines if you wish to allow either.
blacklist nouveau
blacklist nova_core

# By default, NVIDIA will handle the console/tty display and allow
# overriding DRM devices such as simpledrm. May or may not cause
# issues like being unable to display/switch tty properly or resume
# from sleep with *some* setups. Try disabling by uncommenting if
# need to troubleshoot issues, and re-enable if unrelated.
#options nvidia-drm fbdev=0

# Suspend options. Notifiers=1 implies NVreg_PreserveVideoMemoryAllocations=1
# which is needed to avoid issues when resuming from suspend esp. on wayland
# (former systemd suspend services are not needed with kernel notifiers).
options nvidia \
	NVreg_UseKernelSuspendNotifiers=1 \
	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