我尝试搜索如何在 Ubuntu 18.04 上启用休眠模式,但是所有建议的方法都不适用于我。
我有一台联想 T580 ThinkPad,配备 SSD 磁盘,是 Windows 10 的双启动系统。
$ sudo systemctl hibernate
Failed to hibernate system via logind: Sleep verb not supported
$ sudo pm-hibernate
sudo: pm-hibernate: Command not found
$ cat /sys/power/disk
[platform] shutdown reboot suspend test_resume
$ sudo apt-get install pm-hibernate
Reading package lists... Done
Buidling dependency tree
Reading state information... Done
E: Unable to locate package pm-hibernate
我的/etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=d2d3c950-154c-4192-a4a2-496c884bf9dd / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=8CD7-3389 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
和
$ swapon --show
NAME TYPE SIZE USED PRIO
/swapfile file 2G 0B -2
有什么建议么?
谨致问候,Steen
答案1
我在 X1 Carbon 7th Gen 上遇到了同样的错误。我做了以下操作来启用休眠模式(详细说明如下这里):
- 在 BIOS 中关闭安全启动。
- 在 BIOS 中关闭“现代待机”。
- 创建一个比我的 RAM 更大的交换文件。
- 更新 grub。
经过上述步骤,我可以使用sudo systemctl hibernate
命令正常休眠和恢复。