On Tue, 27 Jan 2004 11:31:50 +1300 Nigel Cunningham wrote: > Yes. That's why suspend2 doesn't free any memory at all by default, > but gives the user the option of setting a maximum image size. HaHa, Here is swsusp2 patch for ppc. Now it WORKS fine. The code base for testing, any comments and testing are welcome. -: Howto let it work. 1: download clean 2.6.1 kernel. 2: apply swusp2 2.6.1 patch. 3: apply swsusp2 core patch. 4: apply ppc_swsusp2_1.diff 5: do make menuconfig CONFIG_SOFTWARE_SUSPEND2=y CONFIG_SOFTWARE_SUSPEND_DEBUG=y CONFIG_SOFTWARE_SUSPEND_GZIP_COMPRESSION=y CONFIG_SOFTWARE_SUSPEND_LZF_COMPRESSION=y CONFIG_SOFTWARE_SUSPEND_SWAPWRITER=y 6:add "resume2=swap:/dev/hda10" into yaboot.conf. "/dev/hda10" is your swap partition. 7:do suspend. I using a sciprt to do it. or use suspend script from swsusp2.sf.net . 8:you system will backed. -: Plans. I has created arch/ppc/power directory like i386 arch, and put power manger code in it. 1: clean code. 2: merge pmac sleep into. thanks. -- Hu Gang / Steve Linux Registered User 204016 GPG Public Key: http://soulinfo.com/~hugang/HuGang.asc