Date: Sun, 19 Mar 2006 13:49:58 +0100
From: Richard Mittendorfer <[EMAIL PROTECTED]>
Subject: Re: [LIB] stanby/hibernate kernel 2.6.14
Also sprach Jose Tavares <[EMAIL PROTECTED]> (Sat, 18 Mar 2006 22:31:37
-0800):
> On Sat, 2006-03-18 at 10:53 -0800, Richard Mittendorfer wrote:
> > > Reactivating this thread now that I bought mine and installed
> > > debian.. :)
> > > Which software are you using for hibernation?
> > > I installed "hibernate" and "powersave"..
> > > No success with both of them.. W
> >
> > s4bios (the biosmode to suspend to the hibernation area) is gone in
> > later kernels. AFAIK it should be possible to use suspend2 as
> > swsusp(in kernel tree) isn't able to free the needed memory(RAM) if
> > there's too little free. Anyway, it works if very little memory is
> > used (plain X). suspend2 will try harder to get it freed, but I
> > can't confirm: I just use STR as it saves power quite well for my
> > need. YMMV.
> >
> > With a few tweaks to the in-kernel swsusp code it should be possible
> > to tune this also.
>
> With your reply, I realized that I need to study and read more about
> acpi and pm.. :)
>
> The suspend made by BIOS is still available in later kernels but newer
> BIOS do no implement it neither have APM support..
s4bios is an exported ACPI function(it can be called from userspace). If
it shows up in your dmesg, you maybe can activate it through /sys/power
or /proc/acpi/sleep.
> What is STR?
Suspend To Ram. Now guess STD.. (it's what you want) ;-)
STD is called from the kernel side (swsusp or suspend2) or the ACPI/BIOS
STD is used.
In the first two cases the kernel does the work: stopping tasks and
going down, starting tasks, re-initialize video and resuming normal
operation.
The later one has nothing to do with Linux. It's purely done by BIOS (OS
not involved).
> "suspend2" is a script available in hibernate and powersaved
> packages.. A little bit confusing.. Which one are you refering to?
AFAIK the hibernation script is intelligent enough to see what functions
are availible. I don't know about powersaved, as I spoke about the 110ct
and not the new U105. As said, I don't use one of these -- I wrote my
own PM script to be controlled with keycombos in fluxbox.
> Are you refering to swsusp as software suspend? I've already compiled
> a kernel tuned for my U105 with all suspend code built into kernel..
Here's the Problem. I was talking about the old 110ct.
I was refering to swsusp, which "should" work out of the box, and in
fact does here. (If there is enough memory left.) This may not be true
for the U105. So you have a couple of ways to go:
a) get the ACPI s4bios to work
"echo s4bios > /proc/acpi/sleep"
b) use the in-kernel swsusp
set a swappartition for suspend/resume for the kernel
"echo shutdown > /sys/power/disk; echo disk > /sys/power/state"
c) use suspend2
never tried, likely "# hibernate" :-)
> > > [...]
> > > Seems like I have to tune something for powersaved to work with
> > > hibernation..
> > > I reached nowhere with "hibernate" and I removed it a few minutes
> > > later to install powersaved ..
> >
> > hibernate is the debian script to use suspend2.
> > $ apt-cache show hibernate
> >
> > To get suspend2 see [1] or archck at [2], there may/should be a
> > debian package for this patch already in debian.
> >
> > [1] http://www.suspend2.net
> > [2] http://iphitus.loudas.com/
>
> I'll take a look and give them a try as soon as I have time ..
>
> Let's keep working on this .. It's a feature we can't live without ..
> :)
The suspend2 code is known to work for many users, however it doesn't
look it's getting into mainline soon.
You will need the "hibernate" script for suspend2 but not for swsusp.
> []
> JA Tavares
sl ritch