From owner-freebsd-questions@FreeBSD.ORG Thu May 14 14:13:51 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 186F054C for ; Thu, 14 May 2015 14:13:51 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D54361FE7 for ; Thu, 14 May 2015 14:13:50 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-49.adsl.hiwaay.net [216.180.19.49]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t4EEDn3X018228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 14 May 2015 09:13:49 -0500 Message-ID: <5554AD9D.9060201@hiwaay.net> Date: Thu, 14 May 2015 09:20:04 -0453 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: sysctl question References: <55541052.6020802@hiwaay.net> <20150514055826.01e841ae@gecko4> <5554ABEF.4070300@hiwaay.net> In-Reply-To: <5554ABEF.4070300@hiwaay.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2015 14:13:51 -0000 On 05/14/15 09:12, William A. Mahaffey III wrote: > On 05/14/15 05:04, mfv wrote: >> Hello William, >> >> I had the same problem using amdtemp but used the sysctl setting >> "dev.amdtemp.%d.sensor_offset" to make it more accurate. The value was >> determined by comparing the unadjusted value of admtemp with the value >> shown in the BIOS. In my case the setting in /etc/sysctl.conf is: >> >> dev.amdtemp.0.sensor_offset=24 >> >> A room thermometer was also helpful to measure the difference by >> comparing the difference between the room temperature and the BIOS >> after the CPU was placed under load. >> >> To read the value I then bound the F2-key in csh.cshrc file as follows: >> >> bindkey -c "^[OQ" 'sysctl -e dev.amdtemp.0.core0' >> >> The results of the reading are not as accurate as I would like but are >> an improvement. >> >> Cheers ... __o >> _ \<,_ >> Marek (+)/ (+) >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > P.S. Is there a way to set this on the fly, w/o a reboot ? TIA :-) .... > [root@kabini1, /etc, 9:18:34am] 369 % sysctl dev.amdtemp.0.sensor_offset=24 sysctl: unknown oid 'dev.amdtemp.0.sensor_offset' [root@kabini1, /etc, 9:18:36am] 370 % sysctl amdtemp.0.sensor_offset=24 sysctl: unknown oid 'amdtemp.0.sensor_offset' [root@kabini1, /etc, 9:18:37am] 371 % sysctl -A | grep -i amdtemp dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors dev.amdtemp.0.%driver: amdtemp dev.amdtemp.0.%parent: hostb5 dev.amdtemp.0.sensor0.core0: 10.0C [root@kabini1, /etc, 9:18:41am] 372 % uname -a FreeBSD kabini1.local 9.3-RELEASE-p13 FreeBSD 9.3-RELEASE-p13 #0: Tue Apr 7 03:01:12 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [wam@kabini1, ~, 9:19:39am] 399 % -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.