Hello,
I have recently experienced a resume failure with nvidia [1]. Upon
deeper investigation, it turns out that PreserveVideoMemoryAllocations
was enabled recently [2]. According to documentation [3] and to Arch
Wiki [4], for this option to work, nvidia systemd units need to be
enabled (nvidia-resume is not recommended by Arch). They are not on my
machine:
$ sudo systemctl status nvidia-suspend.service nvidia-resume.service
nvidia-hibernate.service
[sudo] hasło użytkownika julas:
○ nvidia-suspend.service - NVIDIA system suspend actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-suspend.service;
disabled; vendor preset: disabled)
Active: inactive (dead)
○ nvidia-resume.service - NVIDIA system resume actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service;
disabled; vendor preset: disabled)
Active: inactive (dead)
○ nvidia-hibernate.service - NVIDIA system hibernate actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-hibernate.service;
disabled; vendor preset: disabled)
Active: inactive (dead)
I am not sure what Fedora's policy on enabling systemd units by default
is, but it appears like either the systemd units need to be enabled or
PreserveVideoMemoryAllocations should be rolled back. With
nvidia-suspend and nvidia-hibernate enabled, my machine does suspend
correctly again. With nvidia-resume enabled, it also does resume
properly. Without it, machine resumes but the screen does not re-activate.
Best regards,
Julian
[1]
https://forums.developer.nvidia.com/t/occassional-failure-to-resume-pci-p...
[2]
https://pkgs.rpmfusion.org/cgit/nonfree/xorg-x11-drv-nvidia.git/commit/?i...
[3]
http://download.nvidia.com/XFree86/Linux-x86_64/470.63.01/README/powerman...
[4]
https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_me...