From owner-acpi-jp@jp.freebsd.org  Thu Dec 28 02:18:49 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id CAA91424;
	Thu, 28 Dec 2000 02:18:49 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from kbtfw.kubota.co.jp (firewall-user@kbtfw.kubota.co.jp [133.253.102.202])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id CAA91418;
	Thu, 28 Dec 2000 02:18:47 +0900 (JST)
	(envelope-from haro@tk.kubota.co.jp)
Received: by kbtfw.kubota.co.jp; id CAA23920; Thu, 28 Dec 2000 02:18:46 +0900 (JST)
Received: from unknown(133.253.122.4) by kbtfw.kubota.co.jp via smap (V4.2)
	id xma023914; Thu, 28 Dec 00 02:18:31 +0900
Received: from ktkl129.tk.kubota.co.jp (IDENT:root@kbtgk.eto.kubota.co.jp [133.253.122.3])
	by kbtmk.eto.kubota.co.jp (8.11.1/8.11.1) with ESMTP id eBRHIVJ23124;
	Thu, 28 Dec 2000 02:18:31 +0900 (JST)
Received: from jkpc15.tk.kubota.co.jp by ktkl129.tk.kubota.co.jp (8.6.13+2.4W/3.4W3-97053016)
	id CAA19930; Thu, 28 Dec 2000 02:16:47 +0900
Received: from localhost (localhost.tk.kubota.co.jp [127.0.0.1])
	by jkpc15.tk.kubota.co.jp (8.11.1/3.7W-02/21/99) with ESMTP id eBRHG3V00830;
	Thu, 28 Dec 2000 02:16:03 +0900 (JST)
To: acpi-jp@jp.freebsd.org, iwasaki@jp.freebsd.org
In-Reply-To: <20001227232806E.iwasaki@jp.FreeBSD.org>
References: <20001227024346T.iwasaki@jp.FreeBSD.org>
	<20001227115125L.haro@tk.kubota.co.jp>
	<20001227232806E.iwasaki@jp.FreeBSD.org>
X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20001228021603T.haro@tk.kubota.co.jp>
Date: Thu, 28 Dec 2000 02:16:03 +0900
From: Munehiro Matsuda <haro@tk.kubota.co.jp>
X-Dispatcher: imput version 20000228(IM140)
Lines: 36
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 1009
Subject: [acpi-jp 1009] 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: haro@tk.kubota.co.jp

From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
Date: Wed, 27 Dec 2000 23:28:06 +0900
::> For other part of power-20001227.tar.gz:
::> 
::> 4) Some of the ioctl's in acpiio.h should be _IOR()?
::
::No, we need to pass unit number in acpi_cmbat_ioctl_arg to the driver,
::so _IOWR should be correct I think.

*Arrr*. Yes, that's right.
Now, I understood why acpibatt failed to work. :-(

::> 6) The power command reports 'Remaining battey time' to be "unknown"
::>    even when apcibatt suceeds.
::>    If I do 'acpibatt -s [01] 0', after that power command seems to work.
::
::Because of this?
::#define ACPI_POWER_INFO_EXPIRE  30      /* 30 sec to refresh info */  

*Arrr*. Must have been so.
Sorry for the false alarm. (_ _)

::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.

  Haro,
=------------------------------------------------------------------------------
           _ _    Munehiro (haro) Matsuda
 -|- /_\  |_|_|   Business Incubation Dept., Kubota Corp.
 /|\ |_|  |_|_|   1-3 Nihonbashi-Muromachi 3-Chome
                  Chuo-ku Tokyo 103-8310, Japan
                  Tel: +81-3-3245-3318  Fax: +81-3-3245-3315
                  Email: haro@kubota.co.jp
