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