From owner-acpi-jp@jp.freebsd.org  Fri Dec  8 00:49:50 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id AAA59564;
	Fri, 8 Dec 2000 00:49:50 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (daemon@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id AAA59550;
	Fri, 8 Dec 2000 00:49:45 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92])
	by tasogare.imasy.or.jp (8.11.1+3.4W/3.7W-tasogare/smtpfeed 1.07) with ESMTP id eB7Fnfk36055;
	Fri, 8 Dec 2000 00:49:41 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
To: acpi-jp@jp.freebsd.org, haro@tk.kubota.co.jp
Cc: iwasaki@jp.freebsd.org
In-Reply-To: <20001208000836H.haro@tk.kubota.co.jp>
References: <20001127163345Y.haro@tk.kubota.co.jp>
	<20001207201322Q.iwasaki@jp.FreeBSD.org>
	<20001208000836H.haro@tk.kubota.co.jp>
X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20001208004938A.iwasaki@jp.FreeBSD.org>
Date: Fri, 08 Dec 2000 00:49:38 +0900
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
X-Dispatcher: imput version 20000228(IM140)
Lines: 86
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 950
Subject: [acpi-jp 950] Re: Some power device driver. 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

> ::These are almost double, compare to what APM BIOS said...
> <snip>
> ::
> ::Changing
> ::	bat[i].min = 60 * bat[i].bst.cap / bat[i].bst.rate);
> ::to
> ::	bat[i].min = (60 * bat[i].bst.cap / bat[i].bst.rate) / units;
> ::gives me a correct remaining time.
> 
> 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,

% acpibatt -d
ACPI Battey info:
AC Line status: off-line
Remaining battery life: 98%
Remaining battery time: 186 minutes
Number of batteries: 2
Battery 0:
	Battery status: dis-charging
	Remaining battery life: 98%
	Remaining battery time: 88 minutes
	Battery output: 7.824V
	_BIF info
	  unit : 1 (mAh)
	  dcap :  1093mAh
	  lfcap:  1093mAh
	  wcap :   173mAh
	  lcap :    58mAh
	  gra1 :     1mAh
	  gra2 :     1mAh
	  dvol :  7200mV
	_BST info
	  state: 1
	  rate :   736mAh
	  cap  :  1081mAh
	  volt :  7824mV
Battery 1:
	Battery status: dis-charging
	Remaining battery life: 98%
	Remaining battery time: 98 minutes
	Battery output: 7.776V
	_BIF info
	  unit : 1 (mAh)
	  dcap :  1093mAh
	  lfcap:  1093mAh
	  wcap :   173mAh
	  lcap :    58mAh
	  gra1 :     1mAh
	  gra2 :     1mAh
	  dvol :  7200mV
	_BST info
	  state: 1
	  rate :   656mAh
	  cap  :  1081mAh
	  volt :  7776mV

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
APM version: 1.2
APM Managment: Enabled
AC Line status: off-line
Battery status: high
Remaining battery life: 98%
Remaining battery time:  1:33:00
Number of batteries: 2
Battery 0:
	Battery status: high
	Remaining battery life: 98%
	Remaining battery time:  0:46:00
Battery 1:
	Battery status: high
	Remaining battery life: 98%
	Remaining battery time:  0:46:00
Resume timer: disabled
Resume on ring indicator: enabled
APM Capacities:
	global standby state
	global suspend state
	resume timer from suspend
