Re: `hw.acpi.thermal.tz0.temperature' disappeared

From: Romain Garbage <romain.garbage_at_gmail.com>
Date: Tue, 19 Apr 2011 20:34:00 +0200
2011/4/19  <mdf_at_freebsd.org>:
> On Tue, Apr 19, 2011 at 11:02 AM, Doug Barton <dougb_at_freebsd.org> wrote:
>> On 4/19/2011 9:44 AM, mdf_at_FreeBSD.org wrote:
>>>
>>> As an aside, what kind of h/w do I need
>>> for hw.acpi.thermal to show up?  I don't see it on my Dell desktop...
>>
>> The hardware is likely to be there for any reasonably modern Dell desktop.
>> Do you have coretemp loaded?
>
> I didn't (I had assumed since the relevant sysctls are defined in
> acpi_thermal.c that having acpi was sufficient), so I just tried that,
> but still no hw.acpi.thermal node.

On 8.2-R I did have hw.acpi.thermal sysctl nodes by default, without
loading coretemp. Actually, even in 9-CURRENT you don't need any
special module for that (I don't think any loaded module is acpi
related):

$> uname -a
FreeBSD freebsd-laptop 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r220730: Sun
Apr 17 20:14:29 CEST 2011
root_at_freebsd-laptop:/usr/obj/usr/src/sys/GENERIC  amd64

$> kldstat
Id Refs Address            Size     Name
 1   49 0xffffffff80200000 11dc048  kernel
 2    1 0xffffffff813dd000 4248     fdescfs.ko
 3    1 0xffffffff813e2000 b398     linprocfs.ko
 4    4 0xffffffff813ee000 426a8    linux.ko
 5    1 0xffffffff81431000 2c20     linsysfs.ko
 6    1 0xffffffff81434000 209108   zfs.ko
 7    2 0xffffffff8163e000 4b98     opensolaris.ko
 8    1 0xffffffff81643000 29c58    snd_hda.ko
 9    2 0xffffffff8166d000 84f70    sound.ko
11    1 0xffffffff816f5000 da6678   nvidia.ko
12    1 0xffffffff8249c000 6678     sem.ko
13    1 0xffffffff824a3000 4b620    vboxdrv.ko
14    1 0xffffffff824ef000 10f00    ahci.ko
15    1 0xffffffff82500000 15ce8    tmpfs.ko
16    1 0xffffffff82612000 a912     fuse.ko

$> sysctl -a | grep thermal
"Giant","ACPI thermal zone"
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.user_override: 0
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 105.0C
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 110.0C
hw.acpi.thermal.tz0._TC1: 2
hw.acpi.thermal.tz0._TC2: 10
hw.acpi.thermal.tz0._TSP: 100

What coretemp gives you is:
$> sudo kldunload coretemp
$> sysctl -N -a > without-coretemp
$> sudo kldload coretemp
$> sysctl -N -a > with-coretemp
$> diff -u without-coretemp with-coretemp
--- without-coretemp	2011-04-19 20:32:05.236218708 +0200
+++ with-coretemp	2011-04-19 20:32:15.543219179 +0200
_at__at_ -1744,6 +1744,7 _at__at_
 dev.cpu.0.cx_supported
 dev.cpu.0.cx_lowest
 dev.cpu.0.cx_usage
+dev.cpu.0.temperature
 dev.cpu.1.%desc
 dev.cpu.1.%driver
 dev.cpu.1.%location
_at__at_ -1752,6 +1753,7 _at__at_
 dev.cpu.1.cx_supported
 dev.cpu.1.cx_lowest
 dev.cpu.1.cx_usage
+dev.cpu.1.temperature
 dev.pci_link.%parent
 dev.pci_link.0.%desc
 dev.pci_link.0.%driver
_at__at_ -2421,6 +2423,16 _at__at_
 dev.acpi_perf.1.%pnpinfo
 dev.acpi_perf.1.%parent
 dev.coretemp.%parent
+dev.coretemp.0.%desc
+dev.coretemp.0.%driver
+dev.coretemp.0.%location
+dev.coretemp.0.%pnpinfo
+dev.coretemp.0.%parent
+dev.coretemp.1.%desc
+dev.coretemp.1.%driver
+dev.coretemp.1.%location
+dev.coretemp.1.%pnpinfo
+dev.coretemp.1.%parent
 dev.est.%parent
 dev.est.0.%desc
 dev.est.0.%driver


Regards,
Romain
Received on Tue Apr 19 2011 - 16:34:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:13 UTC