Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
[General] pidfile=/var/run/cpufreqd.pid poll_interval=3 enable_plugins=acpi_ac, acpi_battery, acpi_temperature, cpu, sensors enable_remote=1 remote_group=wheel [/General] [Profile] name=ondemand minfreq=0% maxfreq=100% policy=ondemand [/Profile] [Profile] name=conservative minfreq=0% maxfreq=100% policy=conservative [/Profile] [Profile] name=powersave minfreq=0% maxfreq=100% policy=powersave [/Profile] [Profile] name=performance low minfreq=0% maxfreq=66% policy=performance [Rule] name=battery ac=off profile=conservative [/Rule] [Rule] name=battery_low ac=off battery_interval=0-10 profile=powersave [/Rule] [Rule] name=ac ac=on profile=ondemand [/Rule] ## # Special Rules ## # CPU Too hot! [Rule] name=CPU Too Hot acpi_temperature=80-100 #cpu_interval=50-100 profile=performance low [/Rule] |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Piioo« (06.02.2008, 00:43)
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
josefhost josefg # cpufreq-info cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006 Bitte melden Sie Fehler an linux@brodo.de. analysiere CPU 0: Treiber: powernow-k8 Folgende CPUs können nur gleichzeitig ihre Frequenz variieren: 0 Hardwarebedingte Grenzen der Taktfrequenz: 1000 MHz - 2.40 GHz mögliche Taktfrequenzen: 2.40 GHz, 2.20 GHz, 2.00 GHz, 1.80 GHz, 1000 MHz mögliche Regler: ondemand, userspace, performance momentane Taktik: die Frequenz soll innerhalb 1000 MHz und 2.40 GHz. liegen. Der Regler "ondemand" kann frei entscheiden, welche Taktfrequenz innerhalb dieser Grenze verwendet wird. momentane Taktfrequenz ist 1000 MHz (verifiziert durch Nachfrage bei der Hardware). josefhost josefg # cpufreq-set Es muss mindestens ein Parameter aus -f/--freq, -d/--min, -u/--max oder -g/--governor angegeben werden. josefhost josefg # cpufreq-set --max 1800 |
Quellcode |
|
1 2 3 4 5 6 |
[Profile] name=ondemand minfreq=0% maxfreq=100% policy=ondemand [/Profile] |
danke für das set Kommando. Nun dackelt mein Notebook mit ca. 600 MHz aber wenigstens schaltet es sich nicht aus. Obwohl angezeigt wird, dass er zwischen 1.70 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz, 600 MHz umschalten kann, schaltet er nur zwischen 1,7 und 600 (aber egal )
Quellcode |
|
1 |
cpufreq-set --max 1400 |
Quellcode |
|
1 |
cpufreq-info |
-----------------------------Zitat
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which need to switch frequency at the same time: 0
hardware limits: 600 MHz - 1.70 GHz
available frequency steps: 1.70 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz, 600 MHz
available cpufreq governors: conservative, ondemand, userspace, performance
current policy: frequency should be within 600 MHz and 1.70 GHz.
The governor "conservative" may decide which speed to use
within this range.
current CPU frequency is 600 MHz.
Ich nutze KDE, so ein Reglertool wäre schon recht hilfreich. Ich werde mal danach suchen.
Zurzeit brauch ich die Regelung der Frequenzzahl nur zum emergen.
Quellcode |
|
1 |
sys-power/kpowersave |
Quellcode |
|
1 2 |
cd /sys/devices/system/cpu/cpu0/cpufreq cat ondemand/sampling_rate_max > ondemand/sampling_rate |
ich habe nachgesehen und bemerkt, dass ich keinen ondemand Ordner an der Stelle habe.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# cd /sys/devices/system/cpu/cpu0/cpufreq kraftwerk1 cpufreq # ls -la insgesamt 0 drwxr-xr-x 4 root root 0 26. Jan 15:25 . drwxr-xr-x 4 root root 0 26. Jan 15:25 .. -r--r--r-- 1 root root 4096 26. Jan 15:33 affected_cpus -r-------- 1 root root 4096 26. Jan 15:33 cpuinfo_cur_freq -r--r--r-- 1 root root 4096 26. Jan 15:33 cpuinfo_max_freq -r--r--r-- 1 root root 4096 26. Jan 15:33 cpuinfo_min_freq drwxr-xr-x 2 root root 0 26. Jan 15:33 ondemand -r--r--r-- 1 root root 4096 26. Jan 15:33 scaling_available_frequencies -r--r--r-- 1 root root 4096 26. Jan 15:33 scaling_available_governors -r--r--r-- 1 root root 4096 26. Jan 15:33 scaling_cur_freq -r--r--r-- 1 root root 4096 26. Jan 15:33 scaling_driver -rw-r--r-- 1 root root 0 26. Jan 15:25 scaling_governor -rw-r--r-- 1 root root 4096 26. Jan 15:33 scaling_max_freq -rw-r--r-- 1 root root 4096 26. Jan 15:33 scaling_min_freq drwxr-xr-x 2 root root 0 26. Jan 15:33 stats kraftwerk1 cpufreq # ls -l ondemand insgesamt 0 -rw-r--r-- 1 root root 4096 26. Jan 15:36 ignore_nice_load -rw-r--r-- 1 root root 4096 26. Jan 15:36 powersave_bias -rw-r--r-- 1 root root 4096 26. Jan 15:36 sampling_rate -r--r--r-- 1 root root 4096 26. Jan 15:36 sampling_rate_max -r--r--r-- 1 root root 4096 26. Jan 15:36 sampling_rate_min -rw-r--r-- 1 root root 4096 26. Jan 15:36 up_threshold kraftwerk1 cpufreq # uname -a Linux kraftwerk1 2.6.23-gentoo-r3 #1 PREEMPT Mon Jan 21 22:12:29 CET 2008 i686 AMD Athlon(tm) 64 Processor 4000+ AuthenticAMD GNU/Linux kraftwerk1 cpufreq # |
Quellcode |
|
1 2 |
-f FREQ, --freq FREQ setze exakte Taktfrequenz. Benötigt den Regler 'userspace'. |
Quellcode |
|
1 |
cpufreq-set -g userspace |
Quellcode |
|
1 |
cpufreq-set --freq 1400000 |
Quellcode |
|
1 |
cpufreq-set -help |
Quellcode |
|
1 |
watch grep "cpu MHz" /proc/cpuinfo |
Quellcode |
|
1 2 3 |
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor in /etc/conf.d/local.start |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »josef.95« (26.01.2008, 19:51)
Danke
ich kann nun die Frequenz aendern, aber leider ändert er nicht die Frequenz automatisch, wenn die Temperatur von 80 oder 90 Grad erreicht ist.
Aber so kann ich schon mal die Frequenz anpassen und emergen
Quellcode |
|
1 |
zcat /proc/config.gz | grep THERMAL |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
## # Special Rules ## # CPU Too hot! [Rule] name=CPU Too Hot acpi_temperature=80-100 #cpu_interval=50-100 profile=performance low [/Rule] |
Quellcode |
|
1 2 3 4 5 |
[I] sys-power/cpufreqd Available versions: 2.1.1 ~2.2.0-r2 ~2.2.1 {acpi apm lm_sensors nforce2 nvidia pmu} Installed versions: 2.1.1(11:00:32 01/16/08)(acpi apm -lm_sensors -nforce2 -nvidia -pmu) Homepage: http://cpufreqd.sourceforge.net Description: CPU Frequency Daemon |
In der Conf ist also irgendwie möglich die Frequenz zu ändern, wenn eine Temperaturgrenze überschritten ist.
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
## # Special Rules ## # CPU Too hot! [Rule] name=CPU Too Hot acpi_temperature=THRM:80-100 profile=performance low [/Rule] |
Danke an alle, die mir helfen wollten :)Zitat
acpi_temperature
The rule will have a higher score if the temperature
percentage corresponds to the provided values. Can be of the
form %d-%d or simply %d for a fixed value (e.g.:
acpi_temperature=10-100) or %s:%d-%d or %s:%d where the
string represents the thermal zone name that must match
(look at ’ls /proc/acpi/thermal_zone’ for
available names).