site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: Acklh/DyL7b2eJF7Ed2/jgAwZbwyQg== Thread-topic: Open Firmware on Pismo User-agent: Microsoft-Entourage/11.4.0.080122 I googled "thermal-info" "power-mgt" and found this <http://lxr-itec.uni-klu.ac.at/linux-2.6.4/source/drivers/macintosh/therm_wi ndtunnel.c> It's not the same hardware (the expected ID is different) but the thermal-info property seems to be similar enough. Look at apple_thermal_info and temp_range in that source file. If that interpretation is also correct for Pismo (I'm just guessing), then 4843 is the high and low temperatures 72 and 67 degrees Celsius. What you did was set those to 1, 2, or 0 degrees Celsius.
From: James Little <jkal@talk21.com> Date: Wed, 1 Oct 2008 22:10:34 +0000 (GMT)
Hi,
Thanks very much. Using the commands, after amending the settings for thermal-info I got the fan to turn on straight after booting, by setting them to 01010200 00000000 01010200 00000000.
With the open firmware dump below of the values for via-pmu / power-mgt could anyone explain what the values present could likely be. i.e. are the set of 4 hex values likely to be 2 sets of values, or 4 separate ones?
I decoded each of the hex values and got 16843264 for hex 01010200 and 1213468963 for hex 48434843. I think these refer to temperature values (perhaps F?).
ff918050: /pci@f2000000/mac-io@17/via-pmu@16000/power-mgt
compatible 7669612d 706d752d 393900.. ........ "via-pmu-99" device_type 706f7765 722d6d67 7400.... ........ "power-mgt" max-aux-power 00000000 ........ ........ ........ .... name 706f7765 722d6d67 7400.... ........ "power-mgt" prim-info 000000ff 00000060 00003e80 00017fb5 .......`..>..... 0010: 0000d607 00000000 00021300 46000220 ............F.. 0020: 101400.. ........ ........ ........ ... registry-name 65787469 6e742d67 70696f31 00...... extint-gpio1. thermal-info 01010200 00000000 48434843 00000000 ........HCHC....
Any knowledge people may have on this and Open Firmware properties would be much appreciated.
Thanks,
James.
----- Original Message ---- From: Josh de Cesare <decesare@apple.com> To: James Little <jkal@talk21.com> Sent: Wednesday, 1 October, 2008 2:55:00 PM
James, You can build up properties with encode+.
The following code:
0 encode-int 1 encode-int encode+ 2 encode-int encode+ 3 encode-int encode+
should leave on the stack the length 4*4 and address of 16 bytes containing the long words 0, 1, 2, and 3.
Josh
On Oct 1, 2008, at 4:16 AM, James Little wrote:
Hi,
I hope this is not too off-topic:
I've been delving around in open firmware on my Pismo to see if I can control the internal fan, or at least set a better temp. for it to come on at.
In the device tree I've found the via-pmu, and under this is a node called 'power-mgt'. A property of this is called 'thermal-info'. As far as I know this must be related to the temp sensor in the Pismo because the G4 chip I have in it doesn't have the thermal assist temp diode on the chip enabled.
To check that this was specific to the Pismo I found the same 'power- mgt' property on a Digital Audio G4, which had everything listed the same, apart from the 'thermal-info', which was missing.
I've now hit a problem. There are 4 values of data encoded in open firmware for the 'thermal-info'. I believe they are the limits for the fan, as they do not change from boot up o when the computer is definitely toasty.
I can write one value by using the following command:
[code]12345678 encode-int " thermal-info" property[/code]
However, I need to be able to write all 4 values - and I don't know the open firmware commands to do this... could anyone help?
Thanks (and sorry for the rambling post),
James.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com