From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 28 17:01:23 2014 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9992F396 for ; Mon, 28 Jul 2014 17:01:23 +0000 (UTC) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 807C12528 for ; Mon, 28 Jul 2014 17:01:23 +0000 (UTC) Received: from aurora.physics.berkeley.edu (aurora.Physics.Berkeley.EDU [128.32.117.67]) (authenticated bits=0) by d.mail.sonic.net (8.14.9/8.14.9) with ESMTP id s6SH1FDO010119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 28 Jul 2014 10:01:15 -0700 Message-ID: <53D681DA.7040104@freebsd.org> Date: Mon, 28 Jul 2014 10:01:14 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Alexey Dokuchaev , Justin Hibbits Subject: Re: Manual fan control on iBook G4? References: <20140728153559.GA41604@regency.nsu.ru> <20140728090245.13062177@zhabar.att.net> <20140728161622.GA51464@regency.nsu.ru> In-Reply-To: <20140728161622.GA51464@regency.nsu.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVa+Tj1d0yGhsrGu3/3pFRq+dxzQlvPUa5fp1bmsBMYJmqmQfcVuIN9eqgx8kysY1S9H7dVSmV85DuSPd+TtaS04it2MOqBgxX8= X-Sonic-ID: C;MunxyHgW5BG7vBDl54E5FQ== M;mCMayXgW5BG7vBDl54E5FQ== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd Cc: powerpc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2014 17:01:23 -0000 On 07/28/14 09:16, Alexey Dokuchaev wrote: > On Mon, Jul 28, 2014 at 09:02:45AM -0700, Justin Hibbits wrote: >> If you do 'ofwdump -ap', it'll list everything from Open Firmware, >> including the fan data (likely i2c-based, look for adm* or adt*). > Right, thanks for the hint! Some interesting data: > > 1) It is indeed PowerBook6,5 model > 2) Fan data (it was adt*): > > Node 0xff963c08: fan > name: > 66 61 6e 00 > 'fan' > device_type: > 61 64 74 37 34 36 37 00 > 'adt7467' > compatible: > 61 64 74 37 34 36 37 00 > 'adt7467' > ... > Node 0xff964910: fan1 > name: > 66 61 6e 31 00 > 'fan1' > reg: > 00 00 00 28 > sensor-id: > 00 00 00 20 > version: > 00 00 00 02 > ... > >> It's possible the CPU is starting in the reduced clock speed, so you >> can check `dev.cpu' syctl to see what levels are supported. > Again, seems you're correct: > > dev.cpu.0.%desc: Open Firmware CPU > dev.cpu.0.%driver: cpu > dev.cpu.0.%pnpinfo: name=PowerPC,G4 > dev.cpu.0.%parent: cpulist0 > dev.cpu.0.freq: 533 > dev.cpu.0.freq_levels: 1066/-1 533/-1 To be very explicit on this last point, doing sysctl dev.cpu.0.freq=1066 (or enabling powerd) will give you your full 1 GHz. -Nathan