Linux Mint:Hibernate无法正常工作


8

我曾在Linux Mint 14上尝试过多次休眠模式。它似乎不起作用。我添加了一些我认为可能有用的日志。有人可以帮助我诊断问题吗?

笔记本电脑型号:I:东芝Satellite R630 /便携式PC,BIOS版本1.90 02/24/2011

/ var / log / syslog

Feb 21 21:21:51 kernel: [ 3526.006366] PM: Marking nosave pages: [mem 0x0009e000-0x000fffff]
Feb 21 21:21:51 kernel: [ 3526.006372] PM: Marking nosave pages: [mem 0xb70d0000-0xffffffff]
Feb 21 21:21:51 kernel: [ 3526.007297] PM: Marking nosave pages: [mem 0x1fc000000-0x1ffffffff]
Feb 21 21:21:51 kernel: [ 3526.007556] PM: Basic memory bitmaps created
Feb 21 21:23:00 kernel: imklog 5.8.6, log source = /proc/kmsg started.


Feb 21 21:23:00 kernel: [    7.877813] EXT4-fs (sda5): INFO: recovery required on readonly filesystem
Feb 21 21:23:00 kernel: [    7.877817] EXT4-fs (sda5): write access will be enabled during recovery
Feb 21 21:23:00 kernel: [    8.833136] EXT4-fs (sda5): orphan cleanup on readonly fs
Feb 21 21:23:00 kernel: [    8.833146] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 262260
Feb 21 21:23:00 kernel: [    8.833177] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 262215
Feb 21 21:23:00 kernel: [    8.833216] EXT4-fs (sda5): 2 orphan inodes deleted
Feb 21 21:23:00 kernel: [    8.833217] EXT4-fs (sda5): recovery complete
Feb 21 21:23:00 kernel: [    8.920573] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
Feb 21 21:23:00 kernel: [   19.912627] Adding 14680060k swap on /dev/mapper/vgroup1-swap.  Priority:-1 extents:1 across:14680060k 

休眠模块:

$ dpkg -l | g pm-utils
ii  pm-utils                                    1.4.1-9                                   all          utilities and scripts for power management

交换

# swap on logical volume
/dev/vgroup1/swap                         none            swap    sw              0       0


Disk /dev/mapper/vgroup1-swap: 15.0 GB, 15032385536 bytes
255 heads, 63 sectors/track, 1827 cylinders, total 29360128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

/var/log/pm_suspend.log

Thu Feb 21 21:21:50 GMT 2013: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
...
/etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate:
Having NetworkManager put all interaces to sleep...Failed.
...
/usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

Answers:


5

我对Xubuntu和wpa_supplicant服务也有类似的问题,基本上,如果我暂停/休眠一次,它会工作,如果我第二次尝试(不重新启动),它会挂起,我会收到该消息,然后返回登录。

事实证明,Network Manager的那部分存在一个错误,幸运的是有一个解决方法/修复程序:

运行钩子/usr/lib/pm-utils/sleep.d/55NetworkManager resumesuspend_hybrid:正在备份NetworkManager唤醒接口...失败。

查看脚本是使用org.freedesktop.NetworkManager.sleep和org.freedesktop.NetworkManager.wake。

调用此命令将导致以下错误:%sudo dbus-send --print-reply --system --dest = org.freedesktop.NetworkManager / org / freedesktop / NetworkManager org.freedesktop.NetworkManager.sleep错误org.freedesktop.DBus。 Error.UnknownMethod:接口“ org.freedesktop.NetworkManager”上具有签名“”的方法“ sleep”不存在

根据文档[1],界面不同/已更改。

正确的用法是使用布尔值调用org.freedesktop.NetworkManager.Sleep,例如:

sudo dbus-send --print-reply --system --dest = org.freedesktop.NetworkManager / org / freedesktop / NetworkManager org.freedesktop.NetworkManager.Sleep布尔值:true

因此,修改文件: gksudo gedit /usr/lib/pm-utils/sleep.d/55NetworkManager

查找显示以下内容的部分:

org.freedesktop.NetworkManager.sleep

并更改为

org.freedesktop.Networkmanager.Sleep boolean:true

然后找到说

org.freedesktop.NetworkManager.wake 并更改为

org.freedesktop.NetworkManager.Sleep boolean:false

不知道这是否对您有用..但是值得一试!

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.