From owner-acpi-jp@jp.freebsd.org  Wed Feb 21 18:04:12 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id SAA84966;
	Wed, 21 Feb 2001 18:04:12 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from moby.geekhouse.net (moby.geekhouse.net [64.81.6.36])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id SAA84958;
	Wed, 21 Feb 2001 18:04:10 +0900 (JST)
	(envelope-from jhb@FreeBSD.org)
Received: from laptop.baldwin.cx (john@dhcp151.geekhouse.net [192.168.1.151])
	by moby.geekhouse.net (8.11.0/8.9.3) with ESMTP id f1L96Wc68664;
	Wed, 21 Feb 2001 01:06:32 -0800 (PST)
	(envelope-from jhb@FreeBSD.org)
Message-ID: <XFMail.010221010350.jhb@FreeBSD.org>
X-Mailer: XFMail 1.4.0 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <XFMail.010220024809.jhb@FreeBSD.org>
Date: Wed, 21 Feb 2001 01:03:50 -0800 (PST)
From: John Baldwin <jhb@FreeBSD.org>
To: acpi-jp@jp.freebsd.org
Cc: Mitsuru IWASAKI <iwasaki@jp.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 1071
Subject: [acpi-jp 1071] RE: Fixes for cmbat and ec, new ioctl for the
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: jhb@FreeBSD.org


On 20-Feb-01 John Baldwin wrote:
> 
> On 20-Feb-01 Mitsuru IWASAKI wrote:
>> Hi,
>> 
>>> I also added an ioctl to the thermal driver to allow reading of the current
>>> temperature.
>> 
>> Great!  I have one thing to suggest on your patch.
>> We could always have the latest temperature value reported by notify
>> handler, and just return the value rather than evaluating _TMP every
>> time.
> 
> Ok, will do.

This didn't work out so well, as my laptop doesn't send notify events
when the temperature changes.  With the version that probes on each
read of the ioctl, the temperature does change sometimes.  When just
depending on the notify handler, it is never updated.  I'm not too
surprised as my laptop has other bugs as well.  (It doesn't report a
not-present battery with a state of 2, instead, it claims that it has a normal
battery with 0 voltage and 0 capacity.  It also reports a battery drain rate of
0.)

>> Thanks

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
