Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965133AbWJJMKt (ORCPT ); Tue, 10 Oct 2006 08:10:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965019AbWJJMKt (ORCPT ); Tue, 10 Oct 2006 08:10:49 -0400 Received: from ns.suse.de ([195.135.220.2]:21148 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S965135AbWJJMKs (ORCPT ); Tue, 10 Oct 2006 08:10:48 -0400 Date: Tue, 10 Oct 2006 14:10:45 +0200 From: Stefan Seyfried To: "Rafael J. Wysocki" Cc: Pavel Machek , Jiri Kosina , linux-acpi@intel.com, linux-kernel@vger.kernel.org, Andrew Morton , Len Brown Subject: Re: [PATCH] preserve correct battery state through suspend/resume cycles Message-ID: <20061010121045.GQ19765@suse.de> References: <20060930114817.GA26217@suse.de> <20061008184230.GC4033@ucw.cz> <200610100052.10008.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200610100052.10008.rjw@sisk.pl> X-Operating-System: SUSE Linux Enterprise Desktop 10 (i586), Kernel 2.6.18-9-default User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1218 Lines: 26 On Tue, Oct 10, 2006 at 12:52:09AM +0200, Rafael J. Wysocki wrote: > On Sunday, 8 October 2006 20:42, Pavel Machek wrote: > > > echo "platform" > /sys/power/disk > > > echo "disk" > /sys/power/state > > > > Maybe we should change the default in 2.6.20 or so? > > Well, I think swsusp should work with "shutdown" just as well. If it doesn't, > that means there are some bugs in the ACPI code which should be fixed. > By using "platform" as the default method we'll be hiding those bugs IMHO. I'm not really intimately familiar with the ACPI spec, but IIRC those AML methods executed by pm_ops->prepare and pm_ops->finish are mandatory for suspending ACPI enabled machines. So using "platform" as a default seems reasonable (assuming that on non-ACPI machines, pm_ops->{prepare,finish} will be a noop anyway) -- Stefan Seyfried QA / R&D Team Mobile Devices | "Any ideas, John?" SUSE LINUX Products GmbH, N?rnberg | "Well, surrounding them's out." - 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/