From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 28 16:15:25 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 41039195 for ; Mon, 28 Jul 2014 16:15:25 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DDE372F32 for ; Mon, 28 Jul 2014 16:15:24 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1XBna1-0001ZK-NQ; Mon, 28 Jul 2014 23:15:23 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id s6SGGR2u052680; Mon, 28 Jul 2014 23:16:37 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id s6SGGMEU052611; Mon, 28 Jul 2014 23:16:22 +0700 (NOVT) (envelope-from danfe) Date: Mon, 28 Jul 2014 23:16:22 +0700 From: Alexey Dokuchaev To: Justin Hibbits Subject: Re: Manual fan control on iBook G4? Message-ID: <20140728161622.GA51464@regency.nsu.ru> References: <20140728153559.GA41604@regency.nsu.ru> <20140728090245.13062177@zhabar.att.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140728090245.13062177@zhabar.att.net> User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 64537 [Jul 28 2014] X-KLMS-AntiSpam-Version: 5.5.3 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 3038530, 3038543, 0 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, 2014/07/28 13:31:38 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, not scanned, license restriction 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 16:15:25 -0000 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 ./danfe