You are not logged in.
I have a swap partition which is the size of my ram:
total used free shared buff/cache available
Mem: 7.4Gi 1.9Gi 4.7Gi 460Mi 1.5Gi 5.5Gi
Swap: 8.0Gi 0B 8.0Gi
The system appears to be hibernating when I enter in the command:
# echo disk > /sys/power/state
Upon re-powering the session is not restored, and this message was logged:
[ 4.720672] PM: Image signature found, resuming
[ 4.720679] PM: hibernation: resume from hibernation
[ 4.720696] random: crng reseeded on system resumption
[ 4.721318] Freezing user space processes
[ 4.722513] Freezing user space processes completed (elapsed 0.001 seconds)
[ 4.722519] OOM killer disabled.
[ 4.722520] Freezing remaining freezable tasks
[ 4.723665] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[4.723924] PM: hibernation: Marking nosave pages: [mem 0xcc000000-0xffffffff]
[ 4.725723] PM: hibernation: Basic memory bitmaps created
[ 4.817065] PM: Using 3 thread(s) for decompression
[ 4.817070] PM: Loading and decompressing image data (119990 pages)...
[ 6.332853] PM: Image loading progress: 0%
[ 7.879209] PM: Image loading progress: 10%
[ 8.091123] PM: Image loading progress: 20%
[ 8.606885] PM: Image loading progress: 30%
[ 9.236835] PM: Image loading progress: 40%
[ 9.775244] PM: Invalid LZO compressed length
[ 9.775345] PM: hibernation: Read 479960 kbytes in 4.95 seconds (96.96 MB/s)
[ 9.777097] PM: Error -1 resuming
[ 9.777107] PM: hibernation: Failed to load image, recovering.
[ 9.792116] PM: hibernation: Basic memory bitmaps freed
[ 9.792325] OOM killer enabled.
[ 9.792326] Restarting tasks ... done.
[ 9.792572] PM: hibernation: resume failed (-1)
/etc/default/grub:
GRUB_CMDLINE_LINUX="nmi_watchdog=0 nowatchdog loglevel=4 systemd.show_status=auto rd.udev.log_level=3 resume=UUID=07489a17-0013-4be4-8e0e-cb289f64580a zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=z3fold"
/etc/fstab:
UUID=07489a17-0013-4be4-8e0e-cb289f64580a none swap defaults 0 0
/etc/mkinitcpio.conf.d/myhooks.conf:
HOOKS=(base udev autodetect modconf keyboard keymap consolefont block filesystems resume fsck)
Possibly a bug with watchdog timer?
mkdir -p /etc/systemd/system.conf.d
echo 'RuntimeWatchdogSec=300' > /etc/systemd/system.conf.d/slowtimer.conf
Anyways, I read the Arch Linux article on hibernation, and unless I've missed something, I'm not sure why it's failing to resume from hibernation.
Offline