Open ethanh20009 opened 1 week ago
Have you followed this section of the Arch wiki's Nvidia/TIips_and_tricks article? https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend
Yes, using the following parameters
cat /etc/modprobe.d/nvidia.conf
options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
cat /etc/modprobe.d/nvidia-fbdev.conf
options nvidia_drm fbdev=1
cat /etc/modprobe.d/nvidia-gpu-firmware.conf
options nvidia NVreg_EnableGpuFirmware=0
cat /etc/modprobe.d/nvidia-power-management.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
cat /etc/modprobe.d/blacklist.conf
install i915 /usr/bin/false
install intel_agp /usr/bin/false
install viafb /usr/bin/false
install radeon /usr/bin/false
install amdgpu /usr/bin/false
in boot loader entry:
title Arch Linux (linux)
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=fc<...> zswap.enabled=0 rw rootfstype=ext4 acpi_osi=! "acpi_osi=Windows 2009" mem_sleep_default=s2idle nvidia_drm.modeset=1 nvidia.NVreg_PreserveVideoMemoryAllocations=1
I have enabled nvidia suspend service and nvidia resume service. I'm not using nvidia-persistanced service.
Regression?
No
System Info and Version
System/Version info
```shDescription
When I resume from suspend, I notice my alacritty client I've had open is no longer there where I had it open before I suspended the system. This is particularly bad in cases where I have unsaved work editing files and suspend causes those changes to be lost. Looking through logs I see Alacritty crashes on resume. I believe this to be an Nvidia specific issue as the issue does not occur on my amd radeon based system. Using Nvidia drivers below:
How to reproduce
On Nvidia system: Open alacritty client, suspend system, wake system and login.
Crash reports, logs, images, videos
coredumpctl output alacritty.txt
in journalctl alacritty-journal.txt