Linux Mint: o Hibernate não funciona

8

Eu tentei hibernar várias vezes no meu Linux Mint 14. Ele não parece funcionar. Eu adicionei alguns log que eu acho que pode ser útil. Alguém pode me ajudar a diagnosticar o problema?

modelo de laptop:     I: TOSHIBA Satellite R630 / PC portátil, BIOS versão 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 

módulo de hibernação:

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

trocar

# 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
    
por rag 22.02.2013 / 22:08

1 resposta

5

Eu tenho problemas semelhantes com o Xubuntu e o serviço wpa_supplicant, basicamente, se eu suspendo / hibernar uma vez, ele funciona, se eu tentar uma segunda vez (sem reiniciar) ele trava, eu entendo essa mensagem, então ele retorna ao login .

Acontece que há um bug com essa parte do Network Manager , Felizmente há uma solução / correção:

Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend_hybrid: Having NetworkManager wake interfaces back up...Failed.

Looking at the script is uses org.freedesktop.NetworkManager.sleep and org.freedesktop.NetworkManager.wake.

Calling this results in errors like this: % sudo dbus-send --print-reply --system --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.sleep Error org.freedesktop.DBus.Error.UnknownMethod: Method "sleep" with signature "" on interface "org.freedesktop.NetworkManager" doesn't exist

According to the documentation [1], the interface is different / has changed.

The correct usage would be to call org.freedesktop.NetworkManager.Sleep with a boolean value, like:

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

Então modifique o arquivo: gksudo gedit /usr/lib/pm-utils/sleep.d/55NetworkManager

Encontre a parte que diz:

org.freedesktop.NetworkManager.sleep

e mude para

org.freedesktop.Networkmanager.Sleep boolean:true

Em seguida, encontre a parte que diz

org.freedesktop.NetworkManager.wake e mude para

org.freedesktop.NetworkManager.Sleep boolean:false

Não tenho certeza se isso funcionará para você ... mas vale a pena tentar!

    
por 27.02.2013 / 03:43