[Nix-dev] [PATCH] Hibernate script -> 2.0 and enable linux_2_6_32_zen4 in all-packages.nix

Cillian de Róiste cillian.deroiste at gmail.com
Fri Oct 22 15:12:19 CEST 2010


Hi Marc,

On Fri, Oct 22, 2010 at 1:48 PM, Marc Weber <marco-oweber at gmx.de> wrote:
> Excerpts from Cillian de Róiste's message of Fri Oct 22 09:34:25 +0200 2010:
>> Hi,
>>
>> I'm having some trouble with the standard suspend-to-disk and people
>
> What is the standard?
>
> Did you try the command pm-hibernate (pm-utils)
> It can apply some hardware specific tricks ?

Ah, this is indeed what I meant by "standard". I believe that the
Sleep/Hibernate buttons in KDE, Gnome etc. use pm-hibernate et. al.
and that most desktop distros use pm-utils on a kernel without the
TuxOnIce patch. I actually thought TuxOnIce was obsolete until someone
mentioned it on the nixos irc channel.

---snip---

> Verify that tuxonice can be found without touching the unclean disk.
> (Eg use copykernels). I don't know whether this will help.

Verified

> Also the tuxonice distrbituion ships with a script which applies some
> hardware specific stuff before hibernating. Whether this is necessary
> for your setup - I don't know

I tried `hibernate --force` via the version 2.0 Hibernate script:
http://tuxonice.net/files/hibernate-script-2.0.tar.gz

I found the documentation on their site pretty sparse so I assumed I
should use that script as opposed to the pm-hibernate command (I will
try pm-hibernate on the TuxOnIce kernel later though, just in case)

> I added tuxonice a long time ago becuse hibernating didn't work at all.
> It still didn't on that machine I cared about. I don't know about the
> current status.
>
> I can't spend much time on it. pm-hibernate causes some trouble to me:
> Not all cores wake up again always.

After a few hibernation cycles, pm-hibernate fails to hibernate for me
so I thought I'd try out TuxOnIce. Previously, with Debian Lenny on
the same laptop, I had various issues related to pm-suspend. On resume
my external screen would blink, and after about a week Xorg memory
usage would increase to over 1GB and it would take over 30mins to
resume. Unfortunately, I can no longer use pm-suspend on NixOS as I
have a BIOS problem (it auto-reboots when I shut
down/hibernate/suspend ... also via Debian).

It would be interesting to hear if anyone is successfully using
TuxOnIce on nixos, the reason I call it's hibernation script with
"--force" is because it fails to find a list of blacklisted kernel
modules, which is something I may need to fix. I will inquire further
with the TuxOnIce folks and report back if I get anywhere.

Thanks a lot for all your help!
Cillian

>
> Its not a top prio for me
>
> Good luck.
> Marc Weber
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>



More information about the nix-dev mailing list