From owner-acpi-jp@jp.freebsd.org  Wed Feb 21 23:42:19 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id XAA09439;
	Wed, 21 Feb 2001 23:42:19 +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 XAA09433;
	Wed, 21 Feb 2001 23:42: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.2+3.4W/3.7W-tasogare/smtpfeed 1.10) with ESMTP id f1LEgDW73005;
	Wed, 21 Feb 2001 23:42:13 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
To: acpi-jp@jp.freebsd.org, jhb@FreeBSD.org
Cc: iwasaki@jp.freebsd.org
In-Reply-To: <XFMail.010221010350.jhb@FreeBSD.org>
References: <XFMail.010220024809.jhb@FreeBSD.org>
	<XFMail.010221010350.jhb@FreeBSD.org>
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: <20010221234210G.iwasaki@jp.FreeBSD.org>
Date: Wed, 21 Feb 2001 23:42:10 +0900
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
X-Dispatcher: imput version 20000228(IM140)
Lines: 23
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 1072
Subject: [acpi-jp 1072] 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: iwasaki@jp.freebsd.org

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

# Hmm, your laptop will improve our ACPI device driver implementation :-)

How about having another ioctl to immediate update the temperature
value?  Then userland program has a option in order to request
updating the value.  This ioctl and option can be removed later on.

Thanks
