Need help diagnosing failed hibernation

I forgot to say that after shutting down Spotify I was able to hibernate my system.

Something that I don’t think I’ve mentioned so far was that I’m on a dual boot with Windows 10, but I always had this setup and this problem showed up a few months ago, and I’ve always had an issue since the first day with hibernation, and the screen blacks out, my peripherals also black out, only for the screen to light up again (but everything is black) as well as the peripherals, and then after that it shuts down and you can hear a “pop”, like an electric discharge, in my headset. If the headset is not plugged in nothing is heard on the laptop speakers.

As I didn’t know, I’ve never told you:

  • When rebooting from Windows to Manjaro, cold boot into Manjaro, I.E. shot down Windows and then press the power button to start your laptop again and go into Manjaro
  • When rebooting from Manjaro to Windows, you can still warm boot

Does this solve the issue? If not: I’m all out of novel ideas!

:sob:

I don’t think I understand what you mean, but I always keep Windows shut down, since I only boot it up occasionally to play some games. This means that I always hibernate Manjaro, open up Windows, shut down Windows and the boot Manjaro back up. This also means that Windows is always off or on, never hibernated.

When it comes to Manjaro my uptime is always in the order of days/weeks because I always hibernate it.

Should I reboot my system, log into Manjaro, run the script provided in the Manjaro Wiki, perform a failed hibernating and then run the script again and post the result here?

Not a good idea: always completely shut down the one OS before booting the other one. (any of them)

Please try that first and if that still fails, I’m again all out of bright ideas!

:sob:

Nope, yesterday I shut down Manjaro, went to Windows, shut down Windows as well and today after waking up I opened Manjaro with a bunch of crap, all 9 workspaces filled up, Spotify included, and the hibernation failed. After closing Spotify the hibernation also failed.

Error is the same as before:

ago 16 12:34:44 UD-Legion systemd[1]: Starting Hibernate...
ago 16 12:34:44 UD-Legion systemd-sleep[5771]: [11] INFO: # Pre-suspend hook
ago 16 12:34:44 UD-Legion systemd-sleep[5771]: [11] INFO: Previous state was: {'type': 'done', 'switch_id': '20210816T121036', 'current_mode': 'integrated'}
ago 16 12:34:44 UD-Legion systemd-sleep[5771]: [12] INFO: Switching option: none
ago 16 12:34:44 UD-Legion systemd-sleep[5771]: [12] INFO: Turning Nvidia GPU back on
ago 16 12:34:44 UD-Legion systemd-sleep[5821]: modinfo: ERROR: Module bbswitch not found.
ago 16 12:34:44 UD-Legion systemd-sleep[5825]: modinfo: ERROR: Module acpi_call not found.
ago 16 12:34:45 UD-Legion systemd-sleep[5771]: [477] INFO: switching=none, nothing to do
ago 16 12:34:45 UD-Legion systemd-sleep[5771]: [477] INFO: Writing state {'type': 'pending_post_resume', 'switch_id': '20210816T121036', 'current_mode': 'integrated'}
ago 16 12:34:45 UD-Legion systemd-sleep[5771]: [477] INFO: Pre-suspend hook completed successfully.
ago 16 12:34:45 UD-Legion systemd-sleep[5768]: Suspending system...
ago 16 12:34:47 UD-Legion systemd-sleep[5768]: Failed to suspend system. System resumed again: Cannot allocate memory
ago 16 12:34:47 UD-Legion systemd-sleep[5923]: [20] INFO: # Post-resume hook
ago 16 12:34:47 UD-Legion systemd-sleep[5923]: [20] INFO: Previous state was: {'type': 'pending_post_resume', 'switch_id': '20210816T121036', 'current_mode': 'integrated'}
ago 16 12:34:47 UD-Legion systemd-sleep[5923]: [21] INFO: Turning Nvidia GPU off again
ago 16 12:34:47 UD-Legion systemd-sleep[5974]: modinfo: ERROR: Module bbswitch not found.
ago 16 12:34:47 UD-Legion systemd-sleep[5981]: modinfo: ERROR: Module acpi_call not found.
ago 16 12:34:47 UD-Legion systemd-sleep[5923]: [580] INFO: switching=none, nothing to do
ago 16 12:34:47 UD-Legion systemd-sleep[5923]: [580] INFO: Writing state {'type': 'done', 'switch_id': '20210816T121036', 'current_mode': 'integrated'}
ago 16 12:34:47 UD-Legion systemd-sleep[5923]: [580] INFO: Post-resume hook completed successfully.
ago 16 12:34:48 UD-Legion systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
ago 16 12:34:48 UD-Legion systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
ago 16 12:34:48 UD-Legion systemd[1]: Failed to start Hibernate.
ago 16 12:34:48 UD-Legion systemd[1]: systemd-hibernate.service: Consumed 2.551s CPU time.

And the memory consuption is still low:

$ free -m
               total        used        free      shared  buff/cache   available
Mem:            7851        3908        2653         534        1289        3145
Swap:          12286         316       11970

Any further help is appreciated considering that I use hibernation as a fundamental piece of my workflow, as I always have my worked “saved” in the workspaces that I’m using, such that I always know what I was doing before I stopped working on it.

Last-ditch effort:

That’s a quite new machine: Did you ever try kernel 5.10 or did you avoid doing that because of the other post?

:thinking:

If even that doesn’t help: I’m totally out of ideas!!!

:sob:

I’ve just updated to kernel 5.10, after a clean boot, I’ve attempted to hibernate my machine three times, with a bunch of random programs running, including Spotify. The output from journalctl is the following:

-- Boot b56327e508ce41b1be96b98c4c0f6ebf --
ago 19 19:42:18 UD-Legion systemd[1]: Starting Hibernate...
ago 19 19:42:18 UD-Legion systemd-sleep[15161]: [10] INFO: # Pre-suspend hook
ago 19 19:42:18 UD-Legion systemd-sleep[15161]: [10] INFO: Previous state was: {'type': 'done', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:42:18 UD-Legion systemd-sleep[15161]: [11] INFO: Switching option: none
ago 19 19:42:18 UD-Legion systemd-sleep[15161]: [11] INFO: Turning Nvidia GPU back on
ago 19 19:42:18 UD-Legion systemd-sleep[15225]: modinfo: ERROR: Module bbswitch not found.
ago 19 19:42:18 UD-Legion systemd-sleep[15230]: modinfo: ERROR: Module acpi_call not found.
ago 19 19:42:19 UD-Legion systemd-sleep[15161]: [485] INFO: switching=none, nothing to do
ago 19 19:42:19 UD-Legion systemd-sleep[15161]: [486] INFO: Writing state {'type': 'pending_post_resume', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:42:19 UD-Legion systemd-sleep[15161]: [486] INFO: Pre-suspend hook completed successfully.
ago 19 19:42:19 UD-Legion systemd-sleep[15158]: Suspending system...
ago 19 19:42:21 UD-Legion systemd-sleep[15158]: Failed to suspend system. System resumed again: Cannot allocate memory
ago 19 19:42:21 UD-Legion systemd-sleep[15316]: [16] INFO: # Post-resume hook
ago 19 19:42:21 UD-Legion systemd-sleep[15316]: [16] INFO: Previous state was: {'type': 'pending_post_resume', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:42:21 UD-Legion systemd-sleep[15316]: [17] INFO: Turning Nvidia GPU off again
ago 19 19:42:21 UD-Legion systemd-sleep[15411]: modinfo: ERROR: Module bbswitch not found.
ago 19 19:42:21 UD-Legion systemd-sleep[15419]: modinfo: ERROR: Module acpi_call not found.
ago 19 19:42:22 UD-Legion systemd-sleep[15316]: [554] INFO: switching=none, nothing to do
ago 19 19:42:22 UD-Legion systemd-sleep[15316]: [554] INFO: Writing state {'type': 'done', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:42:22 UD-Legion systemd-sleep[15316]: [555] INFO: Post-resume hook completed successfully.
ago 19 19:42:22 UD-Legion systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
ago 19 19:42:22 UD-Legion systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
ago 19 19:42:22 UD-Legion systemd[1]: Failed to start Hibernate.
ago 19 19:42:22 UD-Legion systemd[1]: systemd-hibernate.service: Consumed 2.795s CPU time.
ago 19 19:45:15 UD-Legion systemd[1]: Starting Hibernate...
ago 19 19:45:15 UD-Legion systemd-sleep[16109]: [10] INFO: # Pre-suspend hook
ago 19 19:45:15 UD-Legion systemd-sleep[16109]: [10] INFO: Previous state was: {'type': 'done', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:45:15 UD-Legion systemd-sleep[16109]: [11] INFO: Switching option: none
ago 19 19:45:15 UD-Legion systemd-sleep[16109]: [11] INFO: Turning Nvidia GPU back on
ago 19 19:45:15 UD-Legion systemd-sleep[16171]: modinfo: ERROR: Module bbswitch not found.
ago 19 19:45:15 UD-Legion systemd-sleep[16174]: modinfo: ERROR: Module acpi_call not found.
ago 19 19:45:15 UD-Legion systemd-sleep[16109]: [489] INFO: switching=none, nothing to do
ago 19 19:45:15 UD-Legion systemd-sleep[16109]: [489] INFO: Writing state {'type': 'pending_post_resume', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:45:15 UD-Legion systemd-sleep[16109]: [489] INFO: Pre-suspend hook completed successfully.
ago 19 19:45:15 UD-Legion systemd-sleep[16106]: Suspending system...
ago 19 19:45:17 UD-Legion systemd-sleep[16106]: Failed to suspend system. System resumed again: Cannot allocate memory
ago 19 19:45:17 UD-Legion systemd-sleep[16260]: [32] INFO: # Post-resume hook
ago 19 19:45:17 UD-Legion systemd-sleep[16260]: [33] INFO: Previous state was: {'type': 'pending_post_resume', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:45:17 UD-Legion systemd-sleep[16260]: [35] INFO: Turning Nvidia GPU off again
ago 19 19:45:17 UD-Legion systemd-sleep[16365]: modinfo: ERROR: Module bbswitch not found.
ago 19 19:45:17 UD-Legion systemd-sleep[16374]: modinfo: ERROR: Module acpi_call not found.
ago 19 19:45:18 UD-Legion systemd-sleep[16260]: [558] INFO: switching=none, nothing to do
ago 19 19:45:18 UD-Legion systemd-sleep[16260]: [558] INFO: Writing state {'type': 'done', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:45:18 UD-Legion systemd-sleep[16260]: [559] INFO: Post-resume hook completed successfully.
ago 19 19:45:18 UD-Legion systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
ago 19 19:45:18 UD-Legion systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
ago 19 19:45:18 UD-Legion systemd[1]: Failed to start Hibernate.
ago 19 19:45:18 UD-Legion systemd[1]: systemd-hibernate.service: Consumed 2.375s CPU time.
ago 19 19:46:54 UD-Legion systemd[1]: Starting Hibernate...
ago 19 19:46:54 UD-Legion systemd-sleep[16619]: [10] INFO: # Pre-suspend hook
ago 19 19:46:54 UD-Legion systemd-sleep[16619]: [10] INFO: Previous state was: {'type': 'done', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:46:54 UD-Legion systemd-sleep[16619]: [11] INFO: Switching option: none
ago 19 19:46:54 UD-Legion systemd-sleep[16619]: [11] INFO: Turning Nvidia GPU back on
ago 19 19:46:54 UD-Legion systemd-sleep[16676]: modinfo: ERROR: Module bbswitch not found.
ago 19 19:46:54 UD-Legion systemd-sleep[16679]: modinfo: ERROR: Module acpi_call not found.
ago 19 19:46:54 UD-Legion systemd-sleep[16619]: [524] INFO: switching=none, nothing to do
ago 19 19:46:54 UD-Legion systemd-sleep[16619]: [524] INFO: Writing state {'type': 'pending_post_resume', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:46:54 UD-Legion systemd-sleep[16619]: [525] INFO: Pre-suspend hook completed successfully.
ago 19 19:46:54 UD-Legion systemd-sleep[16616]: Suspending system...
ago 19 19:46:56 UD-Legion systemd-sleep[16616]: Failed to suspend system. System resumed again: Cannot allocate memory
ago 19 19:46:56 UD-Legion systemd-sleep[16771]: [26] INFO: # Post-resume hook
ago 19 19:46:56 UD-Legion systemd-sleep[16771]: [26] INFO: Previous state was: {'type': 'pending_post_resume', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:46:56 UD-Legion systemd-sleep[16771]: [27] INFO: Turning Nvidia GPU off again
ago 19 19:46:56 UD-Legion systemd-sleep[16872]: modinfo: ERROR: Module bbswitch not found.
ago 19 19:46:56 UD-Legion systemd-sleep[16881]: modinfo: ERROR: Module acpi_call not found.
ago 19 19:46:57 UD-Legion systemd-sleep[16771]: [547] INFO: switching=none, nothing to do
ago 19 19:46:57 UD-Legion systemd-sleep[16771]: [548] INFO: Writing state {'type': 'done', 'switch_id': '20210819T175903', 'current_mode': 'integrated'}
ago 19 19:46:57 UD-Legion systemd-sleep[16771]: [548] INFO: Post-resume hook completed successfully.
ago 19 19:46:57 UD-Legion systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
ago 19 19:46:57 UD-Legion systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
ago 19 19:46:57 UD-Legion systemd[1]: Failed to start Hibernate.
ago 19 19:46:57 UD-Legion systemd[1]: systemd-hibernate.service: Consumed 2.515s CPU time.

However something strange was being outputted to the screen. I took my cellphone and recorded it, on the third hibernation attempt. What happened was that it locked the screen, I had to unlock it, and then it would darken the screen and show some messages which I assume come directly from the kernel, as they look like messages you would find during a boot or shutdown process. The messages were the following:

[6200.052148] PM: hibernation: Image allocation is 156834 pages short
[6376.080606] PM: hibernation: Image allocation is 116144 pages short
[8474.940000] PM: hibernation: Image allocation is 132252 pages short

However after shutting down Spotify I managed to hibernate my laptop. However for some reason it always required me to unlock my screen before showing those kernels messages, then it would darken the screen again, as well as peripherals (e.g.: mouse), put the screen back on again showing the same kernel messages written before, and toggling peripherals on as well, and then it would finally hibernate by making a “pop” sound on my headset.

But hey, at least it hibernates, even if it has major issues.

Could this be related to Nvidia and those warning that says that those programs cannot be found? Because Nvidia has always given me issues on Linux so far.

Here’s some output that might be relevant:

$ uname -a
Linux UD-Legion 5.10.59-1-MANJARO #1 SMP PREEMPT Sun Aug 15 13:11:32 UTC 2021 x86_64 GNU/Linux
 $ free -m
               total        used        free      shared  buff/cache   available
Mem:            7846        3086        2872         926        1887        3543
Swap:          12286          87       12199
$ nvidia-smi
Thu Aug 19 19:57:53 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   28C    P0    N/A /  N/A |      0MiB /  4042MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
$ mnj-wiki-script.sh
[warning] Not running as root: skipping zswap info
mono	14188	kB
python3	1424	kB
pulseaudio	1392	kB
polkitd	1356	kB
(sd-pam)	1288	kB
colord	1184	kB
espanso	1104	kB
dunst	860	kB
udisksd	740	kB
espanso	672	kB
cupsd	580	kB
accounts-daemon	580	kB
at-spi2-registr	560	kB
xfconfd	476	kB
dbus-daemon	428	kB
gvfsd	396	kB
systemd-udevd	392	kB
gvfsd-metadata	388	kB
systemd	384	kB
NetworkManager	372	kB
wpa_supplicant	368	kB
gsettings-helpe	336	kB
atom	300	kB
dbus-daemon	292	kB
zsh	284	kB
zsh	276	kB
systemd-logind	272	kB
picom	268	kB
upowerd	248	kB
systemd-journal	228	kB
gvfsd-fuse	220	kB
mount.ntfs-3g	216	kB
systemd-timesyn	208	kB
gvfs-udisks2-vo	208	kB
ksuperkey	204	kB
dbus-daemon	192	kB
systemd	168	kB
at-spi-bus-laun	132	kB
dconf-service	52	kB
rtkit-daemon	32	kB
gvfsd-trash	8	kB
evinced	8	kB
zswap-shrink	
zswap1	
zswap1	
zsh	0	kB
zsh	0	kB
zsh	0	kB
zsh	0	kB
Xorg	0	kB
xfce4-power-man	0	kB
xclip	0	kB
writeback	
WebExtensions	0	kB
Web	Content0	kB
Web	Content0	kB
Web	Content0	kB
Web	Content0	kB
Web	Content0	kB
watchdogd	
unclutter	0	kB
udiskie	0	kB
tpm_dev_wq	
thunderbird	0	kB
spotify	0	kB
spotify	0	kB
spotify	0	kB
spotify	0	kB
spotify	0	kB
spotify	0	kB
sort	0	kB
slack	0	kB
slack	0	kB
slack	0	kB
slack	0	kB
slack	0	kB
slack	0	kB
slack	0	kB
sdhci	
scsi_tmf_2	
scsi_tmf_1	
scsi_tmf_0	
scsi_eh_2	
scsi_eh_1	
scsi_eh_0	
RDD	Process0	kB
rcu_tasks_trace	
rcu_tasks_rude_	
rcu_tasks_kthre	
rcu_preempt	
rcu_par_gp	
rcu_gp	
rcuc/3	
rcuc/2	
rcuc/1	
rcuc/0	
rcub/0	
python3	0	kB
polybar	0	kB
polkit-gnome-au	0	kB
oom_reaper	
nv_queue	
nv_queue	
nvme-wq	
nvme-reset-wq	
nvme-delete-wq	
netns	
nautilus	0	kB
more	0	kB
mnj-wiki-script	0	kB
mnj-wiki-script	0	kB
mm_percpu_wq	
migration/3	
migration/2	
migration/1	
migration/0	
micro	0	kB
lightdm	0	kB
lightdm	0	kB
kworker/u9:2-rb_allocator	
kworker/u9:1-rb_allocator	
kworker/u9:0-i915_flip	
kworker/u8:4-events_unbound	
kworker/u8:2-events_power_efficient	
kworker/u8:1-events_power_efficient	
kworker/u8:0-events_unbound	
kworker/3:2-events	
kworker/3:1-rcu_gp	
kworker/3:1H-kblockd	
kworker/3:0H-events_highpri	
kworker/3:0-events_freezable	
kworker/2:2-events	
kworker/2:1-mm_percpu_wq	
kworker/2:1H-events_highpri	
kworker/2:0H-events_highpri	
kworker/2:0	
kworker/1:2-mm_percpu_wq	
kworker/1:1-pm	
kworker/1:1H-events_highpri	
kworker/1:0H-events_highpri	
kworker/1:0-events	
kworker/0:2-events	
kworker/0:1H-kblockd	
kworker/0:1-events	
kworker/0:0H-events_highpri	
kworker/0:0-events	
kthrotld	
kthreadd	
kswapd0	
kstrp	
ksoftirqd/3	
ksoftirqd/2	
ksoftirqd/1	
ksoftirqd/0	
ksmd	
kitty	0	kB
kitty	0	kB
kitty	0	kB
kintegrityd	
khungtaskd	
khugepaged	
kdevtmpfs	
kcompactd0	
kblockd	
kauditd	
jbd2/nvme0n1p6-	
irq/137-iwlwifi	
irq/135-mei_me	
irq/134-mmc0	
irq/126-aerdrv	
irq/123-aerdrv	
ipv6_addrconf	
idle_inject/3	
idle_inject/2	
idle_inject/1	
idle_inject/0	
i3	0	kB
gitstatusd-linu	0	kB
gitstatusd-linu	0	kB
gitstatusd-linu	0	kB
flashfocus	0	kB
firefox	0	kB
ext4-rsv-conver	
evince	0	kB
evince	0	kB
evince	0	kB
evince	0	kB
electron	0	kB
electron	0	kB
electron	0	kB
electron	0	kB
electron	0	kB
electron	0	kB
edac-poller	
Discord	0	kB
Discord	0	kB
Discord	0	kB
Discord	0	kB
Discord	0	kB
Discord	0	kB
Discord	0	kB
Discord	0	kB
devfreq_wq	
cryptd	
cpuhp/3	
cpuhp/2	
cpuhp/1	
cpuhp/0	
charger_manager	
cfg80211	
card0-crtc2	
card0-crtc1	
card0-crtc0	
blkcg_punt_bio	
awk	0	kB
awk	0	kB
atom	0	kB
ata_sff	
acpi_thermal_pm

Good! So your original problem is hereby solved, so I’ve marked this answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or :heart: or :+1: if you agree)

:innocent:
P.S. In the future, please don’t forget to come back and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.


As to your new issues, they are application specific, so this is the process to debug application per application:

  • Log on
  • Close all autostart programs (if any)
  • Start 1 (one) application
  • Hibernate
  • Debug

Rinse and repeat the above and create a new post for every issue you wouldn’t be able to resolve yourself. :+1:

P.S. We won’t charge additional :money_with_wings: if you do create additional topics. :grin:

I was just further debugging the hibernation, and ignore the whole screenlock showing up and then disappearing part, that’s a unrelated problem that showed up with the last update.

I suppose that this is now a Spotify driven problem rather than a problem with Manjaro or the Linux kernel.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

This thread is meant to be a follow up of a previous support thread on the same issue, also authored by me, that was “solved” by updating the Linux kernel but now came back. The original thread is here, but you don’t need to see it as I will describe everything I know and what I have done so far.

The issue

On some circumstances I am unable to hibernate my machine. Usually it’s something like having Spotify open or having a lot of things opened. The error that systemd reports is always the same and looks like the following:

ago 28 13:05:15 UD-Legion systemd[1]: Starting Hibernate...
ago 28 13:05:15 UD-Legion systemd-sleep[91318]: [10] INFO: # Pre-suspend hook
ago 28 13:05:15 UD-Legion systemd-sleep[91318]: [10] INFO: Previous state was: {'type': 'done', 'switch_id': '20210826T112121', 'current_mode': 'integrated'}
ago 28 13:05:15 UD-Legion systemd-sleep[91318]: [11] INFO: Switching option: none
ago 28 13:05:15 UD-Legion systemd-sleep[91318]: [11] INFO: Turning Nvidia GPU back on
ago 28 13:05:15 UD-Legion systemd-sleep[91372]: modinfo: ERROR: Module bbswitch not found.
ago 28 13:05:15 UD-Legion systemd-sleep[91376]: modinfo: ERROR: Module acpi_call not found.
ago 28 13:05:16 UD-Legion systemd-sleep[91318]: [487] INFO: switching=none, nothing to do
ago 28 13:05:16 UD-Legion systemd-sleep[91318]: [487] INFO: Writing state {'type': 'pending_post_resume', 'switch_id': '20210826T112121', 'current_mode': 'integrated'}
ago 28 13:05:16 UD-Legion systemd-sleep[91318]: [487] INFO: Pre-suspend hook completed successfully.
ago 28 13:05:16 UD-Legion systemd-sleep[91315]: Suspending system...
ago 28 13:05:17 UD-Legion systemd-sleep[91315]: Failed to suspend system. System resumed again: Cannot allocate memory
ago 28 13:05:18 UD-Legion systemd-sleep[91469]: [15] INFO: # Post-resume hook
ago 28 13:05:18 UD-Legion systemd-sleep[91469]: [16] INFO: Previous state was: {'type': 'pending_post_resume', 'switch_id': '20210826T112121', 'current_mode': 'integrated'}
ago 28 13:05:18 UD-Legion systemd-sleep[91469]: [17] INFO: Turning Nvidia GPU off again
ago 28 13:05:18 UD-Legion systemd-sleep[91556]: modinfo: ERROR: Module bbswitch not found.
ago 28 13:05:18 UD-Legion systemd-sleep[91564]: modinfo: ERROR: Module acpi_call not found.
ago 28 13:05:18 UD-Legion systemd-sleep[91469]: [544] INFO: switching=none, nothing to do
ago 28 13:05:18 UD-Legion systemd-sleep[91469]: [544] INFO: Writing state {'type': 'done', 'switch_id': '20210826T112121', 'current_mode': 'integrated'}
ago 28 13:05:18 UD-Legion systemd-sleep[91469]: [544] INFO: Post-resume hook completed successfully.
ago 28 13:05:18 UD-Legion systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
ago 28 13:05:18 UD-Legion systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
ago 28 13:05:18 UD-Legion systemd[1]: Failed to start Hibernate.
ago 28 13:05:18 UD-Legion systemd[1]: systemd-hibernate.service: Consumed 2.515s CPU time.

In the previous thread, after updating the kernel, the problem was “solved”. Only Spotify would create this issue, but today, hibernation failed, with a few tabs open on Firefox as well as a few other programs running which I always use, showing me the same error. I was able to hibernate after closing a few tabs on Firefox, meaning that the issue isn’t with Spotify has it was pointed out in the previous thread.

Failed hibernation sequence

After the kernel update a failed hibernation does the following sequence:

  1. I issue a sudo systemctl hibernate;
  2. The lockscreen shows up;
  3. What appears to be a TTY with several messages, usually 2 or 3, saying something similar to [6200.052148] PM: hibernation: Image allocation is 156834 pages short;
  4. The lockscreen comes back up and I have to login again because the hibernation failed. The peripherals LEDs remain always on.

Successful hibernation sequence

After the kernel update a successful hibernation follows the following pattern (the first 3 steps are the same) (video available here):

  1. I issue a sudo systemctl hibernate;
  2. The lockscreen shows up;
  3. What appears to be a TTY with several messages, usually 2 or 3, saying something similar to [6200.052148] PM: hibernation: Image allocation is 156834 pages short;
  4. The screen darkens and peripherals lose their power;
  5. The TTY shows up again and peripherals get their power back;
  6. The system finally hibernates with a loud popping sound on my headset.

Systems specs

  • OS: Manjaro (installed from the Architect installer)
  • WM: i3
  • Kernel: 5.10.59-1-MANJARO x86_64
  • GPU: iGPU (Intel) + dGPU (NVIDIA 1050Ti)
  • 8 GiB of RAM and 12 GiB of swap
  • Swap is available on it’s own partition and mounted in /etc/fstab
  • rEFInd
  • Dual boot with Windows 10

TL;DR: Unable to hibernate although I have more swap than RAM, and the fix seems to be shutting down programs.

EDIT: This post was originally created on another thread, because this one was locked, but now it was moved here!

This happened again today with only a few programs opened… I’m having a hard time diagnosing this issue, and I do rely a lot on hibernation considering I’m on a laptop and I move around quite a bit, all I remember is that this issue started a few months ago and that hibernation on this machine was always problematic, but it always worked.

@_Undercover

Did you correct this?
It’s not clear to me that you did.

… just one idea of a couple

1 Like

Thanks for the reminder, I’ve changed to swappiness value using sysctl, but I forgot I had a configuration at /etc/sysctl.d/99-sysctl.conf, which means that the value was set back to 0 when I rebooted my machine…

I made this change permanent and will now test my system for another week or so, my bad.

I forgot to add that today, after hibernating, instead of having the screen darken with the TTY saying something related to image allocation being pages short, I have this:

This was earlier today and before the changes to swappiness, which means that it was still set to be zero.

Okay it seems that setting swappiness to 10 fixed it, at least so far, however my system seems to be swapping too much and, because I have a bunch of windows open, it can be quite slow when switching desktops, which isn’t nice.

For example right now I have 3.5 GiB of RAM filled up, with 8 GiB total, and 2.5 GiB of swap space filled up.

In my mind this shouldn’t be as slow as it is, which is very, because I have an NVMe SSD.

But still, I would like to only use swap for hibernation. Would setting it to 1 still possibly fix the hibernation issue, but have more stuff in RAM? Would making a custom hibernation script that would only toggle swap right before hibernation be a good workaround?

False alarm, the issue persists.

On a clean boot, didn’t even open up Spotify, only Firefox, Atom, Thunderbird and Kitty open (obviously other background services running which I’m not 100% aware), one of them refuses to hibernate.
I tried to hibernate and it failed. When I tried it again the following message was shown, in a TTY like screen:

[3434.607049] Freezing of tasks failed after 20.005 seconds (1 tasks refusing to freeze, wq_busy=0):

According to a forum post I should look in ps ax for a D on the third column.
After rebooting I looked for such an entry and found this:

     99 ?        D      0:00 [kworker/u8:1+events_unbound]

However I managed to successfully hibernate my machine, so I’ll wait for the next time I can’t hibernate and repeat this process.

If there’s anywhere I should look for errors and figure out who’s the culprit, please do let me know.

Hibernation failed, here’s the output of ps ax:

$ ps ax
    PID TTY      STAT   TIME COMMAND
      1 ?        Ss     0:00 /sbin/init
      2 ?        S      0:00 [kthreadd]
      3 ?        I<     0:00 [rcu_gp]
      4 ?        I<     0:00 [rcu_par_gp]
      8 ?        I<     0:00 [mm_percpu_wq]
      9 ?        S      0:00 [ksoftirqd/0]
     10 ?        I      0:02 [rcu_preempt]
     11 ?        S      0:00 [rcub/0]
     12 ?        S      0:00 [rcuc/0]
     13 ?        S      0:00 [migration/0]
     14 ?        S      0:00 [idle_inject/0]
     16 ?        S      0:00 [cpuhp/0]
     17 ?        S      0:00 [cpuhp/1]
     18 ?        S      0:00 [idle_inject/1]
     19 ?        S      0:00 [migration/1]
     20 ?        S      0:00 [rcuc/1]
     21 ?        S      0:00 [ksoftirqd/1]
     23 ?        I<     0:00 [kworker/1:0H-kblockd]
     24 ?        S      0:00 [cpuhp/2]
     25 ?        S      0:00 [idle_inject/2]
     26 ?        S      0:00 [migration/2]
     27 ?        S      0:00 [rcuc/2]
     28 ?        S      0:00 [ksoftirqd/2]
     30 ?        I<     0:00 [kworker/2:0H-kblockd]
     31 ?        S      0:00 [cpuhp/3]
     32 ?        S      0:00 [idle_inject/3]
     33 ?        S      0:00 [migration/3]
     34 ?        S      0:00 [rcuc/3]
     35 ?        S      0:00 [ksoftirqd/3]
     37 ?        I<     0:00 [kworker/3:0H-kblockd]
     38 ?        S      0:00 [kdevtmpfs]
     39 ?        I<     0:00 [netns]
     40 ?        S      0:00 [rcu_tasks_kthre]
     41 ?        S      0:00 [kauditd]
     43 ?        S      0:00 [khungtaskd]
     44 ?        S      0:00 [oom_reaper]
     45 ?        I<     0:00 [writeback]
     46 ?        S      0:00 [kcompactd0]
     47 ?        SN     0:00 [ksmd]
     48 ?        SN     0:00 [khugepaged]
     93 ?        I<     0:00 [kintegrityd]
     94 ?        I<     0:00 [kblockd]
     95 ?        I<     0:00 [blkcg_punt_bio]
     96 ?        I<     0:00 [edac-poller]
     97 ?        I<     0:00 [devfreq_wq]
     98 ?        S      0:00 [watchdogd]
    100 ?        S      0:02 [kswapd0]
    102 ?        I<     0:00 [kthrotld]
    103 ?        S      0:00 [irq/123-aerdrv]
    104 ?        S      0:00 [irq/126-aerdrv]
    106 ?        I<     0:00 [acpi_thermal_pm]
    107 ?        I<     0:00 [nvme-wq]
    108 ?        I<     0:00 [nvme-reset-wq]
    109 ?        I<     0:00 [nvme-delete-wq]
    112 ?        I<     0:00 [ipv6_addrconf]
    122 ?        I<     0:00 [kstrp]
    127 ?        I<     0:00 [kworker/u9:0-rb_allocator]
    136 ?        I<     0:00 [charger_manager]
    160 ?        I<     0:00 [ata_sff]
    163 ?        I<     0:00 [sdhci]
    164 ?        S      0:00 [scsi_eh_0]
    165 ?        I<     0:00 [scsi_tmf_0]
    166 ?        S      0:00 [scsi_eh_1]
    167 ?        I<     0:00 [scsi_tmf_1]
    169 ?        S      0:00 [scsi_eh_2]
    170 ?        I<     0:00 [scsi_tmf_2]
    177 ?        I<     0:00 [kworker/1:1H-events_highpri]
    184 ?        S      0:00 [jbd2/nvme0n1p6-]
    185 ?        I<     0:00 [ext4-rsv-conver]
    186 ?        I<     0:00 [kworker/2:1H-events_highpri]
    219 ?        Ss     0:00 /usr/lib/systemd/systemd-journald
    236 ?        Ss     0:00 /usr/lib/systemd/systemd-udevd
    240 ?        I<     0:00 [kworker/3:1H-kblockd]
    241 ?        I<     0:00 [kworker/0:1H-events_highpri]
    315 ?        I<     0:00 [tpm_dev_wq]
    344 ?        Ss     0:54 /usr/bin/mount.ntfs-3g /dev/nvme0n1p8 /home/undercover/ze -o rw,umask=007,uid=1000,gid=1000
    374 ?        I<     0:00 [cfg80211]
    408 ?        I<     0:00 [cryptd]
    412 ?        S      0:09 [irq/137-iwlwifi]
    418 ?        Ssl    0:00 /usr/lib/systemd/systemd-timesyncd
    466 ?        Ss     0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
    475 ?        Ssl    0:01 /usr/bin/NetworkManager --no-daemon
    484 ?        Ss     0:00 /usr/lib/systemd/systemd-logind
    497 ?        Ss     0:00 /usr/bin/cupsd -l
    499 ?        Ssl    2:29 /usr/bin/mono /opt/duplicati-latest/Duplicati.Server.exe --webservice-port=8200
    515 ?        I<     0:00 [kworker/u9:1-rb_allocator]
    522 ?        Ssl    0:00 /usr/lib/colord
    748 ?        Ss     0:00 /usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant
    852 ?        Ss     0:00 /usr/bin/python3 -u -m optimus_manager.daemon
    855 ?        SLsl   0:00 /usr/bin/lightdm
    882 tty7     Ssl+   7:35 /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
    890 ?        Ssl    0:00 /usr/lib/accounts-daemon
    924 ?        Ssl    0:00 /usr/lib/polkit-1/polkitd --no-debug
   1099 ?        Ssl    0:00 /usr/lib/upowerd
   1134 ?        Sl     0:00 lightdm --session-child 12 19
   1160 ?        Ss     0:00 /usr/lib/systemd/systemd --user
   1161 ?        S      0:00 (sd-pam)
   1169 ?        Ss     0:02 i3
   1182 ?        Ss     0:04 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
   1189 ?        Sl     0:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
   1193 ?        Sl     0:03 /usr/bin/xfce4-power-manager
   1195 ?        Sl     0:00 /usr/bin/python /usr/bin/udiskie -a -n -t
   1197 ?        S      0:28 unclutter --timeout 5 --ignore-scrolling --jitter 15
   1199 ?        Ssl    0:01 ksuperkey
   1203 ?        S      0:00 python3 /usr/bin/alternating_layouts.py
   1214 ?        Ssl    2:43 picom -b --config /home/undercover/.config/picom/picom.conf
   1217 ?        Sl     0:08 /usr/bin/python /usr/bin/flashfocus
   1218 ?        Sl     2:02 polybar -c /home/undercover/.config/polybar/config.ini main
   1222 ?        Ssl    0:00 /usr/lib/gvfsd
   1228 ?        Sl     0:00 /usr/lib/gvfsd-fuse /run/user/1000/gvfs -f
   1243 ?        Ssl    0:00 /usr/lib/udisks2/udisksd
   1248 ?        Ssl    0:00 /usr/lib/at-spi-bus-launcher
   1255 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
   1262 ?        Sl     0:00 /usr/lib/xfce4/xfconf/xfconfd
   1264 ?        Sl     0:01 /usr/lib/at-spi2-registryd --use-gnome-session
   1268 ?        Ssl    0:01 /usr/bin/dunst
   1272 ?        Ssl    0:18 /usr/bin/pulseaudio --daemonize=no --log-target=journal
   1277 ?        SNsl   0:00 /usr/lib/rtkit-daemon
   1296 ?        Sl     0:00 /usr/lib/pulse/gsettings-helper
   1320 ?        Ssl    0:00 /usr/bin/espanso daemon
   1325 ?        Sl     0:02 /usr/bin/espanso worker
   1382 ?        S      0:00 /bin/bash /usr/bin/atom
   1384 ?        Sl     0:49 /usr/lib/electron9/electron --executed-from=/home/undercover --pid=1380 /usr/lib/atom/atom
   1388 ?        S      0:00 /usr/lib/electron9/electron --type=zygote --no-zygote-sandbox
   1389 ?        S      0:00 /usr/lib/electron9/electron --type=zygote
   1391 ?        S      0:00 /usr/lib/electron9/electron --type=zygote
   1417 ?        Sl     0:01 /usr/lib/electron9/electron --type=gpu-process --field-trial-handle=12563034494411719120,17347136584692199961,131072 --enable-features=WebComponentsV0Enabled --disable-features=Spare
   1422 ?        Sl     0:00 /usr/lib/electron9/electron --type=utility --field-trial-handle=12563034494411719120,17347136584692199961,131072 --enable-features=WebComponentsV0Enabled --disable-features=SpareRend
   1446 ?        Sl     0:28 /usr/lib/electron9/electron --type=renderer --enable-experimental-web-platform-features --field-trial-handle=12563034494411719120,17347136584692199961,131072 --enable-features=WebCom
   1495 ?        Sl     0:05 kitty
   1509 pts/0    Ss+    0:02 /usr/bin/zsh -l
   1512 pts/0    S      0:00 /usr/bin/zsh -l
   1553 pts/0    Sl     0:00 /home/undercover/.cache/gitstatus/gitstatusd-linux-x86_64 -G v1.0.0 -s 1 -u 1 -d 1 -c 1 -m -1 -v FATAL -t 8
   1630 ?        S      0:00 [nv_queue]
   1631 ?        S      0:00 [nv_queue]
   1896 ?        SLl    0:39 /usr/lib/thunderbird/thunderbird
   2009 ?        Sl     0:02 /usr/lib/thunderbird/thunderbird -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 266956 -jsInit 285980 -parentBuildID 20210917145327 -appdir /usr/lib/thunderbird 1896 
   2032 ?        Sl     0:00 /usr/lib/thunderbird/thunderbird -contentproc -childID 2 -isForBrowser -prefsLen 1 -prefMapSize 266956 -jsInit 285980 -parentBuildID 20210917145327 -appdir /usr/lib/thunderbird 1896 
   2528 ?        SLl    0:22 /usr/lib/electron13/electron --disable-dev-mode /usr/lib/element/app.asar
   2531 ?        S      0:00 /usr/lib/electron13/electron --type=zygote --no-zygote-sandbox
   2532 ?        S      0:00 /usr/lib/electron13/electron --type=zygote
   2534 ?        S      0:00 /usr/lib/electron13/electron --type=zygote
   2559 ?        Sl     0:04 /usr/lib/electron13/electron --type=gpu-process --field-trial-handle=6295278442994009915,4718314158585865186,131072 --enable-features=WebRTCPipeWireCapturer --disable-features=Cookie
   2566 ?        Sl     0:11 /usr/lib/electron13/electron --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=6295278442994009915,4718314158585865186,131072 --enable-features=WebR
   2572 ?        Sl     1:08 /usr/lib/electron13/electron --type=renderer --field-trial-handle=6295278442994009915,4718314158585865186,131072 --enable-features=WebRTCPipeWireCapturer --disable-features=CookiesWi
   5708 ?        I      0:01 [kworker/0:1-events]
  10849 ?        Sl     7:37 /usr/lib/firefox/firefox
  10944 ?        Sl     2:16 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849 tru
  10975 ?        Sl     1:11 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 217 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849 t
  11058 ?        Sl     0:11 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 5785 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849 
  11081 ?        Sl     0:00 /usr/lib/firefox/firefox -contentproc -parentBuildID 20210924002311 -prefsLen 6715 -prefMapSize 257216 -appdir /usr/lib/firefox/browser 10849 true socket
  11437 ?        Sl     0:00 /usr/lib/firefox/firefox -contentproc -parentBuildID 20210924002311 -prefsLen 7110 -prefMapSize 257216 -appdir /usr/lib/firefox/browser 10849 true rdd
  11727 ?        Sl     1:10 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 7207 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849 
  11776 ?        Sl     0:02 kitty
  11782 pts/1    Ss+    0:05 /usr/bin/zsh -l
  11785 pts/1    S      0:00 /usr/bin/zsh -l
  11816 pts/1    Sl     0:00 /home/undercover/.cache/gitstatus/gitstatusd-linux-x86_64 -G v1.0.0 -s 1 -u 1 -d 1 -c 1 -m -1 -v FATAL -t 8
  12015 ?        Sl     0:08 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 7208 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849 
  17832 ?        I      0:00 [kworker/1:1-cgroup_destroy]
  21882 ?        Sl     0:06 /usr/lib/firefox/firefox -contentproc -childID 10 -isForBrowser -prefsLen 7417 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849
  21965 ?        I      0:00 [kworker/1:3-events]
  22232 ?        I      0:00 [kworker/3:0-events]
  22429 ?        S      0:00 [irq/127-mei_me]
  22430 ?        S      0:00 [irq/134-mmc0]
  22464 ?        I      0:02 [kworker/u8:54-events_unbound]
  22679 ?        I<     0:00 [kworker/0:2H]
  22829 ?        I      0:00 [kworker/3:3-events]
  23355 ?        Sl     0:06 /usr/lib/firefox/firefox -contentproc -childID 14 -isForBrowser -prefsLen 7470 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849
  23415 ?        SLs    0:00 /usr/bin/gpg-agent --supervised
  23711 ?        Sl     0:16 /usr/lib/firefox/firefox -contentproc -childID 15 -isForBrowser -prefsLen 7470 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 10849
  24718 ?        I      0:01 [kworker/u8:0-events_unbound]
  24852 ?        I      0:00 [kworker/2:0-events]
  24965 ?        Sl     0:19 /usr/lib/firefox/firefox -contentproc -childID 16 -isForBrowser -prefsLen 10610 -prefMapSize 257216 -jsInit 285716 -parentBuildID 20210924002311 -appdir /usr/lib/firefox/browser 1084
  25909 ?        I      0:00 [kworker/2:1-events]
  25910 ?        I      0:00 [kworker/0:2-events]
  26181 ?        I      0:00 [kworker/u8:3-flush-259:0]
  26726 ?        I      0:00 [kworker/u8:1-flush-259:0]
  26928 ?        I      0:00 [kworker/2:2-events]
  26929 ?        I      0:00 [kworker/2:3]
  27110 ?        D      0:00 [kworker/u8:2+events_unbound]
  27115 ?        I      0:00 [kworker/1:0-events]
  27271 ?        I      0:00 [kworker/0:0-events]
  27273 ?        I      0:00 [kworker/3:1-mm_percpu_wq]
  27276 ?        I      0:00 [kworker/3:2]
  27448 ?        Sl     0:00 kitty
  27454 pts/2    Ss     0:00 /usr/bin/zsh -l
  27457 pts/2    S      0:00 /usr/bin/zsh -l
  27485 pts/2    S      0:00 xclip
  27489 pts/2    Sl     0:00 /home/undercover/.cache/gitstatus/gitstatusd-linux-x86_64 -G v1.0.0 -s 1 -u 1 -d 1 -c 1 -m -1 -v FATAL -t 8
  27503 pts/2    R+     0:00 ps ax

There’s only one entry with D on it:

  27110 ?        D      0:00 [kworker/u8:2+events_unbound]

I just now saw that the exit code seems to be different (again, no Spotify running in the background, Atom, Firefox, Kitty, Thunderbird, Element and Nautilus are open and the same background services as usual):

set 28 23:58:07 Legion systemd[1]: Starting Hibernate...
set 28 23:58:07 Legion systemd-sleep[36737]: [13] INFO: # Pre-suspend hook
set 28 23:58:07 Legion systemd-sleep[36737]: [13] INFO: Previous state was: {'type': 'done', 'switch_id': '20210928T174958', 'current_mode': 'integrated'}
set 28 23:58:07 Legion systemd-sleep[36737]: [14] INFO: Switching option: none
set 28 23:58:07 Legion systemd-sleep[36737]: [14] INFO: Turning Nvidia GPU back on
set 28 23:58:07 Legion systemd-sleep[36779]: modinfo: ERROR: Module bbswitch not found.
set 28 23:58:07 Legion systemd-sleep[36783]: modinfo: ERROR: Module acpi_call not found.
set 28 23:58:08 Legion systemd-sleep[36737]: [512] INFO: switching=none, nothing to do
set 28 23:58:08 Legion systemd-sleep[36737]: [512] INFO: Writing state {'type': 'pending_post_resume', 'switch_id': '20210928T174958', 'current_mode': 'integrated'}
set 28 23:58:08 Legion systemd-sleep[36737]: [512] INFO: Pre-suspend hook completed successfully.
set 28 23:58:08 Legion systemd-sleep[36734]: Entering sleep state 'hibernate'...
set 28 23:58:28 Legion systemd-sleep[36734]: Failed to put system to sleep. System resumed again: Device or resource busy
set 28 23:58:28 Legion systemd-sleep[36894]: [11] INFO: # Post-resume hook
set 28 23:58:28 Legion systemd-sleep[36894]: [12] INFO: Previous state was: {'type': 'pending_post_resume', 'switch_id': '20210928T174958', 'current_mode': 'integrated'}
set 28 23:58:28 Legion systemd-sleep[36894]: [13] INFO: Turning Nvidia GPU off again
set 28 23:58:28 Legion systemd-sleep[36945]: modinfo: ERROR: Module bbswitch not found.
set 28 23:58:28 Legion systemd-sleep[36950]: modinfo: ERROR: Module acpi_call not found.
set 28 23:58:29 Legion systemd-sleep[36894]: [467] INFO: switching=none, nothing to do
set 28 23:58:29 Legion systemd-sleep[36894]: [467] INFO: Writing state {'type': 'done', 'switch_id': '20210928T174958', 'current_mode': 'integrated'}
set 28 23:58:29 Legion systemd-sleep[36894]: [468] INFO: Post-resume hook completed successfully.
set 28 23:58:29 Legion systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
set 28 23:58:29 Legion systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
set 28 23:58:29 Legion systemd[1]: Failed to start Hibernate.
set 28 23:58:29 Legion systemd[1]: systemd-hibernate.service: Consumed 2.198s CPU time.

EDIT: Right making this post, which means 5 minutes after the failed hibernation attempt, I’ve tried to hibernate again, the same message saying that a task was refusing to freeze showed up in the TTY (see 2 posts above for more on that message), yet it hibernated, with the same pattern of blanking the screen, shutting down lighting on peripherals, lighting up the screen and peripherals again, and hibernating with an audible pop on the headset. Quite inconsistent…