Different temperature reports

Philipp Vlassakakis freebsd-en at lists.vlassakakis.de
Sun Nov 4 17:43:04 UTC 2018


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 at outlook.com> 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.
> 
> -- 
> Carmel
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list