Suspend to disk using swap file

Help for Mepis 11
Message
Author
mattday
Forum Novice
Forum  Novice
Posts: 2
Joined: Sat Jun 18, 2011 4:32 pm

Suspend to disk using swap file

#1 Postby mattday » Sat Jun 18, 2011 5:27 pm

I would like to get hibernation working on my notebook which has SSD and no swap partition. Suspend to RAM works just fine.

I started following this guide to use a swap file. However, squeeze/M11 do not have the uswsusp package. Is there another/better way to get this working (i.e. without uswsusp) or should I install the uswsusp package from sid? Thanks.

User avatar
heavy metal
Forum Novice
Forum  Novice
Posts: 43
Age: 40
Joined: Tue Aug 10, 2010 5:46 pm

Re: Suspend to disk using swap file

#2 Postby heavy metal » Sun Jun 19, 2011 8:17 pm

Maybe you should read this post, specifically #3 answer! hope it helps! :crossfingers:

http://forum.mepiscommunity.org/viewtopic.php?f=84&t=30824

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 11476
Age: 58
Joined: Fri Dec 15, 2006 8:07 pm

Re: Suspend to disk using swap file

#3 Postby Stevo » Mon Jun 20, 2011 12:42 am

There is a hibernate script package in the repos---reading the man page takes a while since there is a zillion options. It may be possible to specify exactly where to put the state file, say on your user partition, but I have not read its man page completely.
The optimist proclaims that we live in the best of all possible worlds, and the pessimist fears this is true.

James Branch Cabell

mattday
Forum Novice
Forum  Novice
Posts: 2
Joined: Sat Jun 18, 2011 4:32 pm

Re: Suspend to disk using swap file

#4 Postby mattday » Wed Jun 22, 2011 6:27 am

As I understand it, there are at least three ways of doing hibernation.

1. There is a built-in kernel method which is used by default. It has the least options and requires a swap partition.

2. There is a user space program, uswsusp, although this package is not in squeeze.

3. There is TuxOnIce (formerly suspend2). This requires kernel patching and there is no package in squeeze.

I did try the hibernate script, but it complained that TuxOnIce was missing and looking at the man page, it appears to use that for hibernation. Whilst TuxOnIce has more features than uswsusp, the latter should be simpler to set up.

So I installed the uswsusp package from sid. There were no problems other than update-initramfs failing, so I did that manually. Running s2disk will now hibernate my machine, but I have not figured out how to make it resume from the image. It always does a full boot.

peterpiper
Forum Novice
Forum  Novice
Posts: 1
Joined: Thu Apr 19, 2012 9:38 am

Re: Suspend to disk using swap file

#5 Postby peterpiper » Thu Apr 19, 2012 9:51 am

Resurecting an old thread but this one came up most when I was searching to solve this problem.

I found my install of MEPIS 11 would not resume from disk either. /var/log/pm-suspend.log seemed to indicate that it was writing to the swap partition OK.

I found that by adding

Code: Select all

resume=/dev/sda5

to the menu entries in /boot/grub/menu.lst, so that each entry reads something like

Code: Select all

title MEPIS at sda3, newest kernel
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 nomce quiet splash vga=788 resume=/dev/sda5
initrd /boot/initrd.img
boot

I got the resume from suspend working. sda5 is the location of my swap partition.


Return to “Mepis 11”

Who is online

Users browsing this forum: No registered users and 1 guest