我有一台联想 t510 i7 8GB 内存和 8.5GB 交换空间,这是我在安装时分配的。我遵循本文但是当我运行时:
sudo apt install pm-utils && sudo pm-hibernate
计算机没有关机,但进入睡眠状态,我只有一个选择,那就是强制关机,然后重新启动
我每天使用我的计算机进行编码,休眠是执行操作之一...我被 ubuntu 阻止了..来自 windows 7。
在电源管理(设置)中,我已设置电源按钮单击以使计算机休眠...但当我单击时什么也没有发生。
我的/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
> [Mounting, checking, etc. of internal drives]
> Identity=unix-group:admin;unix-group:sudo
> Action=org.freedesktop.udisks.filesystem-*;org.freedesktop.udisks.drive-ata-smart*;org.freedesktop.udisks2.filesystem-mount-system;org.freedesktop.udisks2.encrypted-unlock-system;org.freedesktop.udisks2.filesystem-fstab;
> ResultActive=yes
>
> [Change CPU Frequency scaling]
> Identity=unix-group:admin;unix-group:sudo
> Action=org.gnome.cpufreqselector;org.mate.cpufreqselector
> ResultActive=yes
>
> [Setting the clock] Identity=unix-group:admin;unix-group:sudo
> Action=org.gnome.clockapplet.mechanism.*;org.gnome.controlcenter.datetime.configure;org.kde.kcontrol.kcmclock.save;org.freedesktop.timedate1.set-time;org.freedesktop.timedate1.set-timezone;org.freedesktop.timedate1.set-local-rtc;org.freedesktop.timedate1.set-ntp;com.canonical.controlcenter.datetime.configure;org.mate.settingsdaemon.datetimemechanism.settime
> ResultActive=yes
>
> [Adding or changing system-wide NetworkManager connections]
> Identity=unix-group:admin;unix-group:sudo
> Action=org.freedesktop.NetworkManager.settings.modify.system
> ResultActive=yes
>
> [Update already installed software]
> Identity=unix-group:admin;unix-group:sudo
> Action=org.debian.apt.upgrade-packages ResultActive=yes
>
> [usb-creator] Identity=unix-group:admin;unix-group:sudo
> Action=com.ubuntu.usbcreator.mount;com.ubuntu.usbcreator.image
> ResultActive=yes
>
> [Printer administration]
> Identity=unix-group:lpadmin;unix-group:admin;unix-group:sudo
> Action=org.opensuse.cupspkhelper.mechanism.* ResultActive=yes
>
> [Disable hibernate by default in upower] Identity=unix-user:*
> Action=org.freedesktop.upower.hibernate ResultActive=yes
>
> [Disable hibernate by default in logind] Identity=unix-user:*
> Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
> ResultActive=yes
>
> [Modify error reporting settings]
> Identity=unix-group:admin;unix-group:sudo
> Action=com.ubuntu.whoopsiepreferences.change ResultActive=yes
>
> [Allow admins to set the hostname,locale,keyboard,date/time without
> prompting] Identity=unix-group:admin;unix-group:sudo
> Action=org.freedesktop.locale1.set-locale;org.freedesktop.locale1.set-keyboard;org.freedesktop.hostname1.set-static-hostname;org.freedesktop.hostname1.set-hostname
> ResultActive=yes
>
> [Re-enable hibernate for multiple users by default in logind]
> Identity=unix-user:*
> Action=org.freedesktop.login1.hibernate-multiple-sessions
> ResultActive=yes
我的/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/sda2 during installation
UUID=28bad0ab-1636-4d6a-a4b5-acd6cd28d96c / ext4 errors=remount-ro 0 1
# /home was on /dev/sda3 during installation
UUID=c6d149ab-c9e7-400a-87c9-23a3900c4e07 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
#UUID=5e879d19-6324-477d-9bd8-a7a096075b04 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
我的/etc/initramfs-tools/conf.d/resume:
RESUME=UUID=1abeab9d-c8d9-40bd-af1d-26dbc6421b20
命令 sudo swapon-s输出 :
Filename Type Size Used Priority
/dev/dm-0 partition 8299004 0 -1
以下是磁盘管理器的屏幕截图(也拒绝激活交换):
我的 BIOS 信息是:BIOS 1.41、MT-M 4349A99、RAM 8192MB,BIOS 中的电源管理配置是: