From owner-freebsd-acpi@FreeBSD.ORG Tue Feb 26 15:37:51 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 647FAB08 for ; Tue, 26 Feb 2013 15:37:51 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id EADDAAD0 for ; Tue, 26 Feb 2013 15:37:50 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id x8so3644019wey.20 for ; Tue, 26 Feb 2013 07:37:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=T2SNG6jXFR49ZYHkkhfyr4eeTS7KrpkW0v/Q9Cc/F1k=; b=tZARwCW9twiVF1tFa8txWEomt5U+dPKUoPePEteN2HAjR0/HiRmiWyx4aNwyHtVRvk PiITbduAJyYhNelm6Kwc30lMfwtddOoiN0uwrsVLaXUxqH8HPZ6AP1tfL5yhWUxH8EGe 8jGt5pRrgohCh55VTxuxzUzL3IDlW88ECqOhB81ulPheaOxWowN8QFJz7LtiRqRLUqeH 1DIIl3dlgOR6fFfTmqjq4rTr/YtQXo8FpgttKktYqcooc2qJlFPJslmyNTcZlBCkk6Hj X9vbGNRvVbwAkt300yY3qTmEpC+sI58hLy9kbn/2HXTTRXE7zjCJ4aLPovIsZTWbCSCM itcg== MIME-Version: 1.0 X-Received: by 10.194.156.196 with SMTP id wg4mr27357487wjb.22.1361893070062; Tue, 26 Feb 2013 07:37:50 -0800 (PST) Received: by 10.194.60.147 with HTTP; Tue, 26 Feb 2013 07:37:49 -0800 (PST) In-Reply-To: References: <20130225014000.GA6413@aperturescience.org> <20130225071929.GM28792@uriah.heep.sax.de> Date: Tue, 26 Feb 2013 16:37:49 +0100 Message-ID: Subject: Re: acpi_termal sysctl interface strange temperature value From: David Demelier To: Kevin Oberman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Joerg Wunsch , freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 15:37:51 -0000 #define TZ_ZEROC 2732 int val =3D (t - TZ_ZEROC) / 10; That should works, I can't remember where I found the TZ_ZEROC value but someone on IRC gave me it a while ago. I use that for 1 year. 2013/2/26 Kevin Oberman > On Sun, Feb 24, 2013 at 11:19 PM, Joerg Wunsch > wrote: > > > As Kevin Oberman wrote: > > > > > > Values I'm geting are like this: > > > > 3732 > > > > > > > > while actual is: > > > > > > > > sysctl -n hw.acpi.thermal.tz0.temperature > > > > 55.0C > > > > > > > > > ACPI does not report temperature in degrees Celsius, but in tenths > > > of a degree Kelvin. So both agree. > > > > I wouldn't call it an agreement if one reports 373 K (=3D 100 =C2=B0C), > > and the other one 55 =C2=B0C ... > > > > (Btw., according to SI, Kelvin is a normal unit of measure, without > > the "degree".) > > -- > > cheers, Joerg .-.-. --... ...-- -.. . DL8DTL > > > > Ack! I should have actually LOOKED at the numbers. Silly mistake. But I > just looked at the source and ACPI does report temperature in tenths of a > degree Kelvin, so I am now baffled as to what is going on. > > Sorry, but SI or not, "tenths of a Kelvin" is just wrong. Actually, the > time you should properly omit the 'degrees' is when specifying a > temperature as in 373 K. > > Still, I can't explain the odd reading of the raw value Dimitry is > getting.. > -- > R. Kevin Oberman, Network Engineer > E-mail: rkoberman@gmail.com > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" > --=20 Demelier David