Package: pm-utils Version: 0.99.2-3 Severity: normal Tags: patch
I am using the convervative cpufreq governor for CPU frequency scaling in a Core 2 Duo laptop. pm-suspend does not correctly restore the cpufreq governor after suspend/resume. The scaling governor is not independent for each core in multicore systems. The hibernate-cpufreq function in /usr/lib/pm-utils/sleep.d/94cpufreq sets the governor to performance after saving the previous governor to /var/run/pm-suspend. When the governor for the first core is set to performance second cpu core is affected. We end up with export cpu0_governor_STATE=conservative export cpu1_governor_STATE=performance in /var/run/pm-suspend. As a result of this the thaw_cpufreq function does not correctly restore the governor(s) to conservative. The following patch fixes the problem. --- 94cpufreq 2007-11-24 03:35:58.000000000 +0200 +++ 94cpufreq-patched 2007-11-24 03:35:52.000000000 +0200 @@ -11,6 +11,8 @@ [ -f $x/cpufreq/scaling_governor ] || continue savestate ${x}_governor $(cat $x/cpufreq/scaling_governor) + done + for x in $(ls -1) ; do sh -c "echo performance > $x/cpufreq/scaling_governor" >/dev/null 2>&1 done popd >/dev/null 2>&1 -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-2-amd64 (SMP w/2 CPU cores) Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages pm-utils depends on: ii powermgmt-base 1.29 Common utils and configs for power Versions of packages pm-utils recommends: ii hal 0.5.10-2 Hardware Abstraction Layer ii radeontool 1.5-5 utility to control ATI Radeon back pn uswsusp <none> (no description available) ii vbetool 0.7-1.1 run real-mode video BIOS code to a -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]