add fix for nvidia resume from suspend

This commit is contained in:
Anders Rytter Hansen 2025-08-08 14:02:51 -03:00
commit 1c90e561cd
2 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,7 @@ ENV KERNEL=${KERNEL}
ADD "https://copr.fedorainfracloud.org/api_3/build/list?ownername=andersrh&projectname=my-ostree-os&packagename=kernel-cachyos-lto-skylake" /tmp/builds.txt
RUN echo 'omit_drivers+=" nouveau "' | tee /etc/dracut.conf.d/blacklist-nouveau.conf
COPY etc/modprobe.d/nvidia-resume_suspend.conf /etc/modprobe.d/nvidia-resume_suspend.conf
COPY repo/*.repo /etc/yum.repos.d/
RUN dnf config-manager --add-repo=https://negativo17.org/repos/epel-nvidia.repo -y

View file

@ -0,0 +1,4 @@
# change settings to allow system to start properly after suspend. Info: https://www.reddit.com/r/linuxquestions/comments/1cymlxg/hibernate_on_nvidia/
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia NVreg_TemporaryFilePath=/var/tmp