NVIDIA: Try move .conf from /etc/modprobe.d to /usr/lib/modprobe.d
All checks were successful
build-ublue-custom / Build and push image (push) Successful in 7m43s

This commit is contained in:
Florian RICHER 2024-10-18 20:17:49 +02:00
parent 3d741bfbfc
commit 42cbb86b11
5 changed files with 23 additions and 1 deletions

View file

@ -12,4 +12,4 @@ rpm-ostree install /tmp/rpms/kmods/kmod-nvidia*.rpm
rpm-ostree install xorg-x11-drv-nvidia-cuda libva-nvidia-driver \
nvidia-vaapi-driver libva-utils vdpauinfo
cp /tmp/scripts/nvidia/modprobe.d/*.conf /etc/modprobe.d/
cp /tmp/scripts/nvidia/modprobe.d/*.conf /usr/lib/modprobe.d/

View file

@ -1 +1,5 @@
# Nouveau must be blacklisted here as well beside from the initrd to avoid a
# delayed loading (for example on Optimus laptops where the Nvidia card is not
# driving the main display).
blacklist nouveau

View file

@ -0,0 +1 @@
options nvidia NVreg_TemporaryFilePath=/var/tmp

View file

@ -0,0 +1,6 @@
# Enable complete power management. From:
# file:///usr/share/doc/nvidia-driver/html/powermanagement.html
options nvidia NVreg_DynamicPowerManagement=0x02
options nvidia NVreg_EnableS0ixPowerManagement=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1

View file

@ -0,0 +1,11 @@
# Make a soft dependency for nvidia-uvm as adding the module loading to
# /usr/lib/modules-load.d/nvidia-uvm.conf for systemd consumption, makes the
# configuration file to be added to the initrd but not the module, throwing an
# error on plymouth about not being able to find the module.
# Ref: /usr/lib/dracut/modules.d/00systemd/module-setup.sh
# Even adding the module is not the correct thing, as we don't want it to be
# included in the initrd, so use this configuration file to specify the
# dependency.
softdep nvidia post: nvidia-uvm