Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261936AbTI2UtH (ORCPT ); Mon, 29 Sep 2003 16:49:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261178AbTI2UtH (ORCPT ); Mon, 29 Sep 2003 16:49:07 -0400 Received: from gprs144-48.eurotel.cz ([160.218.144.48]:44931 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S261936AbTI2UtE (ORCPT ); Mon, 29 Sep 2003 16:49:04 -0400 Date: Mon, 29 Sep 2003 22:46:34 +0200 From: Pavel Machek To: Pavel Machek Cc: Linus Torvalds , kernel list , Patrick Mochel Subject: Re: pm: Revert swsusp to 2.6.0-test3 Message-ID: <20030929204634.GA2425@elf.ucw.cz> References: <20030928100620.5FAA63450F@smtp-out2.iol.cz> <20030928175853.GF359@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030928175853.GF359@elf.ucw.cz> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > I'd also like to have some kind of readme or similar on the different > > suspend/resume issues, and why we have two different > > approaches. Hmm? What about this one? Pavel --- clean/Documentation/power/swsusp.txt 2003-08-27 12:00:01.000000000 +0200 +++ linux/Documentation/power/swsusp.txt 2003-09-29 22:44:27.000000000 +0200 @@ -17,6 +17,23 @@ You need to append resume=/dev/your_swap_partition to kernel command line. Then you suspend by echo 4 > /proc/acpi/sleep. +Pavel's unreliable guide to swsusp mess +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +They are currently two versions of swap suspend in the kernel, old +"Pavel's" version in kernel/power/swsusp.c and new "Patrick's" version +in kernel/power/pmdisk.c. They provide same functionality; old version +looks ugly but was tested, while new version looks nicer but did not +receive so much testing. echo 4 > /proc/acpi/sleep calls old version, +echo disk > /sys/power/state calls new one. + +[In future, when new version is stable enough, two things can happen + +* new version is moved into swsusp.c, and swsusp is renamed to swap + suspend (Pavel prefers this) + +* pmdisk is kept as is and swsusp.c is removed from kernel] + [Notice. Rest docs is pretty outdated (see date!) It should be safe to use swsusp on ext3/reiserfs these days.] -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/