From owner-acpi-jp@jp.freebsd.org  Thu Dec 28 09:45:46 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id JAA16541;
	Thu, 28 Dec 2000 09:45:46 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mass.osd.bsdi.com (adsl-63-202-177-107.dsl.snfc21.pacbell.net [63.202.177.107])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id JAA16524;
	Thu, 28 Dec 2000 09:45:44 +0900 (JST)
	(envelope-from msmith@mass.osd.bsdi.com)
Received: from mass.osd.bsdi.com (localhost [127.0.0.1])
	by mass.osd.bsdi.com (8.11.1/8.11.1) with ESMTP id eBS0v9P05986;
	Wed, 27 Dec 2000 16:57:12 -0800 (PST)
	(envelope-from msmith@mass.osd.bsdi.com)
Message-Id: <200012280057.eBS0v9P05986@mass.osd.bsdi.com>
X-Mailer: exmh version 2.1.1 10/15/1999
To: acpi-jp@jp.freebsd.org
cc: iwasaki@jp.freebsd.org
In-reply-to: Your message of "Thu, 28 Dec 2000 02:16:03 +0900."
             <20001228021603T.haro@tk.kubota.co.jp> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 27 Dec 2000 16:57:09 -0800
From: Mike Smith <msmith@freebsd.org>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 1010
Subject: [acpi-jp 1010] Re: Generalised power-management interface (was Re: Some power device driver. ) 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: msmith@freebsd.org

> ::The acpi_power_fn() keeps the latest battery info. to reduce AML method
> ::execution (heavy!) until it expired.
> 
> But some applications, like xbattbar, updates every 10secs.
> So caching for 30secs seems to long.

I think that updating every 10 seconds is too frequent. 8)

There are good cases where the cached value should be invalidated (eg. 
insertion/removal of a battery), but I think that 30 seconds is entirely 
reasonable.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E


