Linux Mint:休眠不起作用

Linux Mint:休眠不起作用

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

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

/var/log/系统日志

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

答案1

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

原来有一个网络管理器那部分的错误,幸运的是有一个解决方法/修复:

运行钩子 /usr/lib/pm-utils/sleep.d/55NetworkManagerresume_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 boolean: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

不确定这是否适合你..但值得一试!

相关内容