Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 01:35:57 +0800
From:      thor <thor@irk.ru>
To:        freebsd-questions@freebsd.org
Subject:   Re: Different temperature reports
Message-ID:  <1944f5b3-2b4f-df47-4ce4-33186305a32a@irk.ru>
In-Reply-To: <SN1PR20MB210943EF9E361834CE68A8C980C90@SN1PR20MB2109.namprd20.prod.outlook.com>
References:  <SN1PR20MB210943EF9E361834CE68A8C980C90@SN1PR20MB2109.namprd20.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Because these temperatures are measured in different places - in hdd 
(most possibly on it's controller board but could be inside a mechanics) 
and somewhere near the processor on the motherboard. Also, the sensors 
are not so precise.


On 11/05/18 01:24, Carmel NY wrote:
> Why would sysctl and smartctl report different temperatures? Smartctl is
> reporting 30C and sysctl is showing 40.1C.
>
> #! /usr/bin/env bash
>
> TP=$(/usr/local/sbin/smartctl -a /dev/ada0 | grep Temp | awk -F " " '{printf "%d",$10}')
>
> printf "%s\n\n" "${TP}"
>
> TP2=$(/sbin/sysctl -a | grep -i hw.acpi.thermal.tz0.temperature | awk '{print substr($2,0,5)}')
>
> printf "%s\n\n" "${TP2}"
>
> exit
>
> Both temperatures are in Celsius.
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1944f5b3-2b4f-df47-4ce4-33186305a32a>