[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#603981: initramfs-tools: Load PowerMac G5 thermal modules



Package: initramfs-tools
Version: 0.98.5
Severity: important
Tags: patch

On iMac and PowerMac G5 machines, about a minute after boot, fans run at
full speed producing jet engine noise. Thermal modules do not get loaded
as they were in Lenny.
diff -Nru ./hooks/thermal ../initramfs-tools-0.98.5/hooks/thermal
--- ./hooks/thermal	2010-09-23 14:43:51.000000000 -0400
+++ ../initramfs-tools-0.98.5/hooks/thermal	2010-11-18 10:55:47.000000000 -0500
@@ -22,19 +22,33 @@
 case "$DPKG_ARCH" in
 # copy the right modules
 powerpc|ppc64)
-	if [ -e /sys/bus/ps3_system_bus/ ]; then
-		exit 0
-	fi
-	manual_add_modules therm_pm72
+
+	# Only PowerMac G5 machines need these modules
+
+	MODEL="`grep model /proc/cpuinfo 2>/dev/null`"; MODEL="${MODEL##*: }"
+
+	case "$MODEL" in
+	  RackMac3,1|PowerMac7,2|PowerMac7,3)
+	    force_load therm_pm72
+	    ;;
+	  PowerMac8,1|PowerMac8,2)
+	    force_load windfarm_pm81
+	    ;;
+	  PowerMac11,2)
+	    force_load windfarm_pm112
+	    ;;
+	  PowerMac12,1)
+	    force_load windfarm_pm121
+	    ;;
+	  *)
+	    exit 0
+	    ;;
+	esac
 	manual_add_modules windfarm_core
 	manual_add_modules windfarm_cpufreq_clamp
 	manual_add_modules windfarm_lm75_sensor
 	manual_add_modules windfarm_max6690_sensor
 	manual_add_modules windfarm_pid
-	manual_add_modules windfarm_pm121
-	manual_add_modules windfarm_pm112
-	manual_add_modules windfarm_pm81
-	manual_add_modules windfarm_pm91
 	manual_add_modules windfarm_smu_controls
 	manual_add_modules windfarm_smu_sat
 	manual_add_modules windfarm_smu_sensors

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: