You are not logged in.

#1 2020-12-05 22:40:58

Gekume123
Member
Registered: 2020-09-19
Posts: 29

NVIDIA preserve video memory

I get glitches in apps like VSCode or Steam when resuming from suspend, so I thought it could be solved by https://wiki.archlinux.org/index.php/NV … er_suspend. However, it's not fixing the problem.
So I want to make sure I followed the steps correctly.

I edited /etc/modprobe.d/nvidia-power-management.conf  and entered "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/tmp" into the file.
Then, I ran "systemctl enable nvidia-suspend". And to suspend "systemctl suspend". Is this all that's required? Is there a way to check if it worked properly, like in some log somewhere?

Thanks so much

Offline

#2 2020-12-05 22:49:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,361

Re: NVIDIA preserve video memory

Did you reboot between that? You'll probably also want to use another dir rather than /tmp unless you have enough ram to house the nvidia vram as well.

Offline

#3 2020-12-06 00:06:54

Gekume123
Member
Registered: 2020-09-19
Posts: 29

Re: NVIDIA preserve video memory

Yes, I did reboot. I'll try setting a different directory and seeing if that fixes it. Thanks.

Offline

#4 2020-12-06 00:58:40

Gekume123
Member
Registered: 2020-09-19
Posts: 29

Re: NVIDIA preserve video memory

Nope, doesn't work. I even tried adding it as a kernel parameter in case it wasn't being enabled properly. sad

Offline

#5 2020-12-06 08:00:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: NVIDIA preserve video memory

# systool -vm nvidia

- check the parameters.
Since idk whether they'd show up at all, ensure that if you're using early kms (ie.  "lsinitcpio /boot/initramfs-linux.img| grep nvidia") you need to rebuild the initramfs in order to get the parameters applied there.

Passing the parameters directly to the kernel commandline will work in any event.

Offline

#6 2020-12-08 00:20:41

Gekume123
Member
Registered: 2020-09-19
Posts: 29

Re: NVIDIA preserve video memory

So I see the proper parameters being set in cat /proc/driver/nvidia/params but not systool -vm nvidia.  lsinitcpio does show my .conf files being included.
However, I also don't see any nvidia_drm parameters however sudo cat /sys/module/nvidia_drm/parameters/modeset confirms that it is being enabled, so maybe they're not supposed to show up in systool -vm...
Nevermind, I had to run with sudo, ofc. So it does show modeset=y, but sudo systool -vm nvidia doesn't show any of the other parameters I've enabled.


And I never see any files being created in the directory I've set for nvidia-tmp to store the files in. Hmm

Last edited by Gekume123 (2020-12-08 00:24:45)

Offline

#7 2020-12-08 08:45:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: NVIDIA preserve video memory

Did yo utry passing the parameters to the kernel commandline (and whether the preservation works then)?

Offline

Board footer

Powered by FluxBB