Re: temp.c and cputable.c issues

From: "Colin Leroy" <colin@colino.net>
Date: 2004-01-15 09:38:13

i've an ibook G4/12". it's branded as PowerMac6,3. It should be
the lastest model available from apple.
quoted
You may have an external chipset used to check temperatures and
control
quoted
the fan.
sure. there's an external chipset for temperature and fan control.
Under Macos X, i've set and get values from it several times...but
what about linux ?

Well, under 2.6 kernel, you can use the therm_adt7467 module
(CONFIG_THERM_IBOOKG4 configuration option, under Drivers/Macintosh).
It'll create some entries in /sys:
/sys/devices/temperatures/cpu_temperature
/sys/devices/temperatures/gpu_temperature
/sys/devices/temperatures/fan_speed
These display the informations you want.

/sys/devices/temperatures/cpu_limit
/sys/devices/temperatures/gpu_limit
These display the maximum temperatures before fan starts.

--
Colin
Ne disez pas disez, mais disez dites

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help