Linux Mint: Hibernate tidak berfungsi

8

Saya telah mencoba hibernasi beberapa kali di Linux Mint saya 14. Tampaknya tidak berfungsi. Saya telah menambahkan beberapa log yang menurut saya mungkin berguna. Adakah yang bisa membantu saya mendiagnosis masalahnya?

model laptop: I: TOSHIBA Satellite R630 / Portable PC, Versi 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 

modul hibernasi:

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

menukar

# 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
lap
sumber

Jawaban:

5

Saya memiliki masalah yang serupa dengan Xubuntu dan layanan wpa_supplicant, pada dasarnya, jika saya menangguhkan / hibernate satu kali, itu berfungsi, jika saya mencobanya kedua kali (tanpa me-reboot) itu hang, saya mendapatkan pesan itu, kemudian kembali untuk masuk.

Ternyata ada bug dengan bagian Network Manager itu , untungnya ada solusi / perbaikan:

Menjalankan hook /usr/lib/pm-utils/sleep.d/55NetworkManager melanjutkan suspend_hybrid: Membuat NetworkManager membangunkan kembali antarmuka ... Gagal.

Melihat skrip ini menggunakan org.freedesktop.NetworkManager.sleep dan org.freedesktop.NetworkManager.wake.

Memanggil ini menghasilkan kesalahan seperti ini:% sudo dbus-send - print-reply --system --dest = org.freedesktop.NetworkManager / org / freedesktop / NetworkManager org.freedesktop.NetworkManager.sleep Error org.freedesktop.DBus. Kesalahan.Tidak diketahuiMetode: Metode "tidur" dengan tanda tangan "" pada antarmuka "org.freedesktop.NetworkManager" tidak ada

Menurut dokumentasi [1] , antarmuka berbeda / telah berubah.

Penggunaan yang benar adalah dengan menelepon org.freedesktop.NetworkManager. Tidur dengan nilai boolean, seperti:

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

Jadi modifikasi file: gksudo gedit /usr/lib/pm-utils/sleep.d/55NetworkManager

Temukan bagian yang mengatakan:

org.freedesktop.NetworkManager.sleep

dan ubah ke

org.freedesktop.Networkmanager.Sleep boolean:true

Kemudian temukan bagian yang mengatakan

org.freedesktop.NetworkManager.wake dan ubah ke

org.freedesktop.NetworkManager.Sleep boolean:false

Tidak yakin apakah itu akan berhasil untuk Anda .. tetapi layak dicoba!

Grizly
sumber