From owner-acpi-jp@jp.freebsd.org  Wed Dec 27 18:34:16 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id SAA66555;
	Wed, 27 Dec 2000 18:34:16 +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 SAA66550
	for <acpi-jp@jp.freebsd.org>; Wed, 27 Dec 2000 18:34:16 +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 eBR9YEk66311
	for <acpi-jp@jp.freebsd.org>; Wed, 27 Dec 2000 18:34:14 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
To: acpi-jp@jp.freebsd.org
In-Reply-To: <20001227115125L.haro@tk.kubota.co.jp>
References: <200012261440.eBQEeZj86154@mass.osd.bsdi.com>
	<20001227024346T.iwasaki@jp.FreeBSD.org>
	<20001227115125L.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: <20001227183413W.iwasaki@jp.FreeBSD.org>
Date: Wed, 27 Dec 2000 18:34:13 +0900
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
X-Dispatcher: imput version 20000228(IM140)
Lines: 34
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 1006
Subject: [acpi-jp 1006] 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: iwasaki@jp.freebsd.org

> ::Matsuda-san, I made changes on acpibatt utility, mainly cleanup.
> ::Could you check them?
> 
> Hi,
> 
> For the main part, it seems ok.
> 
> But:
> 1) I would like to change acpibatt's 'Remaing time' format to 'hh:mm:00'.
>   Because, apm and power commands use 'hh:mm:ss' format for remaning time,
>   why should acpibatt be different?

OK, it should be fixed.

> 2) The kernel has included the main time calculation part, why should we
>    duplicate the same code (or almost same) in user-land? 

OK, I'll move the code to acpi_cmbat and create new ioctl to get cooked
battery info.
# hopefully witin this century :-)

> 3) Acpibatt dumps core. :-)
>    # acpibatt -s 1
>    Segmentation fault (core dumped)
>    # 
> 
>   Also, I'm not sure if getopt(..,"s::") is a valid usage.

How about sysctl?  I think sysctl interface is good for this kind of
simple configuration.

I'll write more later.

Thanks
