From owner-freebsd-acpi@FreeBSD.ORG Wed Aug 20 03:40:47 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08BA0106564A for ; Wed, 20 Aug 2008 03:40:47 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate3.pacific.net.sg (smtpgate3.pacific.net.sg [203.81.36.33]) by mx1.freebsd.org (Postfix) with SMTP id 387EA8FC16 for ; Wed, 20 Aug 2008 03:40:45 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 29378 invoked from network); 20 Aug 2008 03:40:42 -0000 Received: from bb116-14-29-164.singnet.com.sg (HELO P2120.somewherefaraway.com) (oceanare@116.14.29.164) by smtpgate3.pacific.net.sg with ESMTPA; 20 Aug 2008 03:40:42 -0000 Message-ID: <48AB923A.6030207@pacific.net.sg> Date: Wed, 20 Aug 2008 11:40:42 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.14 (X11/20080617) MIME-Version: 1.0 To: Nate Lawson References: <48AA2F87.8060506@pacific.net.sg> <20080819073709.GU32539@server.vk2pj.dyndns.org> <48AAE3CF.50405@root.org> In-Reply-To: <48AAE3CF.50405@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Jeremy , freebsd-acpi@freebsd.org Subject: Re: powerd, please test patch X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2008 03:40:47 -0000 Hi, Nate Lawson wrote: > Peter Jeremy wrote: >> On 2008-Aug-19 10:27:19 +0800, Erich Dollansky wrote: >>> I am using powerd on a notebook. Stopping powerd left the CPU running in >>> the last mode it was in. >>> >>> This patch extents powerd's command line by the parameter '-e' to set >>> the exit mode. >> Can you please submit a PR with your patches as context or unified diffs. >> >>> This patch is for FreeBSD 6.3 updated beginning of the month. >> Without either context or exact file revisions, your patch cannot be >> safely applied. > > Instead of setting an exit mode with a new -e flag, why not just save > the original value when powerd starts and restore it on exit? > why not do both with your idea as the default? I will try to do this over the weekend and then try to file a proper patch. Erich