MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 5 posts ] 
Suspend to disk using swap file 
Author Message
MEPIS Novice
MEPIS  Novice

Joined: Sat Jun 18, 2011 4:32 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
Post # 277347
Post Suspend to disk using swap file
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.


Sat Jun 18, 2011 5:27 pm
Profile
MEPIS Novice
MEPIS  Novice
User avatar

Joined: Tue Aug 10, 2010 5:46 pm
Posts: 43
Location: Puerto Rico
Has thanked: 8 times
Have thanks: 6 times
Post # 277450
Post Re: Suspend to disk using swap file
Maybe you should read this post, specifically #3 answer! hope it helps! :crossfingers:

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


Sun Jun 19, 2011 8:17 pm
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8138
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 478 times
Have thanks: 1669 times
Post # 277472
Post Re: Suspend to disk using swap file
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.


Mon Jun 20, 2011 12:42 am
Profile
MEPIS Novice
MEPIS  Novice

Joined: Sat Jun 18, 2011 4:32 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
Post # 277613
Post Re: Suspend to disk using swap file
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.


Wed Jun 22, 2011 6:27 am
Profile
MEPIS Novice
MEPIS  Novice

Joined: Thu Apr 19, 2012 9:38 am
Posts: 1
Has thanked: 0 time
Have thanks: 3 times
Post # 298840
Post Re: Suspend to disk using swap file
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:
resume=/dev/sda5

to the menu entries in /boot/grub/menu.lst, so that each entry reads something like
Code:
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.


Thu Apr 19, 2012 9:51 am Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.