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