From 1c90e561cd8c6a67e14aefbb306c5c1427aa198d Mon Sep 17 00:00:00 2001 From: Anders Rytter Hansen Date: Fri, 8 Aug 2025 14:02:51 -0300 Subject: [PATCH] add fix for nvidia resume from suspend --- Dockerfile | 1 + etc/modprobe.d/nvidia-resume_suspend.conf | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 etc/modprobe.d/nvidia-resume_suspend.conf diff --git a/Dockerfile b/Dockerfile index 85c7ea2..a1f7304 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/etc/modprobe.d/nvidia-resume_suspend.conf b/etc/modprobe.d/nvidia-resume_suspend.conf new file mode 100644 index 0000000..220b521 --- /dev/null +++ b/etc/modprobe.d/nvidia-resume_suspend.conf @@ -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