From: Lusotec on
Albretch Mueller wrote:
> One of the few things I think Windows does well (well, definitely
> better than "us") is hibernating. You can actually notice how the hard
> drives don't seem to be powered and even the fans stop spipping
>
> I have tried hibernating under both, knoppix 6.2 and Ubuntu 9.10 and
> none of them get it right. Is there any Linux distro that does?
>
> Why is that?

Hibernate in GNU/Linux is called suspend to disk (S2DISK). GNU/Linux
support for S2DISK is hardware and firmware dependent (same for Windows) and
works for some hardware/firmware but not others.

On my personal MSI notebook S2DISK and S2RAM works in GNU/Linux and Windows
XP but not in Windows Vista and 7. For Vista (and maybe 7) it requires a
firmware update but some people reported problems with the update, so I did
not apply it and I can't tell if it would have solve the problem. I don't
use those OSs in my notebook anyway.

On my desktop workstation, both S2RAM and S2DISK works on GNU/Linux,
Windows XP and Windows 7 RC. Both entering and leaving S2DISK is faster on
GNU/Linux than on XP or 7. Entering S2RAM takes a few seconds in the three
OSs but leaving S2RAM is much slower in GNU/Linux taking 12 seconds while XP
and 7 only take one or two seconds.

On a final note, probably all distros use the same software packages (e.g.
Linux kernel and pm package) to implement S2RAM and S2DISK. Different
distros have different versions of those packages and this results in
different hardware/firmware support.

Bleeding edge distros probably have more recent versions of those packages
and thus better support but you can cut your fingers in the sharp edges
else
where. :)

Regards.
From: felmon on
On Sat, 21 Nov 2009 11:33:56 -0500, Jelly Bean wrote:

> I'm not having any problems here with hibernate or suspend on 3
> different notebooks. Ubuntu 9.10 worked from a fresh install and Fedora
> 11 did as well. The hardware is Lenovo T400, Thinkpad T43, Gateway Core
> Duo, don't remember the model. All I did was install Linux and
> everything worked with no troubles. What hardware do you have? JB.

when I hibernate my HP Pavillion dv2000 laptop (kind of old), with Debian
Lenny, I have a little fussing to do to get the network back when it
comes out of hibernation. I have to do some random hits on wicd and
dhclient before it gets ip. maybe a router issue?

sometimes though it seems I have to assign an ip address in order to get
other routers to give me a route.

it would be grand if there were no problems at all but once I know the
tricks, it's minor frustration.

wish there were a real solution though.

Felmon
From: Jelly Bean on
On Sat, 21 Nov 2009 21:44:09 -0600, felmon wrote:

> On Sat, 21 Nov 2009 11:33:56 -0500, Jelly Bean wrote:
>
>> I'm not having any problems here with hibernate or suspend on 3
>> different notebooks. Ubuntu 9.10 worked from a fresh install and Fedora
>> 11 did as well. The hardware is Lenovo T400, Thinkpad T43, Gateway Core
>> Duo, don't remember the model. All I did was install Linux and
>> everything worked with no troubles. What hardware do you have? JB.
>
> when I hibernate my HP Pavillion dv2000 laptop (kind of old), with Debian
> Lenny, I have a little fussing to do to get the network back when it
> comes out of hibernation. I have to do some random hits on wicd and
> dhclient before it gets ip. maybe a router issue?
>
> sometimes though it seems I have to assign an ip address in order to get
> other routers to give me a route.
>
> it would be grand if there were no problems at all but once I know the
> tricks, it's minor frustration.
>
> wish there were a real solution though.
>
> Felmon

I'm assuming this is wireless? What if you assign a fixed ip address to the
laptop?
Also, I had a similar problem with an older laptop and older version of
suse. I had to stop networking before suspend, and restart it afterwards.
I set up a script to do it. A bit of a pain but it worked.
Is there any setting in the wireless setup to preserve settings or
something similar?
I know under Windows 7 if I suspend, sometimes when I resume I have a
different ip address, but it is transparent and works. Doesn't happen all
the time though. I have a Cisco router.
From: felmon on
On Sun, 22 Nov 2009 00:54:45 -0500, Jelly Bean wrote:

> On Sat, 21 Nov 2009 21:44:09 -0600, felmon wrote:
>
>> On Sat, 21 Nov 2009 11:33:56 -0500, Jelly Bean wrote:
>>
>>> I'm not having any problems here with hibernate or suspend on 3
>>> different notebooks. Ubuntu 9.10 worked from a fresh install and
>>> Fedora 11 did as well. The hardware is Lenovo T400, Thinkpad T43,
>>> Gateway Core Duo, don't remember the model. All I did was install
>>> Linux and everything worked with no troubles. What hardware do you
>>> have? JB.
>>
>> when I hibernate my HP Pavillion dv2000 laptop (kind of old), with
>> Debian Lenny, I have a little fussing to do to get the network back
>> when it comes out of hibernation. I have to do some random hits on wicd
>> and dhclient before it gets ip. maybe a router issue?
>>
>> sometimes though it seems I have to assign an ip address in order to
>> get other routers to give me a route.
>>
>> it would be grand if there were no problems at all but once I know the
>> tricks, it's minor frustration.
>>
>> wish there were a real solution though.
>>
>> Felmon
>
> I'm assuming this is wireless? What if you assign a fixed ip address to
> the laptop?

yes, wireless. I'll try doing it with a fixed ip and see.

> Also, I had a similar problem with an older laptop and older version of
> suse. I had to stop networking before suspend, and restart it
> afterwards. I set up a script to do it. A bit of a pain but it worked.
> Is there any setting in the wireless setup to preserve settings or
> something similar?

it should be possible to set this up. I'll see if shutting down wifi
before hibernating works. if so, then your suggestion looks like the way
to go.

> I know under Windows 7 if I suspend, sometimes when I resume I have a
> different ip address, but it is transparent and works. Doesn't happen
> all the time though. I have a Cisco router.

I no longer have Windows on this machine and can't recall if the problem
occurred there. my spouse visits with her XP machine and it seems to
suspend and waken fine with no connection problem. I don't know if her
machine goes completely "asleep" - power out.

I have some kind of Belkin.

great tips, thanks!

Felmon
From: Lusotec on
Albretch Mueller wrote:
> One of the few things I think Windows does well (well, definitely
> better than "us") is hibernating. You can actually notice how the hard
> drives don't seem to be powered and even the fans stop spipping
>
> I have tried hibernating under both, knoppix 6.2 and Ubuntu 9.10 and
> none of them get it right. Is there any Linux distro that does?
>
> Why is that?

Hibernate in GNU/Linux is called suspend to disk (S2DISK). GNU/Linux support
for S2DISK is hardware and firmware dependent (same for Windows) and works
for some hardware/firmware but not other.

On my personal MSI notebook S2DISK and S2RAM works in GNU/Linux and Windows
XP but not in Windows Vista and 7. For Vista (and maybe 7) it requires a
firmware update but some people reported problems with the update, so I did
not apply it and I can't tell if it would have solve the problem. I don't
use those OSs in my notebook anyway.

On my desktop workstation, both S2RAM and S2DISK works on GNU/Linux, Windows
XP and Windows 7 RC. Both entering and leaving S2DISK is faster on GNU/Linux
than on XP or 7. Entering S2RAM takes a few seconds in the three OSs but
leaving S2RAM is much slower in GNU/Linux taking 12 seconds while XP and 7
only take one or two seconds.

On a final note, probably all distros use the same software packages (e.g.
Linux kernel and pm package) to implement S2RAM and S2DISK. Different
distros have different versions of those packages and this results in
different hardware/firmware support.

Bleeding edge distros probably have more recent versions of those packages
and thus better support but you can cut your fingers in the sharp edges else
where. :)

Regards.