Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jul 2014 10:01:14 -0700
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Alexey Dokuchaev <danfe@nsu.ru>, Justin Hibbits <chmeeedalf@gmail.com>
Cc:        powerpc@freebsd.org
Subject:   Re: Manual fan control on iBook G4?
Message-ID:  <53D681DA.7040104@freebsd.org>
In-Reply-To: <20140728161622.GA51464@regency.nsu.ru>
References:  <20140728153559.GA41604@regency.nsu.ru> <20140728090245.13062177@zhabar.att.net> <20140728161622.GA51464@regency.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53D681DA.7040104>