18.04 版中休眠功能不起作用

18.04 版中休眠功能不起作用

我是 Linux/Ubuntu 新手,所以请温柔一点 :)

我在笔记本电脑上安装了 Ubuntu 18,正在尝试配置休眠。我尝试按照这些 帖子,但仍然没有任何结果……

我已将分区改为 11GB(我尝试按照所写内容进行操作这里):

sudo swapon --show
NAME      TYPE SIZE USED PRIO
/swapfile file   11G   0B   -2

如果我尝试使用 pm-hibernate,什么也不会发生......

查看日志,我可以看到以下条目:

22:00:47 wpa_supplicant: dbus: Failed to construct signal
22:00:47 systemd: Failed to start Hibernate.
22:00:47 kernel: PM: Cannot get swap writer
22:00:42 kernel: wlp2s0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-22)
21:57:49 wpa_supplicant: dbus: Failed to construct signal
21:57:49 systemd: Failed to start Hibernate.
21:57:49 kernel: PM: Cannot get swap writer
21:57:44 kernel: wlp2s0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-22)
21:55:44 wpa_supplicant: dbus: Failed to construct signal
21:55:44 systemd: Failed to start Hibernate.
21:55:44 kernel: PM: Swap header not found!
21:55:35 kernel: wlp2s0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-22)
21:55:17 spice-vdagent: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
21:55:16 pulseaudio: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
21:55:10 spice-vdagent: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
21:55:07 wpa_supplicant: dbus: Failed to construct signal
21:55:03 kernel: [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x25 (or later) 

很明显,休眠开始时存在某种问题,但我真的不知道机器状态是否被写入磁盘,到底出了什么问题……

有人可以帮忙吗?

谢谢。

路易斯

答案1

据我所知,休眠到交换文件不起作用,并且可能永远不起作用。

但是,暂停到交换文件通常有效。问题通常只会发生在您尝试从交换文件恢复时。

当 Linux 尝试查找要恢复的交换区时,文件系统尚未安装,因此将无法恢复。

相关内容