You are not logged in.
Hey.
When i try do hibernate with:
systemctl hibernateIt 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 -1I'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 linuxThen 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.cfgAfter 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
Try suspending, what happens then?
Offline
Suspending works as good as it ever had. All the other things like reboot/shutdown are working also.
Offline
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
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
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-ARCHOffline
Do you have more than 5119996 bytes of RAM?
Offline
[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 cachedso I assume, yes.
Last edited by knuke (2013-03-17 16:47:15)
Offline
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
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
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
No need to repartition to test this. Just look into how to make a swap file instead.
Offline
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
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