#5 it doesn't work that it should

closed
None
5
2004-11-15
2004-11-14
nuess0r
No

hi guys

today i tried to configure the frequencestepping
funcionality of my centrino 1.5GHz for optimal
powersavings and less noise.

so i tried to make a few changes to the config file and
made some test with it. although i've set the
"policy=powersafe" the frequency was always at the top
level of the selected profile but the cpu usage was at
the lower end of the specified range.

i specified the frequency range in percent but i get
such errors: "parse_config_profile(): [Profile]
"medium_boost" min frequency 495000 out of range"

shouldn't the frequence be calculated with the limit of
the cpu?

i fixed this but my problem described above don't disapear.

here are the details of my computer:
compaq nx7000 (in usa known as x1000)
cpu: centrino 1.5GHz
debian sarge unstable
kernel: 2.6.8-6

content of my cpufreqd.conf (few changes from the example):
[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
pm_type=acpi #(acpi, apm or pmu)
# Uncomment the following line to enable ACPI
workaround (see cpufreqd.conf(5))
# acpi_workaround=1
verbosity=4 #(if you want a minimal logging set to 5)

[Profile]
name=hi_boost
minfreq=66%
maxfreq=100%
policy=performance

[Profile]
name=normal_ac
minfreq=40%
maxfreq=66%
policy=powersafe

[Profile]
name=medium_boost
minfreq=40%
maxfreq=66%
policy=powersave

[Profile]
name=lo_boost
minfreq=40%
maxfreq=33%
policy=performance

[Profile]
name=lo_power
minfreq=40%
maxfreq=55%
policy=powersave

# conservative mode when not AC
[Rule]
name=conservative
ac=off # (on/off)
battery_interval=0-100
cpu_interval=0-40
cpu_nice_scale=1.5
delay_cycles=3
profile=lo_power

# need some power
[Rule]
name=lo_cpu_boost
ac=off # (on/off)
battery_interval=0-100
cpu_interval=40-80
profile=medium_boost

# need big power (not if battery very low)
[Rule]
name=hi_cpu_boost
ac=off # (on/off)
battery_interval=50-100
cpu_interval=70-100
profile=hi_boost

# full power when AC
[Rule]
name=AC_hi
ac=on # (on/off)
cpu_interval=60-100
profile=hi_boost

# medium power when AC
[Rule]
name=AC_medium
ac=on # (on/off)
cpu_interval=0-60
profile=normal_ac

# full power when watching DVDs and not AC:
# this is the last rule and takes less
# precedence with respect to the others
[Rule]
name=dvd_watching
ac=off # (on/off)
battery_interval=0-100
programs=xine,mplayer,avidemux
cpu_interval=0-100
profile=hi_boost

thanks for your help
christoph zimmermann

Discussion

  • Mattia Dongili
    Mattia Dongili
    2004-11-14

    • assigned_to: nobody --> mattia-san
     
  • Mattia Dongili
    Mattia Dongili
    2004-11-14

    Logged In: YES
    user_id=584271

    Hi,
    first of all a small note: it's 'powersave' not 'powersafe'.
    Second, you have to be carefull specifying percent
    frequencies: the cpufreq kernel core rounds the requested
    frequency to the lower available value if using powersave,
    to the higher if using performance. That said, could you try
    to debug such behaviour by setting real MHz frequency values
    (you can read your available frequencies with:
    cat
    /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
    ).
    If you still have problems you could stop cpufreqd and set
    values by hand (echo [frequency] >
    /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    If this last thing works ok it defintiely a problem in
    cpufreqd or in its configuration.

    Thanks for reporting
    --
    mattia

     
  • nuess0r
    nuess0r
    2004-11-15

    Logged In: YES
    user_id=1159037

    thanks for your help, it was realy fast :-)

    i changed the settings in the config file from the percent
    value to the frequency value. now it works as it should.

    by the way, in the manual pages is this thing correctly
    described. i read it but not exactly enough :-)
    "...while it must be a frequency in kHz if you are using the
    newer sysfs interface available in 2.6 kernels."

    i was confused that it didn't work anymore after a update of
    my debian system. but it's clear that when a config file for
    a 2.4 kernel is used that it can't work in this case. there
    shuld be a info message during the install or a script that
    changes the values in the config file to system usable
    frequency values.

    but i think the cpufreqd is realy cusomizable and usefull
    christoph zimmermann

     
  • Mattia Dongili
    Mattia Dongili
    2004-11-15

    • status: open --> closed
     
  • Mattia Dongili
    Mattia Dongili
    2004-11-15

    Logged In: YES
    user_id=584271

    Well... there are some mixed problems here...
    1- /me lazy... cpufreqd could be more accurate when
    translating from pecentages and absolute values
    2- using percentages is easy for the user but it's
    misleading for the reason you just found (2.4 kernels have
    the same problem actually)
    3- /me lazy again, I should write better docs
    4- I'm reworking cpufreqd quite heavily and I don't want to
    make too many adjustements to the old code, currently I'm
    mostly correcting bugs in the old code and going on with new
    features on the new code (I hope I'll have something to
    release soon)

    thanks for the comments :)
    --
    mattia