You are not logged in.
Hi all,
I'm having the following issue for some time that is becoming increasingly annoying since I often use suspend and hibernate. When I resume from suspend or hibernate some applications appear with broken graphics (not rendered normally) especially applications like Chrome and clones (Chromium, Brave, Vivaldi) or others such as Visual Studio Code. I have to restart these apps so they are rendered normally. Today I found out that the issue is caused from the nvidia drivers as I found here:
https://www.reddit.com/r/linux_gaming/c … ion_after/
https://forums.developer.nvidia.com/t/r … -ti/146265
https://forums.developer.nvidia.com/t/b … end/147206
The Arch Wiki explains how to solve the issue here:
Preserve video memory after suspend
I'm not sure if I did everything right, but now suspend or hibernate does not work at all. All my monitors go to sleep mode and the keyboard is almost dead. I have to REISUB to restart my system.
The steps I've done are mainly:
Created this new file:
/etc/modprobe.d/nvidia-power-management.conf
with this content:
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/tmp-nvidiathen rebooted.
And:
$ sudo systemctl enable nvidia-suspend.service
$ sudo systemctl enable nvidia-hibernate.service
$ sudo systemctl enable nvidia-resume.service
Any ideas how can I solve this issue?
Last edited by karcher (2020-10-15 10:01:58)
Offline
1. ensure the memory preservation is actually the cause (disable it and see whether S3 works again)
2. ensure there's enough free space on the root partition (eg. ~6GB if you've 4GB VRAM)
3. https://01.org/blogs/rzhang/2015/best-p … ate-issues
4. usually resizing the window does it for me (the viewport resize seems to trigger a re-render)
Please also alter the subject of your post to actually reflect that you face S3/S4 issues w/ the VRAM preservation service, your post isn't about the cause for using those services.
Offline
@seth: Thanks for the quick response!
1. ensure the memory preservation is actually the cause (disable it and see whether S3 works again)
I revert the changes I made and the suspend works again, but again with broken rendering. The 3 services was the cause of my monitors going to sleep mode.
2. ensure there's enough free space on the root partition (eg. ~6GB if you've 4GB VRAM)
There is over 100GB on the root partition.
3. https://01.org/blogs/rzhang/2015/best-p … ate-issues
Thanks for the link. I need some time to experiment with all the stuff mentioned.
4. usually resizing the window does it for me (the viewport resize seems to trigger a re-render)
It works partially. The graphics in the opened terminals in VSC remain broken. I have to open new ones.
Please also alter the subject of your post to actually reflect that you face S3/S4 issues w/ the VRAM preservation service, your post isn't about the cause for using those services.
Done.
BTW, I recently changed to XFCE and had less problems before with i3wm regarding suspend/hibernate.
Offline
Wild guess, is your root FS either encrypted or part of a LVM setup?
Do you have other locations available?
Also nb.
Contrary to NVIDIA's instructions, it is currently not necessary to enable nvidia-resume (and it's in fact probably not a good idea to enable it), because the /usr/lib/systemd/system-sleep/nvidia script does the same thing as the service (but slightly earlier)
Offline
Wild guess, is your root FS either encrypted or part of a LVM setup?
No.
Do you have other locations available?
Sorry. I don't understand what do you mean by that.
Also nb.
Tried that too.
Offline
I don't understand what do you mean by that.
If the root FS was encrypted, use some unencrypted storage location to park the VRAM. But that's not the case anyway.
You could also try the behavior w/ the LTS kernel to see whether nvidia maybe needs to catch up to a change in the kernel.
Offline
OK, thanks!
Offline