You are not logged in.

#1 2012-11-17 00:04:31

kuba144
Member
Registered: 2012-05-02
Posts: 18

[SOLVED] Can't resume from hibernation

Ok i run out idea.
I've followed this wiki page: https://wiki.archlinux.org/index.php/Pm-utils
My fdisk -l is:

Dysk /dev/sda: 500.1 GB, bajtów: 500107862016, sektorów: 976773168
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 4096
Rozmiar we/wy (minimalny/optymalny) w bajtach: 4096 / 4096
Identyfikator dysku: 0x6ffd446c

Urządzenie Rozruch   Początek      Koniec   Bloków   ID  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   126035967    62914560    7  HPFS/NTFS/exFAT
/dev/sda3       932155392   976773119    22308864   27  Ukryta HPFS WinRE
/dev/sda4       126035968   932155391   403059712    5  Rozszerzona
/dev/sda5       869240832   932155391    31457280   83  Linux
/dev/sda6       659525632   680497151    10485760   82  Linux swap / Solaris
/dev/sda7       680499200   743413759    31457280   83  Linux
/dev/sda8       743415808   869238783    62911488   83  Linux
/dev/sda9       126038016   659523583   266742784   83  Linux

fstab

cat /etc/fstab 
# UUID=8cbe9f3d-1e8b-4fba-b38a-0494207b8d8d
/dev/sda5               /               ext4            rw,relatime     0 1

# UUID=33923e77-e58b-4f95-9d06-aaf63d288001
/dev/sda9               /home           ext4            rw,relatime     0 2

/dev/sda6               swap            swap    defaults        0 0
/dev/sda2               /media/Windows          ntfs-3g         users,permissions,auto  0 0
/dev/sda8               /media/Dane             ext4            rw,relatime     0 2

swapon -s

Nazwa pliku                             Typ             Rozmiar Użyte   Priorytet
/dev/sda6                               partition       10485756        0       -1

free -m

             total       used       free     shared    buffers     cached
Mem:          7884       1676       6207          0         56        579
-/+ buffers/cache:       1040       6843
Swap:        10239          0      10239

I'm using burg and kernel boot line looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 resume=/dev/sda6"

I added resume hook to /etc/mkinitcpio.conf

When i run "sudo pm-hibernate" it says that it's saving snapshots and stuff, but when i turn on my laptop again the system boots normally. What else should i do? Thanks

sorry for Polish output, but i didn't know how to change it to english (LANG=en didn't work)

Last edited by kuba144 (2012-11-17 13:26:44)

Offline

#2 2012-11-17 00:19:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Can't resume from hibernation

kuba144 wrote:

I added resume hook to /etc/mkinitcpio.conf

And then regenerated the init image?

Offline

#3 2012-11-17 00:44:25

Ipozya
Member
Registered: 2011-01-20
Posts: 52

Re: [SOLVED] Can't resume from hibernation

I had a similar issue with rebooting when suspending to RAM. If regenerating the init image does not work like suggested by tomk, then you could try adding the "acpi_sleep=nonvs" kernel command line option (in GRUB). This fixed the issue for me, but I don't know if it is relevant to hibernation.

Last edited by Ipozya (2012-11-17 00:46:35)

Offline

#4 2012-11-17 01:13:43

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Can't resume from hibernation

LC_ALL=C <command>

will temporarily get you English. This is explained in the wiki about posting.

Last edited by cfr (2012-11-17 01:14:23)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2012-11-17 01:27:04

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Can't resume from hibernation

Is the following correct:

/dev/sda6               swap            swap    defaults        0 0

for the fstab entry? I would have:

/dev/sda6  none swap sw 0 0

But I'm not sure whether this matters at all.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2012-11-17 01:59:47

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Can't resume from hibernation

As far as the resume is concerned, I am not sure if it matters, but swap really should not have a mount point.

Offline

#7 2012-11-17 09:04:29

kuba144
Member
Registered: 2012-05-02
Posts: 18

Re: [SOLVED] Can't resume from hibernation

tomk wrote:
kuba144 wrote:

I added resume hook to /etc/mkinitcpio.conf

And then regenerated the init image?

Yes

I changed my fstab to what cfr said.

I was trying to hibernate again when i noticed that there is error on the end of the operation, but i can't read it because laptop turns down too quickly. I tried to looking for this error in /var/log/pm-suspend.log but nothing usefull there. How can i catch this error?

EDIT: Got it!
I use resume hook instead of uresume hook for uswsusp. Now it works, but after showing dekstop it takes some time... i think i should get ssd smile

Thanks anyway smile

Last edited by kuba144 (2012-11-17 13:26:29)

Offline

Board footer

Powered by FluxBB