Package: cpufrequtils
Version: 001-2
Severity: normal

as cpufreq-set defaults to cpu 0 and /etc/init.d/cpufrequtils doesn't
call cpufreq-set with cpu ids, it ends up not setting any options for
the second (virtual) cpu on a 'core duo' processor. i've done the
following to make it work for me but the line '/bin/true' was added to
pacify log_action_end_msg so that probably needs to be fixed.

------- patch follows -------------
--- cpufrequtils.orig   2006-04-24 01:32:30.000000000 -0500
+++ /etc/init.d/cpufrequtils    2006-04-24 01:01:49.000000000 -0500
@@ -45,7 +45,12 @@
 case "$1" in
        start|force-reload|restart|reload)
                log_action_begin_msg "$DESC: Setting $GOVERNOR CPUFreq 
governor"
-               $PROGRAM $CPUFREQ_OPTIONS 2>&1 > /dev/null
+               grep "processor" /proc/cpuinfo | cut -f2 -d':' | \
+                   while read cpu
+               do
+                   $PROGRAM -cpu $cpu $CPUFREQ_OPTIONS 2>&1 > /dev/null
+               done
+               /bin/true
                log_action_end_msg $?
                ;;
        stop)
------- patch end ----------------


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages cpufrequtils depends on:
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries
ii  libcpufreq0                   001-2      shared library to deal with the 
cp
ii  lsb-base                      3.1-4      Linux Standard Base 3.1 init 
scrip

cpufrequtils recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to