You are not logged in.
Pages: 1
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
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
Yes, I did reboot. I'll try setting a different directory and seeing if that fixes it. Thanks.
Offline
Nope, doesn't work. I even tried adding it as a kernel parameter in case it wasn't being enabled properly. ![]()
Offline
# 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
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
Did yo utry passing the parameters to the kernel commandline (and whether the preservation works then)?
Offline
Pages: 1