在 Kubuntu 22.04 上啟用休眠

在 Kubuntu 22.04 上啟用休眠

我正在嘗試在我的系統上啟用休眠功能。現在,我進入了睡眠模式,但有時它不起作用。當它工作時,當我打開筆記型電腦時,它會縮短我的電池壽命。

當我使用下面的命令時,我收到一條錯誤訊息:

root@OMEN:/# systemctl hibernate
Failed to hibernate system via logind: Not enough swap space for hibernation

我找到這篇文章了:

Kubuntu 20.04 中的休眠

swapon我的系統上沒有。

更新

檔案系統>>cat /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/nvme0n1p2 during installation
UUID=f81f9e45-4f96-40e0-aaea-00f859ac559f /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=C682-3748  /boot/efi       vfat    umask=0077      0       1
# /swapfile                                 none            swap    sw              0       0

相關內容