You are not logged in.

#1 2023-08-20 15:23:20

TimSousa
Member
Registered: 2023-02-25
Posts: 38

[SOLVED] Suspend/Hibernate not working correctly

Just as the title says. I'm running GNOME, but it also happens on qtile. I'm running on the dGPU only.
I saw a message on journalctl that the nvidia driver couldn't find acpid or something, so I installed it and enabled the daemon with systemctl.
Here's my journalctl -b -1 log: http://ix.io/4E60
I removed an entry with grep just so it's a bit more clean (and I don't think it's relevant) sine it's spammed everywhere: (WW) modeset(G0): drmmode_SharedPixmapFlip() failed, trying again next vblank
I think it's related, but definitely not the cause of the issue
Do you think that could have to do with it?
here's the full log: https://0x0.st/HLgO.txt

edit: Solved it! For future reference..:
TL;DR: enabled this systemd modules: nvidia-suspend.service, nvidia-hibernate.service, nvidia-resume.service

I first tried to run

systemctl suspend

on a tty. The screen flashed black and nothing happened.
I then immediately checked my journalctl and found this:

Aug 25 17:38:50 timsPC kernel: NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the 'Configuring Power Management Support' section in the driver README.
Aug 25 17:38:50 timsPC kernel: nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0x30 [nvidia] returns -5
Aug 25 17:38:50 timsPC kernel: nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x170 returns -5
Aug 25 17:38:50 timsPC kernel: nvidia 0000:01:00.0: PM: failed to suspend async: error -5

I then changed /etc/modprobe.d/nvidia-power-management.conf:

NVreg_PreserveVideoMemoryAllocations=0

from 1 to 0

This though, didn't change anything. It still flashed on systemctl suspend

Only when I found this post did I finally get the correct solution: enabling some systemd modules.
I then ran

sudo systemctl enable nvidia-suspend.service
sudo systemctl enable nvidia-hibernate.service
sudo systemctl enable nvidia-resume.service

Last edited by TimSousa (2023-08-25 20:17:56)

Offline

#2 2024-04-26 16:17:01

TXPGhost
Member
Registered: 2024-04-26
Posts: 1

Re: [SOLVED] Suspend/Hibernate not working correctly

Had the same issue with

systemctl hybrid-sleep

this fixed it

Offline

#3 2024-10-14 01:26:33

jokerpoker
Member
Registered: 2024-04-06
Posts: 2

Re: [SOLVED] Suspend/Hibernate not working correctly

thx,fixed it

Offline

Board footer

Powered by FluxBB