From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 13 20:30:19 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20C9D10657B3 for ; Sun, 13 Mar 2011 20:30:19 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id E6F028FC18 for ; Sun, 13 Mar 2011 20:30:18 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LI000L06JMI0K00@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Sun, 13 Mar 2011 15:30:18 -0500 (CDT) Received: from comporellon.tachypleus.net ([unknown] [76.210.65.155]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LI0009HNJLIJO10@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Sun, 13 Mar 2011 15:29:44 -0500 (CDT) Date: Sun, 13 Mar 2011 15:29:41 -0500 From: Nathan Whitehorn In-reply-to: <20110313212348.a4fd91cb.torfinn.ingolfsen@broadpark.no> To: freebsd-ppc@freebsd.org Message-id: <4D7D2935.3070903@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.210.65.155 X-Spam-PmxInfo: Server=avs-11, Version=5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.3.13.201817, SenderIP=76.210.65.155 References: <20110312151608.b3240f3d.torfinn.ingolfsen@broadpark.no> <4D7BAA4E.4070908@freebsd.org> <20110313212348.a4fd91cb.torfinn.ingolfsen@broadpark.no> User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110305 Thunderbird/3.1.9 Subject: Re: PowerMac G5 Quad - fan control? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2011 20:30:19 -0000 On 03/13/11 15:23, Torfinn Ingolfsen wrote: > On Sat, 12 Mar 2011 11:15:58 -0600 > Nathan Whitehorn wrote: > >> Different G5 models have different thermal regulation schemes. On the >> PCI-Express-based systems (e.g. the Quad), CPU temperatures are read out >> by the smusat driver, and fan control is done by the smu driver. I wrote >> a small daemon to manage fans on my dual-core G5 that you may want to >> adapt that can be found at >> http://people.freebsd.org/~nwhitehorn/powermac112-fancontrol.c > Thanks! > > I've adapted it, my version is here[1]. How did you figure out the target temperature? I made up a number that I decided was safe. :P These kind of algorithms should really be implemented into the kernel at some point and made generic (the way they already are for iMacs and PowerMac 9,1 G5 desktops) so users don't have to fuss with things like this. > I just run mine in a shell (it needs to be root to change those sysctls), is that the best way. I run mine from rc.local like this: /usr/bin/thermald > /dev/null & > My machine just panic'ed (sleeping thread) but I don't know if that was related to this program. Any details on the panic (output of uname -a, 32 or 64 bit kernel, messages, etc.) would be very interesting to see. -Nathan