NVIDIA 575 drivers fail to suspend

After upgrading my system to the latest NVIDIA stable drivers (575.57.08) it won’t successfully suspend anymore. Checking my system’s logs, I think I’ve found the culprit:

PM: Some devices failed to suspend, or early wake event detected
jun 01 09:12:50 tarcisio-desktop kernel: nvidia 0000:29:00.0: PM: failed to suspend async: error -5
jun 01 09:12:50 tarcisio-desktop kernel: nvidia 0000:29:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -5
jun 01 09:12:50 tarcisio-desktop kernel: nvidia 0000:29:00.0: PM: pci_pm_suspend(): nv_pmops_suspend [nvidia] returns -5
jun 01 09:12:50 tarcisio-desktop kernel: NVRM: GPU 0000:29: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.
jun 01 09:12:50 tarcisio-desktop kernel: ata1.00: Entering standby power mode

Is anyone experiencing the same issues? Possible fixes for this? It was resuming just fine with the previous driver version and now it just blinks the screen and comes back to GNOME’s lockscreen in a very laggy state, then coming back to normal.

1 Like

try to enable user session suspending

$ cat /usr/lib/systemd/system/systemd-suspend.service.d/disable_freeze_user_session.conf
[Service]
Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=true"

Deletion of the file and directory would be better.

sudo rm -rf /usr/lib/systemd/system/systemd-suspend.service.d/
1 Like

It turns out upon further testing, the system is now suspending and resuming from sleep successfully. I had tried deleting the systemd-suspend.service.d/

but this didn’t work. My PC would stay on while entering an unrecoverable state, requiring a forced shutdown and reboot. Adding the /usr/lib/systemd/system/systemd-suspend.service.d/disable_freeze_user_session.conf containing:

[Service]
Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=true"

solved the issue for now. Editing the file then rebooting, and now my system is suspending and resuming multiple times in a row with no problems!

1 Like