Package: cpufrequtils
Version: 006-2
Tags: patch
I had a look at the powernowd-1.00/debian/cpufreq-detect.sh file in
Ubuntu powernowd package version 1.00-1ubuntu5, which the loadcpufreq
init.d script is based on, to see if there had been any updates. This
is the relevant patch. Apparently Ubuntu now loads the
speedstep-centrino module for Intel CPUs with the est flag, and only
load the e_powersaver module on VIA CPUs with the est flag (perhaps
this is the solution for #566214?).
diff -ur cpufrequtils-006/debian/cpufrequtils.loadcpufreq.init
cpufrequtils-006-pere/debian/cpufrequtils.loadcpufreq.init
--- cpufrequtils-006/debian/cpufrequtils.loadcpufreq.init 2010-04-24
23:50:23.000000000 +0200
+++ cpufrequtils-006-pere/debian/cpufrequtils.loadcpufreq.init 2010-04-25
10:59:05.000000000 +0200
@@ -48,7 +48,6 @@
fi
MODEL_NAME=$(grep '^model name' "$CPUINFO" | head -1 | sed -e 's/^.*: //;')
- MODEL_ID=$(grep -E '^model[[:space:]]+:' "$CPUINFO" | head -1 | sed -e
's/^.*: //;')
CPU=$(grep -E '^cpud[^:]+:' "$CPUINFO" | head -1 | sed -e 's/^.*: //;')
VENDOR_ID=$(grep -E '^vendor_id[^:]+:' "$CPUINFO" | head -1 | sed -e
's/^.*: //;')
CPU_FAMILY=$(sed -e '/^cpu family/ {s/.*: //;p;Q};d' $CPUINFO)
@@ -68,9 +67,9 @@
case "$VENDOR_ID" in
GenuineIntel*)
# If the CPU has the est flag, it supports enhanced
- # speedstep and should use the acpi-cpufreq driver
+ # speedstep and should use the speedstep-centrino driver
if [ "$(grep est $CPUINFO)" ]; then
- MODULE=acpi-cpufreq
+ MODULE=speedstep-centrino;
elif [ $CPU_FAMILY = 15 ]; then
# Right. Check if it's a P4 without est.
# Could be speedstep-ich, or could be p4-clockmod.
@@ -125,15 +124,12 @@
;;
CentaurHauls*)
# VIA
- if [ $CPU_FAMILY = 6 ]; then
- case $MODEL_ID in
- 10) # VIA C7 VIA Esther
- MODULE=e_powersaver
- ;;
- *)
- MODULE=longhaul
- ;;
- esac
+ # If the CPU has the est flag, it supports enhanced
+ # powersaver and should use the e_powersaver driver
+ if [ "$(grep est $CPUINFO)" ]; then
+ MODULE=e_powersaver;
+ elif [ $CPU_FAMILY = 6 ]; then
+ MODULE=longhaul;
fi
;;
GenuineTMx86*)
The changes might be kernel version dependent, but as far as I know
Ubuntu use the same kernel version as Debian for their next release.
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]