You are not logged in.

#1 2017-03-03 16:39:11

adesh
Member
Registered: 2016-10-05
Posts: 167

Hibernation - resume does not work with linux-zen kernel

My laptop does not resume from hibernation if I use linux-zen kernel.
I think RAM image gets written to swap partition as disk activity indicator blinks a lot when I press hibernate button. But when I switch the laptop back on, it starts up like a normal boot. The only difference is that I get a journal error message as if it were an unclean shutdown.

/dev/sda1: recovering journal

I followed the wiki and here is what I did:
0. I already have a 1G swap partition. System has 2G of RAM.
1. Added "resume" hook in /etc/mkinitcpio.conf
2. Regenerate initramfs:

sudo mkinitcpio -p linux

3. Added "resume=UUID=myuuid" to linux kernel parameters inside /etc/default/grub. Now I have:

GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

4. Regenerate grub.cfg:

sudo grub-mkconfig -o /boot/grub/grub.cfg

5. Reboot, obviously.

I also tried two different ways to hibernate: 1) using hibernate option in Xfce log out menu, and 2) writing disk to /sys/power/state. Both methods produce the same behaviour.

Hibernation feature works perfeclty with stock linux kernel. Issue applies only to linux-zen. AFAIK, both kernels work properly with respect to everyday laptop usage.

Offline

Board footer

Powered by FluxBB