From owner-freebsd-current@FreeBSD.ORG Tue Apr 19 18:34:03 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14F051065670 for ; Tue, 19 Apr 2011 18:34:03 +0000 (UTC) (envelope-from romain.garbage@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 86F8A8FC0A for ; Tue, 19 Apr 2011 18:34:02 +0000 (UTC) Received: by qyk27 with SMTP id 27so3962951qyk.13 for ; Tue, 19 Apr 2011 11:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0LEllmfQuDf7v2y6hyeA3DggPask+lvxO0qPpIkETJ8=; b=r8jwMRYQ4aSatXa0JvmZH0FhpwEvgQKFTf/utbvG2DjfzeDSNIOvLe0L3lpeQbEq8i 1rXlPxeKtVGjIDGFECB9naDm9eHnfzCW3jGT8kqBkIwg/ErfUFLFgIToMtL0JeBS9O5L REVNUgEQiZ3mUxRkIs0LSYvCEEY8oiMO7XmMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Pqt6a3zvmnGBHliHqOZuH6J24xNznRJuSfc4EVsAX3ux43ddef1Uh6t81TXOQwjuL5 hzh31oJcBsKAjhTEZC1dwlasxMfI4vJEZjzZGVQowi9Ut5oLwQPXnCiDT+UK72wODTVU hufjNoe94G9UScA7OSBTUMImqg7+JLT59J704= MIME-Version: 1.0 Received: by 10.229.130.144 with SMTP id t16mr4753474qcs.146.1303238040768; Tue, 19 Apr 2011 11:34:00 -0700 (PDT) Received: by 10.229.110.17 with HTTP; Tue, 19 Apr 2011 11:34:00 -0700 (PDT) In-Reply-To: References: <20110416155122.GA29309@wolfman.devio.us> <201104180805.40743.jhb@freebsd.org> <20110419082906.GA8125@wolfman.devio.us> <20110419234815.e2944dd5.taku@tackymt.homeip.net> <4DADCE20.6070306@FreeBSD.org> Date: Tue, 19 Apr 2011 20:34:00 +0200 Message-ID: From: Romain Garbage To: mdf@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Taku YAMAMOTO , Doug Barton , Nick Ulen , freebsd-current@freebsd.org Subject: Re: `hw.acpi.thermal.tz0.temperature' disappeared X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 18:34:03 -0000 2011/4/19 : > On Tue, Apr 19, 2011 at 11:02 AM, Doug Barton 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