运行
sudo dmesg
发现
[ 14.424201] PM: Image signature found, resuming
[ 14.424212] PM: hibernation: resume from hibernation
[ 14.424940] random: crng reseeded on system resumption
[ 14.425159] Freezing user space processes
[ 14.426077] Freezing user space processes completed (elapsed 0.000 seconds)
[ 14.426094] OOM killer disabled.
[ 14.426101] Freezing remaining freezable tasks
[ 14.427150] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 14.427305] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
[ 14.427308] PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]
[ 14.427312] PM: hibernation: Marking nosave pages: [mem 0x09bff000-0x09ffffff]
[ 14.427334] PM: hibernation: Marking nosave pages: [mem 0x0a200000-0x0a20cfff]
[ 14.427336] PM: hibernation: Marking nosave pages: [mem 0xc9788000-0xc98e7fff]
[ 14.427344] PM: hibernation: Marking nosave pages: [mem 0xc9985000-0xc9995fff]
[ 14.427346] PM: hibernation: Marking nosave pages: [mem 0xcb4e9000-0xcb4e9fff]
[ 14.427348] PM: hibernation: Marking nosave pages: [mem 0xcc604000-0xcd1fefff]
[ 14.427410] PM: hibernation: Marking nosave pages: [mem 0xce000000-0xffffffff]
[ 14.430179] PM: hibernation: Basic memory bitmaps created
[ 14.570967] PM: Using 3 thread(s) for lzo decompression
[ 14.570994] PM: Loading and decompressing image data (1037641 pages)...
[ 14.571012] Hibernate inconsistent memory map detected!
[ 14.571023] PM: hibernation: Image mismatch: architecture specific data
[ 14.571036] PM: hibernation: Read 4150564 kbytes in 0.01 seconds (415056.40 MB/s)
[ 14.572051] PM: Error -1 resuming
[ 14.572055] PM: hibernation: Failed to load image, recovering.
[ 14.572602] PM: hibernation: Basic memory bitmaps freed
[ 14.572738] OOM killer enabled.
关键
[ 14.571012] Hibernate inconsistent memory map detected!
[ 14.571023] PM: hibernation: Image mismatch: architecture specific data
[ 14.571036] PM: hibernation: Read 4150564 kbytes in 0.01 seconds (415056.40 MB/s)
[ 14.572051] PM: Error -1 resuming
我运行了
sudo update-initramfs -u -k all
sudo systemctl hibernate -i
又可以成功恢复了
猜测可能是
1.平常用systemctl hibernate权限不够
2.我拔了其中的usb导致休眠镜像的硬件配置和实际硬件配置不一致
相关文章:
- https://bbs.archlinux.org/viewtopic.php?id=302818
- https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Troubleshooting
- https://github.com/merge/skulls/issues/51
