Date: Sun, 4 Nov 2018 18:36:57 +0100 From: Philipp Vlassakakis <freebsd-en@lists.vlassakakis.de> To: FreeBSD <freebsd-questions@freebsd.org> Cc: carmel_ny@outlook.com Subject: Re: Different temperature reports Message-ID: <1DBD9BE1-B3F4-426D-BAE4-84CAB0EAC2B5@lists.vlassakakis.de> 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
hw.acpi.thermal.tz0.temperature is usually the sensor of the CPU. See ACPI_THERMAL(4) "For example, each CPU and the enclosure could all be separate thermal = zones, each with its ownsetpoints and cooling devices." Smartctl uses the sensor inside the hard disk. Regards, Philipp > On 4. Nov 2018, at 18:24, Carmel NY <carmel_ny@outlook.com> wrote: >=20 > Why would sysctl and smartctl report different temperatures? Smartctl = is > reporting 30C and sysctl is showing 40.1C. >=20 > #! /usr/bin/env bash >=20 > TP=3D$(/usr/local/sbin/smartctl -a /dev/ada0 | grep Temp | awk -F " " = '{printf "%d",$10}') >=20 > printf "%s\n\n" "${TP}" >=20 > TP2=3D$(/sbin/sysctl -a | grep -i hw.acpi.thermal.tz0.temperature | = awk '{print substr($2,0,5)}') >=20 > printf "%s\n\n" "${TP2}" >=20 > exit >=20 > Both temperatures are in Celsius. >=20 > --=20 > Carmel > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1DBD9BE1-B3F4-426D-BAE4-84CAB0EAC2B5>