The SUSPEND operation is no longer working

I’m a user with an HP laptop. All of a sudden, after OS updates all week, the suspend functionality is no longer working. When I select suspend from the Gnome menu, the laptop goes into lock mode only. Also, in the Tweaks settings, the system is set to suspend when the lid is closed. It doesn’t - the running programs are shifted to the external monitors which are still on.

If the power button setting is set to either suspend or hibernate. When it is activated it does neither, but the result is the same, a lock screen.

Currently on Fedora 36 with Nvidia GPU.

I thought this might be helpful. I ran journalctl --boot -1 | sed -n -r “/Starting.+Suspend/,/Finished.+Suspend/p” and the results were:

Sep 19 12:54:50 fedora systemd[1]: Starting systemd-suspend.service - System Suspend...
Sep 19 12:54:50 fedora systemd-sleep[15615]: Entering sleep state 'suspend'...
Sep 19 12:54:50 fedora kernel: PM: suspend entry (deep)
Sep 19 12:54:51 fedora kernel: Filesystems sync: 1.308 seconds
Sep 19 12:55:11 fedora kernel: Freezing user space processes ... 
Sep 19 12:55:11 fedora kernel: Freezing of tasks failed after 20.000 seconds (1 tasks refusing to freeze, wq_busy=0):
Sep 19 12:55:11 fedora kernel: task:gnome-shell     state:D stack:    0 pid:13451 ppid: 13284 flags:0x00000006
Sep 19 12:55:11 fedora kernel: Call Trace:
Sep 19 12:55:11 fedora kernel:  <TASK>
Sep 19 12:55:11 fedora kernel:  __schedule+0x335/0x1240
Sep 19 12:55:11 fedora kernel:  ? avc_alloc_node+0x27/0x180
Sep 19 12:55:11 fedora kernel:  ? kmem_cache_alloc+0x16d/0x2b0
Sep 19 12:55:11 fedora kernel:  schedule+0x5d/0xe0
Sep 19 12:55:11 fedora kernel:  rwsem_down_read_slowpath+0x38a/0x4a0
Sep 19 12:55:11 fedora kernel:  nvkms_ioctl_from_kapi+0x22/0x90 [nvidia_modeset]
Sep 19 12:55:11 fedora kernel:  _nv000092kms+0x42/0x50 [nvidia_modeset]
Sep 19 12:55:11 fedora kernel:  ? nv_drm_framebuffer_destroy+0x37/0x50 [nvidia_drm]
Sep 19 12:55:11 fedora kernel:  ? drm_mode_rmfb+0x1ab/0x1d0
Sep 19 12:55:11 fedora kernel:  ? schedule+0x67/0xe0
Sep 19 12:55:11 fedora kernel:  ? drm_mode_rmfb+0x1d0/0x1d0
Sep 19 12:55:11 fedora kernel:  ? drm_ioctl_kernel+0x9e/0x150
Sep 19 12:55:11 fedora kernel:  ? drm_ioctl+0x21f/0x420
Sep 19 12:55:11 fedora kernel:  ? drm_mode_rmfb+0x1d0/0x1d0
Sep 19 12:55:11 fedora kernel:  ? rt_mutex_adjust_prio_chain+0x45f/0x950
Sep 19 12:55:11 fedora kernel:  ? _raw_spin_unlock_irq+0x1b/0x35
Sep 19 12:55:11 fedora kernel:  ? eventfd_write+0x8b/0x2d0
Sep 19 12:55:11 fedora kernel:  ? wake_up_q+0x90/0x90
Sep 19 12:55:11 fedora kernel:  ? __x64_sys_ioctl+0x8d/0xd0
Sep 19 12:55:11 fedora kernel:  ? do_syscall_64+0x58/0x80
Sep 19 12:55:11 fedora kernel:  ? syscall_exit_to_user_mode+0x17/0x40
Sep 19 12:55:11 fedora kernel:  ? do_syscall_64+0x67/0x80
Sep 19 12:55:11 fedora kernel:  ? syscall_exit_to_user_mode+0x17/0x40
Sep 19 12:55:11 fedora kernel:  ? do_syscall_64+0x67/0x80
Sep 19 12:55:11 fedora kernel:  ? __irq_exit_rcu+0x3d/0x140
Sep 19 12:55:11 fedora kernel:  ? entry_SYSCALL_64_after_hwframe+0x63/0xcd
Sep 19 12:55:11 fedora kernel:  </TASK>
Sep 19 12:55:11 fedora kernel: 
Sep 19 12:55:11 fedora kernel: OOM killer enabled.
Sep 19 12:55:11 fedora kernel: Restarting tasks ... done.
Sep 19 12:55:11 fedora rtkit-daemon[1077]: The canary thread is apparently starving. Taking action.
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Demoting known real-time threads.
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Successfully demoted thread 14146 of process 13863 (/usr/bin/easyeffects).
Sep 19 12:55:11 fedora systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Successfully demoted thread 13640 of process 13631 (/usr/bin/pipewire-pulse).
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Successfully demoted thread 13631 of process 13631 (/usr/bin/pipewire-pulse).
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Successfully demoted thread 13482 of process 13429 (/usr/bin/wireplumber).
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Successfully demoted thread 13429 of process 13429 (/usr/bin/wireplumber).
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Successfully demoted thread 13484 of process 13427 (/usr/bin/pipewire).
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Successfully demoted thread 13427 of process 13427 (/usr/bin/pipewire).
Sep 19 12:55:11 fedora rtkit-daemon[1077]: Demoted 7 threads.
Sep 19 12:55:11 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 12:55:12 fedora bluetoothd[1048]: Controller resume with wake event 0x0
Sep 19 12:55:12 fedora kernel: PM: suspend exit
Sep 19 12:55:12 fedora kernel: PM: suspend entry (s2idle)
Sep 19 12:55:32 fedora kernel: Filesystems sync: 0.013 seconds
Sep 19 12:55:32 fedora kernel: Freezing user space processes ... 
Sep 19 12:55:32 fedora kernel: Freezing of tasks failed after 20.007 seconds (1 tasks refusing to freeze, wq_busy=0):
Sep 19 12:55:32 fedora kernel: task:gnome-shell     state:D stack:    0 pid:13451 ppid: 13284 flags:0x00000006
Sep 19 12:55:32 fedora kernel: Call Trace:
Sep 19 12:55:32 fedora kernel:  <TASK>
Sep 19 12:55:32 fedora kernel:  __schedule+0x335/0x1240
Sep 19 12:55:32 fedora kernel:  ? avc_alloc_node+0x27/0x180
Sep 19 12:55:32 fedora kernel:  ? kmem_cache_alloc+0x16d/0x2b0
Sep 19 12:55:32 fedora kernel:  schedule+0x5d/0xe0
Sep 19 12:55:32 fedora kernel:  rwsem_down_read_slowpath+0x38a/0x4a0
Sep 19 12:55:32 fedora kernel:  nvkms_ioctl_from_kapi+0x22/0x90 [nvidia_modeset]
Sep 19 12:55:32 fedora kernel:  _nv000092kms+0x42/0x50 [nvidia_modeset]
Sep 19 12:55:32 fedora kernel:  ? nv_drm_framebuffer_destroy+0x37/0x50 [nvidia_drm]
Sep 19 12:55:32 fedora kernel:  ? drm_mode_rmfb+0x1ab/0x1d0
Sep 19 12:55:32 fedora kernel:  ? schedule+0x67/0xe0
Sep 19 12:55:32 fedora kernel:  ? drm_mode_rmfb+0x1d0/0x1d0
Sep 19 12:55:32 fedora kernel:  ? drm_ioctl_kernel+0x9e/0x150
Sep 19 12:55:32 fedora kernel:  ? drm_ioctl+0x21f/0x420
Sep 19 12:55:32 fedora kernel:  ? drm_mode_rmfb+0x1d0/0x1d0
Sep 19 12:55:32 fedora kernel:  ? rt_mutex_adjust_prio_chain+0x45f/0x950
Sep 19 12:55:32 fedora kernel:  ? _raw_spin_unlock_irq+0x1b/0x35
Sep 19 12:55:32 fedora kernel:  ? eventfd_write+0x8b/0x2d0
Sep 19 12:55:32 fedora kernel:  ? wake_up_q+0x90/0x90
Sep 19 12:55:32 fedora kernel:  ? __x64_sys_ioctl+0x8d/0xd0
Sep 19 12:55:32 fedora kernel:  ? do_syscall_64+0x58/0x80
Sep 19 12:55:32 fedora kernel:  ? syscall_exit_to_user_mode+0x17/0x40
Sep 19 12:55:32 fedora kernel:  ? do_syscall_64+0x67/0x80
Sep 19 12:55:32 fedora kernel:  ? syscall_exit_to_user_mode+0x17/0x40
Sep 19 12:55:32 fedora kernel:  ? do_syscall_64+0x67/0x80
Sep 19 12:55:32 fedora kernel:  ? __irq_exit_rcu+0x3d/0x140
Sep 19 12:55:32 fedora kernel:  ? entry_SYSCALL_64_after_hwframe+0x63/0xcd
Sep 19 12:55:32 fedora kernel:  </TASK>
Sep 19 12:55:32 fedora kernel: 
Sep 19 12:55:32 fedora kernel: OOM killer enabled.
Sep 19 12:55:32 fedora kernel: Restarting tasks ... done.
Sep 19 12:55:32 fedora rtkit-daemon[1077]: The canary thread is apparently starving. Taking action.
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Demoting known real-time threads.
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Successfully demoted thread 14146 of process 13863 (/usr/bin/easyeffects).
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Successfully demoted thread 13640 of process 13631 (/usr/bin/pipewire-pulse).
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Successfully demoted thread 13631 of process 13631 (/usr/bin/pipewire-pulse).
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Successfully demoted thread 13482 of process 13429 (/usr/bin/wireplumber).
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Successfully demoted thread 13429 of process 13429 (/usr/bin/wireplumber).
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Successfully demoted thread 13484 of process 13427 (/usr/bin/pipewire).
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Successfully demoted thread 13427 of process 13427 (/usr/bin/pipewire).
Sep 19 12:55:32 fedora rtkit-daemon[1077]: Demoted 7 threads.
Sep 19 12:55:32 fedora bluetoothd[1048]: Controller resume with wake event 0x0
Sep 19 12:55:32 fedora systemd-sleep[15615]: Failed to put system to sleep. System resumed again: Device or resource busy
Sep 19 12:55:32 fedora kernel: PM: suspend exit
Sep 19 12:55:33 fedora gnome-shell[13451]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
Sep 19 12:55:33 fedora gnome-shell[13451]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
Sep 19 12:55:33 fedora gnome-shell[13451]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
Sep 19 12:55:33 fedora gnome-shell[13451]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
Sep 19 12:55:33 fedora systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 12:55:33 fedora systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
Sep 19 12:55:33 fedora kernel: rfkill: input handler disabled
Sep 19 12:55:33 fedora systemd[1]: Failed to start systemd-suspend.service - System Suspend.
Sep 19 12:55:33 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Sep 19 12:55:33 fedora systemd[1]: Dependency failed for suspend.target - Suspend.
Sep 19 12:55:33 fedora systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'.
Sep 19 12:55:33 fedora systemd[1]: systemd-suspend.service: Consumed 3.242s CPU time.
Sep 19 12:55:33 fedora systemd-logind[1089]: Operation 'sleep' finished.
Sep 19 12:55:33 fedora systemd[1]: Stopped target sleep.target - Sleep.
Sep 19 12:55:33 fedora ModemManager[1356]: <info>  [sleep-monitor] system is resuming
Sep 19 12:55:33 fedora NetworkManager[1761]: <info>  [1663606533.9798] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Sep 19 12:55:33 fedora NetworkManager[1761]: <info>  [1663606533.9801] device (enp61s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Sep 19 12:55:33 fedora systemd[1]: Starting nvidia-resume.service - NVIDIA system resume actions...
Sep 19 12:55:33 fedora suspend[15641]: nvidia-resume.service
Sep 19 12:55:33 fedora logger[15641]: <13>Sep 19 12:55:33 suspend: nvidia-resume.service
Sep 19 12:55:33 fedora systemd[1]: nvidia-resume.service: Deactivated successfully.

Kinda, sorta found a solution at here.