Skip to contentSkip to conversation

Apple G4 "windtunnel" fan controller

PATCH Samuel Rydh 1 participant 1 message Mar 15, 2003 I2C

lore
Share & tools
lore
#0 lore raw

Attached is a fan controller for Apple's SMP machines. On my machine, the noise level is reduced from "very loud PC" to "silent mac".

I have only tested the code on Apple's latest 1.25 GHz model (windtunnel?). The driver might need some tuning on other models for optimal performance. (The code is based upon the behavior of Apple's AppleFan driver under OSX. However, the source code is not available so I had to reverse engineer it
by inspecting the i2c traffic.)

It ought to be safe to use this patch (there is a 100% fan trigger when the temperature rises sufficiently). However

I TAKE NO RESPONSIBILITY WHAT SO EVER IF THIS PATCH DOES NOT WORK AS IT SHOULD AND THE COMPUTER OVERHEATS.

For testing purposes, it is useful to set 'LOG_TEMP is set to 1'.

/Samuel

drivers/i2c/Config.in +3 -0
diff -urN benh-org/drivers/i2c/Config.in benh-2.4/drivers/i2c/Config.in
@@ -41,6 +41,9 @@
 
    if [ "$CONFIG_ALL_PPC" = "y" ] ; then
       dep_tristate 'Keywest I2C interface in Apple Core99 machines' CONFIG_I2C_KEYWEST $CONFIG_I2C
+	if [ "CONFIG_I2C_KEYWEST" != "n" ] ; then
+	   dep_tristate '  Apple G4 "windtunnel" fan controller (experimental)' CONFIG_G4FAN $CONFIG_I2C_KEYWEST
+	fi
    fi
 
 # This is needed for automatic patch generation: sensors code starts here
drivers/i2c/Makefile +2 -0
diff -urN benh-org/drivers/i2c/Makefile benh-2.4/drivers/i2c/Makefile
@@ -19,6 +19,8 @@
 obj-$(CONFIG_ITE_I2C_ADAP)	+= i2c-adap-ite.o
 obj-$(CONFIG_I2C_PROC)		+= i2c-proc.o
 obj-$(CONFIG_I2C_KEYWEST)	+= i2c-keywest.o
+obj-$(CONFIG_G4FAN)		+= g4fan.o
+
 
 # This is needed for automatic patch generation: sensors code starts here
 # This is needed for automatic patch generation: sensors code ends here
drivers/i2c/g4fan.c +455 -0

455 lines not on this page · raw message

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/