nvidia.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Nvidia drivers support
  2. # To tweak the driver the following options can be used, note that
  3. # you should be careful, as it could cause instability!! For more
  4. # options see README.txt in /usr/share/doc/nvidia-drivers-460.67
  5. options nvidia-drm modeset=1
  6. options nvidia-drm fbdev=1
  7. #
  8. # !!! SECURITY WARNING !!!
  9. # DO NOT MODIFY OR REMOVE THE DEVICE FILE RELATED OPTIONS UNLESS YOU KNOW
  10. # WHAT YOU ARE DOING.
  11. # ONLY ADD TRUSTED USERS TO THE VIDEO GROUP, THESE USERS MAY BE ABLE TO CRASH,
  12. # COMPROMISE, OR IRREPARABLY DAMAGE THE MACHINE.
  13. #
  14. options nvidia \
  15. NVreg_DeviceFileGID=27 \
  16. NVreg_DeviceFileMode=432 \
  17. NVreg_DeviceFileUID=0 \
  18. NVreg_ModifyDeviceFiles=1 \
  19. NVreg_TemporaryFilePath=/var/tmp \
  20. NVreg_PreserveVideoMemoryAllocations=1 \
  21. NVreg_UsePageAttributeTable=1 \
  22. NVreg_InitializeSystemMemoryAllocations=1 \
  23. NVreg_EnableMSI=1 \
  24. NVreg_EnablePCIeGen3=1 \
  25. NVreg_DynamicPowerManagement=0x02
  26. alias /dev/nvidiactl char-major-195
  27. alias char-major-195 nvidia
  28. remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidia
  29. softdep nvidia* pre: vfio-pci
  30. softdep nvidia pre: vfio-pci
  31. softdep nouveau pre: vfio-pci