From owner-freebsd-questions@freebsd.org Sun Nov 4 17:43:03 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D366510DFB42 for ; Sun, 4 Nov 2018 17:43:03 +0000 (UTC) (envelope-from freebsd-en@lists.vlassakakis.de) Received: from dd14614.kasserver.com (dd14614.kasserver.com [85.13.136.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A9DA7C177 for ; Sun, 4 Nov 2018 17:43:03 +0000 (UTC) (envelope-from freebsd-en@lists.vlassakakis.de) Received: from pmbp.fritz.box (p5496E477.dip0.t-ipconnect.de [84.150.228.119]) by dd14614.kasserver.com (Postfix) with ESMTPSA id BFC0943C5701; Sun, 4 Nov 2018 18:36:57 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Different temperature reports From: Philipp Vlassakakis In-Reply-To: Date: Sun, 4 Nov 2018 18:36:57 +0100 Cc: carmel_ny@outlook.com Content-Transfer-Encoding: quoted-printable Message-Id: <1DBD9BE1-B3F4-426D-BAE4-84CAB0EAC2B5@lists.vlassakakis.de> References: To: FreeBSD X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 5A9DA7C177 X-Spamd-Result: default: False [2.04 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_SPAM_SHORT(0.65)[0.649,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[vlassakakis.de]; AUTH_NA(1.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[119.228.150.84.zen.spamhaus.org : 127.0.0.10]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: lists.vlassakakis.de]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[14.136.13.85.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.01)]; ASN(0.00)[asn:34788, ipnet:85.13.136.0/24, country:DE]; FREEMAIL_CC(0.00)[outlook.com]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2018 17:43:04 -0000 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 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"