[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 09:34:25 CEST 2010


Hi,

I'm having some trouble with the standard suspend-to-disk and people
recommended to try the zen kernel which includes the TuxOnIce patch.
I'm not sure if I have something wrong but I couldn't see how to
install the zen kernels without patching all-packages.nix:

Index: /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix
===================================================================
--- /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix	(revision 24413)
+++ /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix	(working copy)
@@ -4798,6 +4798,8 @@
     recurseIntoAttrs (linuxPackagesFor linux_2_6_32_systemtap
pkgs.linuxPackages_2_6_32_systemtap);
   linuxPackages_2_6_32_xen =
     recurseIntoAttrs (linuxPackagesFor linux_2_6_32_xen
pkgs.linuxPackages_2_6_32_xen);
+  linuxPackages_2_6_32_zen4 =
+    recurseIntoAttrs (linuxPackagesFor linux_2_6_32_zen4
pkgs.linuxPackages_2_6_32_zen4);
   linuxPackages_2_6_33 = recurseIntoAttrs (linuxPackagesFor
linux_2_6_33 pkgs.linuxPackages_2_6_33);
   linuxPackages_2_6_34 = recurseIntoAttrs (linuxPackagesFor
linux_2_6_34 pkgs.linuxPackages_2_6_34);
   linuxPackages_2_6_35 = recurseIntoAttrs (linuxPackagesFor
linux_2_6_35 pkgs.linuxPackages_2_6_35);

The hibernate script complained that the has was wrong so I have also
attached a patch to update it to the latest version.

After adding the resume2 option as a kernel parameter the `hibernate
--force` goes through the motions of hibernation but on resume I get
the following message:

"TuxOnIce core not loaded yet"

Is anyone successfully using TuxOnIce? Any advice?

Thanks,
Cillian (goibhniu)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all-packages-enable-linux2.6.32-zen4.patch
Type: application/octet-stream
Size: 938 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20101022/2702d6f6/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hibernate-2.0.patch
Type: application/octet-stream
Size: 811 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20101022/2702d6f6/attachment-0001.obj 


More information about the nix-dev mailing list