Advertisement
wrsaf

/etc/modprobe.d/nvidia.conf

Jun 12th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. # NVIDIA drivers options
  2. # See /usr/share/doc/nvidia-drivers-*/README.txt* for more information.
  3.  
  4. # nvidia-drivers and nouveau cannot be used at same time.
  5. # Comment out the following line if you wish to allow nouveau.
  6. blacklist nouveau
  7.  
  8. # Kernel Mode Setting (notably needed for EGLStream/Wayland)
  9. # Enabling may possibly cause issues with SLI and Reverse PRIME.
  10. #options nvidia-drm modeset=1
  11.  
  12. # Suspend options. Allocations=0 recommended over =1 unless enable nvidia's
  13. # systemd sleep services (nvidia-hibernate, nvidia-resume, nvidia-suspend),
  14. # but even then may lead to issues on some setups (keep 0 if in doubt).
  15. options nvidia \
  16. NVreg_PreserveVideoMemoryAllocations=0 \
  17. NVreg_TemporaryFilePath=/var/tmp
  18.  
  19. # !!! Security Warning !!!
  20. # Do not change the DeviceFile options unless you know what you are doing.
  21. # Only add trusted users to the 'video' group, these users may be able to
  22. # crash, compromise, or irreparably damage the machine.
  23. options nvidia \
  24. NVreg_DeviceFileGID=27 \
  25. NVreg_DeviceFileMode=432 \
  26. NVreg_DeviceFileUID=0 \
  27. NVreg_ModifyDeviceFiles=1
  28.  
  29. # Should be no need to touch anything below.
  30. alias char-major-195 nvidia
  31. alias /dev/nvidiactl char-major-195
  32. remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidia
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement