Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2011 20:34:00 +0200
From:      Romain Garbage <romain.garbage@gmail.com>
To:        mdf@freebsd.org
Cc:        Taku YAMAMOTO <taku@tackymt.homeip.net>, Doug Barton <dougb@freebsd.org>, Nick Ulen <uncle@wolfman.devio.us>, freebsd-current@freebsd.org
Subject:   Re: `hw.acpi.thermal.tz0.temperature' disappeared
Message-ID:  <BANLkTinOr5J1G_STSQzom-P5%2BDsaok0ZkQ@mail.gmail.com>
In-Reply-To: <BANLkTi=B%2B=T2rO-8XyctXU6ZsmVcFMqUfg@mail.gmail.com>
References:  <20110416155122.GA29309@wolfman.devio.us> <201104180805.40743.jhb@freebsd.org> <BANLkTim=M=JeOn8iSgfnhT-Q0dX=QfYLuw@mail.gmail.com> <20110419082906.GA8125@wolfman.devio.us> <20110419234815.e2944dd5.taku@tackymt.homeip.net> <BANLkTi=YjVLKXDkogETYmG2M7AjkLZo6ew@mail.gmail.com> <4DADCE20.6070306@FreeBSD.org> <BANLkTi=B%2B=T2rO-8XyctXU6ZsmVcFMqUfg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/4/19  <mdf@freebsd.org>:
> On Tue, Apr 19, 2011 at 11:02 AM, Doug Barton <dougb@freebsd.org> wrote:
>> On 4/19/2011 9:44 AM, mdf@FreeBSD.org wrote:
>>>
>>> As an aside, what kind of h/w do I need
>>> for hw.acpi.thermal to show up? =C2=A0I don't see it on my Dell desktop=
...
>>
>> The hardware is likely to be there for any reasonably modern Dell deskto=
p.
>> 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@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
@@ -1744,6 +1744,7 @@
 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
@@ -1752,6 +1753,7 @@
 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
@@ -2421,6 +2423,16 @@
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinOr5J1G_STSQzom-P5%2BDsaok0ZkQ>