You are not logged in.
Hello,
My cpu frequency gets lowered when the cord is pulled.
I'm using cpufreq and powernow-k8 with an "AMD Sempron Mobile 3600+"-processor on a MSI Megabook VR610.
With the cord plugged in everything works.
I get the following output when typing 'cpufreq-info' while my cord is pulled:
analyzing CPU 0:
driver: powernow-k8
CPUs which need to switch frequency at the same time: 0
hardware limits: 800 MHz - 2.00 GHz
available frequency steps: 2.00 GHz, 1.60 GHz, 800 MHz
available cpufreq governors: ondemand, powersave, performance
current policy: frequency should be within 800 MHz and 800 MHz. # <- "should be within 800 MHz and 2.00 GHz" would make sense
The governor "ondemand" may decide which speed to use # it does not matter which governor is used
within this range.
current CPU frequency is 800 MHz (asserted by call to hardware).
the only way to avoid this error is to boot without the powernow-k8-modul or to boot in battary-mode.
I tried the following:
bash-3.2# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
800000
bash-3.2# echo "2000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
bash-3.2# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
800000
That's what I found out by now - if you need more Information please ask.
Thank you in advance
hiob
P.S.: Excuse my poor English, please.
Last edited by hiob (2008-11-09 16:14:28)
Offline
The cpufreq-info output doesn't really make sense.
Edit the /etc/conf.d/cpufreq file and make sure the min and max frequencies are set correctly.
It's also more convenient to use cpufreq-set instead of '/sys/devices/system/cpu/cpu0/cpufreq'.
Hope that helps.
Offline
Do you use acpid? If so try look in /etc/acpi/handler.sh for what actions are done when pulling the power.
IBM Thinkpad X60 Tablet | Zen-sources | My AUR Builds
Offline
Thank you for the quick answers!
I'm not at my laptop now, so will take a look at the mentioned files today afternoon.
But I would gess, that there are no mistakes in my /etc/conf.d/cpufeq, because everything works if I boot with the cord plugged.
Yes, I use acpid - more infos follow.
P.S.: I thought you can only change the governour with cpufreg-set?
Last edited by hiob (2008-11-11 07:44:09)
Offline
Afaik you can just echo the govenor you want into the right file in /proc or /sys.
IBM Thinkpad X60 Tablet | Zen-sources | My AUR Builds
Offline
Well there are some strange lines in the handler.sh - but the problem is the same after deactivating them.
(Yes, you can set all the cpufreq-settings with echo and cpufreq-set )
my /etc/acpi/handler.sh (the importend lines) :
ac_adapter)
case "$2" in
AC)
case "$4" in
00000000)
#echo -n $minspeed >$setspeed
#/etc/laptop-mode/laptop-mode start
;;
00000001)
#echo -n $maxspeed >$setspeed
#/etc/laptop-mode/laptop-mode stop
;;
esac
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
battery)
case "$2" in
BAT0)
case "$4" in
00000000) #echo "offline" >/dev/tty5
;;
00000001) #echo "online" >/dev/tty5
;;
esac
;;
CPU0)
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
my /etc/conf.d/cpufreq:
governor="ondemand"
min_freq="800MHz"
max_freq="2GHz"
Last edited by hiob (2008-11-11 18:41:02)
Offline
Check the /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies to see the available frequencies.
Offline
It is the same output with and without the cord plugged (cpufreq-info was right at this point):
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2000000 1800000 1600000 800000
Offline
Has anybody an Idea?
No? Then I would have to file a bug at kernel.org, right?
thx hiob
Offline
Do you use hald? I recently discovered a hald-addon-cpufreq deamon running on my machine, maybe that one is changing something.
IBM Thinkpad X60 Tablet | Zen-sources | My AUR Builds
Offline
Yes that is also running on my machine, it is a part of hal (/usr/lib/hal/hald-addon-cpufreq).
But it does not have an effect on the cpu-frequency weather hal is running or not - I would guess this tool just informs the system about it.
Thank you for the answer.
Offline