休眠或恢复失败

休眠或恢复失败

华硕 K50AF,2G 内存

我想使用 systemd(systemctl hibernate 和 systemctl suspend)休眠和挂起我的系统。
挂起看起来工作正常,但休眠(可能恢复)不起作用:
当我“休眠”并再次打开电源时,系统似乎冻结在黑屏上

配置文件

HOOKS="base udev 自动检测 modconf 块恢复文件系统 usbinput fsck"

grub配置文件

linux /vmlinuz-linux 根=UUID=06c94dc9-7166-43ec-947f-82d5c48be181 ro 安静恢复=UUID=dbaf6e98-b167-4db2-9090-a7f205e546ee

$ swapon -s

文件名 类型 大小 使用 优先级

/dev/sda7 分区 2160704 0 -1

sda7 的 UUID=dbaf6e98-b167-4db2-9090-a7f205e546ee

# cat /var/log/kernel.log|grep PM:
Dec 16 10:11:50 bearhouse kernel: [ 2447.862363] PM: Hibernation mode set to 'platform'
Dec 16 10:11:50 bearhouse kernel: [ 2447.937849] PM: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Dec 16 10:11:50 bearhouse kernel: [ 2447.937852] PM: Basic memory bitmaps created
Dec 16 10:13:28 bearhouse kernel: [    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
Dec 16 10:13:28 bearhouse kernel: [    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000e4000
Dec 16 10:13:28 bearhouse kernel: [    0.000000] PM: Registered nosave memory: 00000000000e4000 - 0000000000100000
Dec 16 10:13:28 bearhouse kernel: [    0.210047] PM: Registering ACPI NVS region [mem 0x7ff8e000-0x7ffcffff] (270336 bytes)
Dec 16 10:13:28 bearhouse kernel: [    1.382465] PM: Checking hibernation image partition UUID=dbaf6e98-b167-4db2-9090-a7f205e546ee
Dec 16 10:13:28 bearhouse kernel: [    1.588375] PM: Hibernation image not present or could not be loaded.
Dec 16 10:13:28 bearhouse kernel: [    3.373893] PM: Starting manual resume from disk
Dec 16 10:13:28 bearhouse kernel: [    3.373898] PM: Hibernation image partition 8:7 present
Dec 16 10:13:28 bearhouse kernel: [    3.373899] PM: Looking for hibernation image.
Dec 16 10:13:28 bearhouse kernel: [    3.374147] PM: Image not found (code -22)
Dec 16 10:13:28 bearhouse kernel: [    3.374151] PM: Hibernation image not present or could not be loaded.
Dec 16 10:14:51 bearhouse kernel: [  100.626296] PM: Hibernation mode set to 'platform'
Dec 16 10:14:51 bearhouse kernel: [  100.659946] PM: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Dec 16 10:14:51 bearhouse kernel: [  100.659949] PM: Basic memory bitmaps created
Dec 16 14:41:22 bearhouse kernel: [    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
Dec 16 14:41:22 bearhouse kernel: [    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000e4000
Dec 16 14:41:22 bearhouse kernel: [    0.000000] PM: Registered nosave memory: 00000000000e4000 - 0000000000100000
Dec 16 14:41:22 bearhouse kernel: [    0.210163] PM: Registering ACPI NVS region [mem 0x7ff8e000-0x7ffcffff] (270336 bytes)
Dec 16 14:41:22 bearhouse kernel: [    1.381585] PM: Checking hibernation image partition UUID=dbaf6e98-b167-4db2-9090-a7f205e546ee
Dec 16 14:41:22 bearhouse kernel: [    1.587723] PM: Hibernation image not present or could not be loaded.
Dec 16 14:41:22 bearhouse kernel: [    3.550784] PM: Starting manual resume from disk
Dec 16 14:41:22 bearhouse kernel: [    3.550789] PM: Hibernation image partition 8:7 present
Dec 16 14:41:22 bearhouse kernel: [    3.550790] PM: Looking for hibernation image.
Dec 16 14:41:22 bearhouse kernel: [    3.559535] PM: Image not found (code -22)
Dec 16 14:41:22 bearhouse kernel: [    3.559539] PM: Hibernation image not present or could not be loaded.

答案1

编辑 mkinitcpio.conf 文件后,您是否通过运行“mkinitcpio -p linux”重建了图像?(如果您有自定义内核,请将 linux 更改为内核的名称。请参阅 /etc/mkinitcpio.d/ 中的 .preset 文件以获取名称列表)。

(这应该是一条评论,但我还没有权限这样做。)

相关内容