Ionen Wolkens 05281372c0
x11-drivers/nvidia-drivers: add 590.44.01 (beta, unkeyworded)
Runtime entirely untested given I do not have hardware that can use use
this version (drops support for Pascal/Maxwell/Volta cards).

Also has a few notable changes:

1. kernel-open is now forced (USE removed)
2. modeset=1 is default even with USE=-wayland
3. fbdev=1 is also default
4. now depends on both egl-waylands (.run ships both 1 and 2),
   most users will only need one of them but no real way to tell
   if it'll use 2 or fallback to 1 depending on setup

If believe there is a packaging issue leading to runtime problems,
help is appreciated to pinpoint the issue given I cannot test it.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2025-12-02 11:10:45 -05:00

42 lines
1.6 KiB
Plaintext

# 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
# Kernel Mode Setting (notably needed for fbdev and wayland).
# If in doubt, even X11 users should not touch this.
options nvidia-drm modeset=1
# If modeset=1 ^, NVIDIA will handle the console/tty display and allow
# overriding DRM devices such as simpledrm by default. 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. Note that Allocations=1 requires suspend hooks currently
# only used when either systemd or elogind is used to suspend. If using
# neither or have issues, try Allocations=0 (revert if it does not help
# as =0 is not recommended).
options nvidia \
NVreg_PreserveVideoMemoryAllocations=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