From owner-acpi-jp@jp.freebsd.org  Fri Nov 10 21:26:56 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id VAA10887;
	Fri, 10 Nov 2000 21:26:56 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mass.osd.bsdi.com (adsl-63-206-90-77.dsl.snfc21.pacbell.net [63.206.90.77])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id VAA10881
	for <acpi-jp@jp.freebsd.org>; Fri, 10 Nov 2000 21:26:55 +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.0/8.11.1) with ESMTP id eAACWO906477
	for <acpi-jp@jp.freebsd.org>; Fri, 10 Nov 2000 04:32:24 -0800 (PST)
	(envelope-from msmith@mass.osd.bsdi.com)
Message-Id: <200011101232.eAACWO906477@mass.osd.bsdi.com>
X-Mailer: exmh version 2.1.1 10/15/1999
To: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Fri, 10 Nov 2000 16:34:23 +0900."
             <200011100734.QAA79723@shidahara1.planet.sci.kobe-u.ac.jp> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 10 Nov 2000 04:32:24 -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 900
Subject: [acpi-jp 900] 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

> Hi, I wrote driver for AC Adaptor, Control method Battery.
> It responds AC Adaptor ejection event and battery charge status change and
> and attery change .

I have my usual issues with style etc. with these two, but I'm sure we 
can fix those up before you commit them.

The AC adapter code looks fine, although you might want to create an 
eventhandler that gets invoked when the status changes so that things 
like the processor and thermal code can change policies, etc.

I'm not so sure about the battery code yet.  Is it worthwhile to try to 
have a "generic" smart battery driver that can use both control-method 
and other backends?  Or should we keep them separate?

> And I modified thermal zone code so that it detects thermal zone event.

The thermal zone code as a whole needs more work.  I just wish I could 
get the interpreter to work on my *&%$*%$ laptop so that I could do 
something useful with this.  Note that what you're actually detecting is 
a change in temperature, not trip points.  This code will probably have 
to change later, but for now it would be good to add this.

Thanks for these!

Regards,
Mike

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


