You are not logged in.

#1 2013-08-29 14:24:37

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

hibernate, what I am still missing?

I am trying to allow suspend-to-disk in my system. The wiki article is very large and I am afraid a little confusing, this is what I did:

Added a swap partition:

% free -hm
             total       used       free     shared    buffers     cached
Mem:          7.7G       2.4G       5.3G         0B       848K       300M
-/+ buffers/cache:       2.1G       5.6G
Swap:         8.0G         0B       8.0G

Added the kernel line resume=UUID=bla bla, this is the kernel line:

options "ro quiet zfs=maindisk resume=UUID=5ef96311-54c3-45b7-a8d9-1cf2482d0ff3 security=tomoyo TOMOYO_trigger=/sbin/init"

Added the resume hook to mkinitcpio and the remade the image. This is now the line:

HOOKS="base udev autodetect modconf block resume zfs filesystems keyboard fsck"

I reboot and the system starts normally; but when I try to use the xfce's hibernate command the computer hangs. It does not halt as the keyboard still glows, but the screen is black and there is no reaction pressing keys.

What can I try? Any insight?

Offline

#2 2013-08-29 14:58:49

at0m5k
Member
Registered: 2013-07-22
Posts: 40
Website

Re: hibernate, what I am still missing?

I'm not exactly sure how xfce manages hibernation. Does hibernation through systemd work? Try systemctl hibernate and see if that works.

Last edited by at0m5k (2013-08-29 14:59:36)

Offline

#3 2013-08-29 16:06:47

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: hibernate, what I am still missing?

The screen go black, in few seconds it returns, and the system becomes unresponsive. Is that possible that zfs volumes do not work well as swap after all?

Last edited by ezzetabi (2013-08-29 16:07:11)

Offline

#4 2013-08-29 18:36:37

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,175
Website

Re: hibernate, what I am still missing?

ezzetabi wrote:

The screen go black, in few seconds it returns, and the system becomes unresponsive. Is that possible that zfs volumes do not work well as swap after all?

Why are you not using a swap partition for this? It is tried, tested and works most of the time.

EDIT: Here is an article on ZFS AND SWAP VOLUMES

EDIT2: This should make for interesting guidelines as to why one shouldn't use ZFS swap volumes (Yes, it's the BSD forums, but it's a link) http://forums.freebsd.org/showthread.php?t=30298

Last edited by clfarron4 (2013-08-29 18:41:31)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#5 2013-08-30 12:25:22

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: hibernate, what I am still missing?

Thanks for the help, but your first link is exactly how I made the swap in my system (and even if it has been quite improved I am the original author of that section of the wiki...); but I guess a real partition was a good idea.

Offline

Board footer

Powered by FluxBB