You are not logged in.

#1 2013-11-07 11:53:17

iaculch
Member
Registered: 2013-11-04
Posts: 10

Can't get hibernate working

I recently posted this in the Macbook Air 2013 topic but thought it would be more appropriate here:

I have followed the wiki article on suspend and hibernate:
https://wiki.archlinux.org/index.php/Su … ibernation

However I still can't manage to get hibernate working, I am getting the following message on boot:
"Error: resume no device specified for hibernation"

I have added 'resume=/dev/sda8' to the 'GRUB_CMDLINE_LINUX_DEFAULT' line in the 'etc/default/grub' file and also run 'grub-mkconfig -o /boot/grub/grub.cfg'

I have added the resume hook as follows in the '/etc/mkinitcpio.conf' file:
HOOKS="base udev autodetect keyboard modconf block resume filesystems keyboard fsck"

I've made sure that I've run 'mkinitcpio -p linux' after this.

pm-suspend.log is not showing any errors. The machine just boots up as normal as if it was shutdown after pm-hibernate

The only error I could find in dmesg was:

PM: Hibernation image not present or could not be loaded

Last edited by iaculch (2013-11-07 12:06:03)

Offline

#2 2013-11-07 12:32:30

iaculch
Member
Registered: 2013-11-04
Posts: 10

Re: Can't get hibernate working

A message flickers before the device shuts down, I managed to get a picture of it just before the display turned off:

mei_me: 0000:00:16.0: suspend
ata1: exception Emask 0x10 Sact 0x0 SErr 0x1000 action 0xe frozen
ata1: irq_stat 0x00400000, PHY RDY changed
ata1: SError: {PHYRydChg}

Offline

#3 2013-11-07 12:50:11

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Can't get hibernate working

have you tried using a swap file instead?


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#4 2013-11-07 13:25:19

iaculch
Member
Registered: 2013-11-04
Posts: 10

Re: Can't get hibernate working

I have just tried to use a swap file. After running 'systemctl hibernate'. The display blacks out, and then comes back on with the error:

 
PM: Swap header not found!
A dependency job for hibernate.target failed. See 'journalctl -xn' for details 

When running 'journalctl -xn',  I don't see any new messages.

I am also still getting the same  message on boot

EDIT: Using sudo hibernate, when the screen comes back on I get /bin/echo: write error: No such device

Last edited by iaculch (2013-11-07 13:27:34)

Offline

#5 2013-11-07 13:46:19

max2012ro
Member
Registered: 2012-11-23
Posts: 3

Re: Can't get hibernate working

In /etc/fstab you use UUID?
In that case you must use UUID in grub.cfg.

Offline

#6 2013-11-07 13:48:24

iaculch
Member
Registered: 2013-11-04
Posts: 10

Re: Can't get hibernate working

I don't have the UUID in /etc/fstab

I have added the folllowing to /etc/fstab:

/swapfile               none            swap            defaults                0 0

Last edited by iaculch (2013-11-07 13:49:01)

Offline

#7 2013-11-07 14:14:53

iaculch
Member
Registered: 2013-11-04
Posts: 10

Re: Can't get hibernate working

I have two questions:

At the moment I have the kernel parameters in line 'GRUB_CMDLINE_LINUX_DEFAULT' are the resume parameters meant to be placed there or on the 'GRUB_CMDLINE_LINUX' line?

Also,

When I run cat /proc/cmdline, I am not seeing the resume parameters, is this normal?

Offline

#8 2013-11-07 14:17:07

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Can't get hibernate working

try /swapfile    none  swap   defaults   0  0

also dont forget to edit grub again and make sure the resume_offset is defined

those instructions are on the wiki

--edited for typo --

Last edited by VanillaFunk (2013-11-07 14:19:28)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#9 2013-11-07 14:27:58

iaculch
Member
Registered: 2013-11-04
Posts: 10

Re: Can't get hibernate working

Tried that, no change.

The swap is showing up when I run 'free -m' or 'swapon -s'.

I don't know where to go from here... I'm certain that I have followed the wiki.

Offline

Board footer

Powered by FluxBB