You are not logged in.

#1 2014-02-04 19:51:46

giuliof
Member
From: Italy
Registered: 2012-07-17
Posts: 12
Website

[SOLVED] Hibernation fails

Hello
I have a laptop with Arch (Kernel 3.12.9-2) and KDE, and some problems with hibernation. After installation was working, using a swapfile, but i noticed it was too small, so I made a bigger one, and then it stopped working.
fstab entry seems ok, I have resume hook in mkinitcpio.conf and resume options in GRUB.
System log shows that PM can't find a swap area, both if I hibernate from KDE and terminal

feb 04 16:45:00 giulio kernel: PM: Cannot find swap device, try swapon -a.
feb 04 16:45:00 giulio kernel: PM: Cannot get swap writer

swapon -a gives no output, while swapon -s gives

/home/swapfile                          file    5242876 38324   0

Someone has any idea?

Last edited by giuliof (2014-02-08 12:00:46)

Offline

#2 2014-02-04 21:02:36

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: [SOLVED] Hibernation fails

Just to double check, did you follow the swap creation by following the wiki? https://wiki.archlinux.org/index.php/Sw … e_creation

Offline

#3 2014-02-04 22:45:36

giuliof
Member
From: Italy
Registered: 2012-07-17
Posts: 12
Website

Re: [SOLVED] Hibernation fails

frank604 wrote:

Just to double check, did you follow the swap creation by following the wiki? https://wiki.archlinux.org/index.php/Sw … e_creation

Yes, fallocate - mkswap - swapon.

Offline

#4 2014-02-04 23:15:41

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: [SOLVED] Hibernation fails

What happens when you do systemctl hibernate ?

Offline

#5 2014-02-05 12:06:31

giuliof
Member
From: Italy
Registered: 2012-07-17
Posts: 12
Website

Re: [SOLVED] Hibernation fails

frank604 wrote:

What happens when you do systemctl hibernate ?

Tries to hibernate, puts something in swap, then stops and I have again terminal. The output says to check journalctl.

Offline

#6 2014-02-05 16:57:30

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: [SOLVED] Hibernation fails

Can you post the journalctl associated to the hibernate attempt?

Offline

#7 2014-02-05 19:20:00

giuliof
Member
From: Italy
Registered: 2012-07-17
Posts: 12
Website

Re: [SOLVED] Hibernation fails

frank604 wrote:

Can you post the journalctl associated to the hibernate attempt?

Yes, was the log I posted in the first post:

feb 05 20:19:49 giulio kernel: PM: thaw of devices complete after 345.225 msecs
feb 05 20:19:49 giulio kernel: PM: writing image.
feb 05 20:19:49 giulio kernel: PM: Cannot find swap device, try swapon -a.
feb 05 20:19:49 giulio kernel: PM: Cannot get swap writer
feb 05 20:19:49 giulio kernel: PM: Basic memory bitmaps freed
feb 05 20:19:49 giulio kernel: Restarting tasks ... done.

Offline

#8 2014-02-05 23:58:17

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: [SOLVED] Hibernation fails

Oh, sorry about that, was replying through email link and failed to scroll upwards to refresh myself on what information was already provided. 

https://bbs.archlinux.org/viewtopic.php?id=162256
This thread with similar outcomes as you was solved due to a wrong resume parameter in grub, which pointed to the wrong place for swap.  Could you provide the same information as the OP in this thread?  grub, mkinitcpio, etc.

Also, is the swap file encrypted?

Last edited by frank604 (2014-02-06 00:02:07)

Offline

#9 2014-02-07 20:39:50

giuliof
Member
From: Italy
Registered: 2012-07-17
Posts: 12
Website

Re: [SOLVED] Hibernation fails

Damn, I had only a bad offset number, probably result of a bad copy-paste... I'll mark the topic solved, but a last question: are there any problem about keeping swapfile on SSD? I've both on my laptop, and I heard it's better to use the standard disk for it, but I've an encrypted home partition and swapfile content could not be loaded on boot...

Offline

#10 2014-02-08 01:42:52

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: [SOLVED] Hibernation fails

Great to hear you resolved it.

Offline

Board footer

Powered by FluxBB