Skip to contentSkip to conversation

temp.c and cputable.c issues

DISCUSSION Colin Leroy 1 participant 1 message Jan 15, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

i've an ibook G4/12". it's branded as PowerMac6,3. It should be the lastest model available from apple.

Quoted 1 line

You may have an external chipset used to check temperatures and

control

Quoted 5 lines
Quoted 1 line

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/