You are not logged in.

#1 2013-01-13 14:32:13

knuke
Member
From: Austria
Registered: 2013-01-03
Posts: 20

Hibernation using 'systemctl hibernate' isn't working

Hey.

When i try do hibernate with:

systemctl hibernate

It seems to shut down but the screen just remains black and the laptop is still powered on and working. I waited long enough to ensure that it's not powering off after a long time but it didn't. This kinda sucks cause I'd really like to hibernate my laptop and not have to shut it down everytime.

So my swap partition is:

swapon -s
Filename				Type		Size	Used	Priority
/dev/sda8                         partition	5119996	0	-1

I've added the resume hook to my mkinitcpio.conf:

#/etc/mkinitcpio.conf
HOOKS="base udev autodetect modconf block resume filesystems usbinput fsck"

Rebuild the image:

mkinitcpio -p linux

Then I added this to my grub:

#/etc/default/grub
GRUB_CMDLINE_LINUX="resume=/dev/sda8"

And generated a new grub cfg file:

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

After that I tried to hibernate but it didn't work.

I followed this topic but it hadn't worked for me: https://bbs.archlinux.org/viewtopic.php?id=154003

Thanks in advance.

Offline

#2 2013-01-13 23:08:04

Zonqt
Member
Registered: 2013-01-10
Posts: 14

Re: Hibernation using 'systemctl hibernate' isn't working

Try suspending, what happens then?

Offline

#3 2013-01-14 07:39:22

knuke
Member
From: Austria
Registered: 2013-01-03
Posts: 20

Re: Hibernation using 'systemctl hibernate' isn't working

Suspending works as good as it ever had. All the other things like reboot/shutdown are working also.

Offline

#4 2013-02-20 10:53:44

veox
Member
Registered: 2008-10-28
Posts: 49
Website

Re: Hibernation using 'systemctl hibernate' isn't working

knuke wrote:

I've added the resume hook to my mkinitcpio.conf:

#/etc/mkinitcpio.conf
HOOKS="base udev autodetect modconf block resume filesystems usbinput fsck"

Do you have /usr mounted on a separate partition? Youmight need other hooks if so.

Offline

#5 2013-02-20 11:45:38

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: Hibernation using 'systemctl hibernate' isn't working

What is your kernel version ?


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#6 2013-03-17 09:44:45

knuke
Member
From: Austria
Registered: 2013-01-03
Posts: 20

Re: Hibernation using 'systemctl hibernate' isn't working

Oh sorry. I've not looked at this thread for a long time.

No I don't have /usr mounted on a separate partition.

My kernel version is as followed:

[knuke@Knuke-Archlinux ~]$ uname -r
3.7.10-1-ARCH

Offline

#7 2013-03-17 10:30:48

veox
Member
Registered: 2008-10-28
Posts: 49
Website

Re: Hibernation using 'systemctl hibernate' isn't working

Do you have more than 5119996 bytes of RAM?

Offline

#8 2013-03-17 16:46:52

knuke
Member
From: Austria
Registered: 2013-01-03
Posts: 20

Re: Hibernation using 'systemctl hibernate' isn't working

[knuke@Knuke-Archlinux ~]$ top

top - 17:45:48 up 24 min,  0 users,  load average: 0.23, 0.28, 0.25
Tasks: 148 total,   2 running, 144 sleeping,   0 stopped,   2 zombie
%Cpu(s):  1.9 us,  0.8 sy,  0.3 ni, 97.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   8127628 total,  1388724 used,  6738904 free,    41872 buffers
KiB Swap:  5119996 total,        0 used,  5119996 free,   581560 cached

so I assume, yes.

Last edited by knuke (2013-03-17 16:47:15)

Offline

#9 2013-03-17 19:06:43

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: Hibernation using 'systemctl hibernate' isn't working

I believe Veox is trying to say, that you swap partition has to be at least as large as your physical memory, which yours isn't.

Offline

#10 2013-03-17 19:55:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Hibernation using 'systemctl hibernate' isn't working

Arctus wrote:

I believe Veox is trying to say, that you swap partition has to be at least as large as your physical memory, which yours isn't.

This is not true actually.  It definitely depends on what you run and whatnot, but the system tries to rid itself of non-essentials and then compresses what is left.  So when I used to use hibernate with 4GB of RAM, I always used 2GB and it never failed.  It should be noted though that I use just a simple tiling window manager.  So this may be different if you use a whole DE and everything (particularly KDE).

Offline

#11 2013-03-17 22:02:59

knuke
Member
From: Austria
Registered: 2013-01-03
Posts: 20

Re: Hibernation using 'systemctl hibernate' isn't working

So you think it could be because the partition is to small? hmm.

But if this would be the problem, then shouldn't it work if i just booted, while my RAM is nearly empty?
I'm using awesome as window manager and as you can see from my previous post, my RAM is used by 1388724.

I'm a bit to lazy to repartition just to get hibernation working.

Offline

#12 2013-03-17 23:14:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Hibernation using 'systemctl hibernate' isn't working

No need to repartition to test this. Just look into how to make a swap file instead.

Offline

#13 2013-03-18 09:32:01

knuke
Member
From: Austria
Registered: 2013-01-03
Posts: 20

Re: Hibernation using 'systemctl hibernate' isn't working

I had already set up a swap file by following the article in the arch wiki. It gave me the same results as the swap partition.

Offline

#14 2013-03-18 14:06:16

veox
Member
Registered: 2008-10-28
Posts: 49
Website

Re: Hibernation using 'systemctl hibernate' isn't working

I suggest you increase the swap partition. Or, better yet, create a new, larger swap partition, and try using that. If it works, then you are currently experiencing a bug, maybe a kernel panic. If you wish to help solving this bug, you will have a small swap partition to reproduce the bug.

Offline

Board footer

Powered by FluxBB