You are not logged in.
Pages: 1
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
Just to double check, did you follow the swap creation by following the wiki? https://wiki.archlinux.org/index.php/Sw … e_creation
Offline
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
What happens when you do systemctl hibernate ?
Offline
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
Can you post the journalctl associated to the hibernate attempt?
Offline
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
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
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
Great to hear you resolved it.
Offline
Pages: 1