From owner-acpi-jp@jp.freebsd.org  Fri Dec  8 01:55:57 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA62716;
	Fri, 8 Dec 2000 01:55:57 +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 BAA62710;
	Fri, 8 Dec 2000 01:55:56 +0900 (JST)
	(envelope-from haro@tk.kubota.co.jp)
Received: by kbtfw.kubota.co.jp; id BAA16267; Fri, 8 Dec 2000 01:55:54 +0900 (JST)
Received: from unknown(133.253.122.4) by kbtfw.kubota.co.jp via smap (V4.2)
	id xma016242; Fri, 8 Dec 00 01:55:08 +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 eB7Gt7l03757;
	Fri, 8 Dec 2000 01:55:07 +0900 (JST)
Received: from jkpc15.tk.kubota.co.jp by ktkl129.tk.kubota.co.jp (8.6.13+2.4W/3.4W3-97053016)
	id BAA01187; Fri, 8 Dec 2000 01:53:40 +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 eB7GrXa00949;
	Fri, 8 Dec 2000 01:53:33 +0900 (JST)
To: acpi-jp@jp.freebsd.org, iwasaki@jp.freebsd.org
In-Reply-To: <20001208004938A.iwasaki@jp.FreeBSD.org>
References: <20001207201322Q.iwasaki@jp.FreeBSD.org>
	<20001208000836H.haro@tk.kubota.co.jp>
	<20001208004938A.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: <20001208015333H.haro@tk.kubota.co.jp>
Date: Fri, 08 Dec 2000 01:53:33 +0900
From: Munehiro Matsuda <haro@tk.kubota.co.jp>
X-Dispatcher: imput version 20000228(IM140)
Lines: 51
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 951
Subject: [acpi-jp 951] 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: Fri, 08 Dec 2000 00:49:38 +0900
::> Hmm, it works for me.
::> I have updated patch for acpibatt, included as acpibatt.patch.
::> Could you apply the patch and send me output with '-d (debug)' option?
::
::OK,
::
::ACPI Battey info:
::Battery 0:
::	Remaining battery time: 88 minutes
::	  unit : 1 (mAh)
::	  rate :   736mAh
::	  cap  :  1081mAh
::Battery 1:
::	Remaining battery time: 98 minutes
::	  rate :   656mAh
::	  cap  :  1081mAh
::
::This said the machine has more tham 3 hours battery remaining time.
::But sadly, it's not true.  APM told me it has just 2 hours with
::2 units of full-charged batteries...
::
::% apm
::Battery 0:
::	Remaining battery time:  0:46:00
::Battery 1:
::	Remaining battery time:  0:46:00

It may be that your system uses "mAh" unit and "mWh" for mine.
For "mAh" systems, we may have to sum the dis-charging rate for all the
batterires. eg.

  $ echo  "1081 / ( 736 + 656 ) * 60" | bc -l 
  46.59482758620689655120
  $

This value is close to what apm reports.
Can anybody confirm this?

Anyway, I'll try to implement it.

  Thanks,
   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
