Bug 125945 - Performance profiles only apply to the first CPU
Summary: Performance profiles only apply to the first CPU
Status: RESOLVED INTENTIONAL
Alias: None
Product: klaptopdaemon
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Paul Campbell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 11:32 UTC by Nigel McNie
Modified: 2008-08-19 08:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nigel McNie 2006-04-20 11:32:23 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I have a Dell Inspiron 9400 laptop, with an Intel Core Duo processor (2 CPUs at 2.16GHz). When I choose a governer from the klaptop "Performance Profile" menu, the governer is only applied to the first CPU.

For example, if the default governer is "performance" and I choose the "powersave" governer:

nigel@laptop:~$ cat /proc/cpuinfo | grep MHz
cpu MHz         : 1000.000
cpu MHz         : 2167.000
nigel@laptop:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
nigel@laptop:~$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
performance
nigel@laptop:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
1000000
nigel@laptop:~$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq
2167000

It would be desirable if the changes happened to both CPUs.

In a possibly related note, changes to the conservative governer lock up my keyboard and gives a bunch of messages from syslog, possibly because both CPUs would need to be changed simultaneously. But that's probably a kernel issue.
Comment 1 Stefan Kombrink 2006-06-19 09:32:37 UTC
I own a samsung r65 1.66 Ghz core duo and I have observed this problem as well.
I am able to change the speed by hand, but klaptop won't apply the settings to the second core.
I have no problems with the conservative governour, however...
Comment 2 kde 2006-07-10 17:06:46 UTC
Concerning the conservative governor: I believe that is a know kernel bug, for now try to use another kernel or the powersave governor.

I own a Macbook and am experiencing the same problem with only one processor switching the governor. Someone would probably need to modify acpi_helper.cpp, since the current implementation doesn't quite work.
Comment 3 Vladimir 2006-09-28 18:09:13 UTC
Here is a quick hack with a script that will execute commands for two cpu's. The script shall be anywhere in the path and have name klaptop_acpi_helper, I placed my in /usr/local/bin so that it will not be overwritten by next update. Original klaptop_acpi_helper executable shall be renamed to klaptop_acpi_helper_

#!/bin/bash
prog=/usr/bin/klaptop_acpi_helper_
cmd0=`echo $* | sed "s/\([^ ]\+ cpu\)0 \([^ ]\+\)/\10 \2/gi"`
cmd1=`echo $* | sed "s/\([^ ]\+ cpu\)0 \([^ ]\+\)/\11 \2/gi"`
$prog $cmd0
$prog $cmd1
Comment 4 Arne Schmitz 2007-12-07 11:56:56 UTC
Having the same problem, on a Core2Duo laptop.
Comment 5 Dirk Mueller 2008-08-19 08:38:53 UTC
klaptopdaemon has been dropped from KDE 4.x