Portál AbcLinuxu, 12. prosince 2025 21:31
[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
enable_plugins= programs,acpi_ac,cpu,acpi_battery,acpi_temperature,apm
verbosity=4
[/General]
[Profile]
name=High
minfreq=2000000
maxfreq=2000000
policy=userspace
[/Profile]
[Profile]
name=Low
minfreq=1200000
maxfreq=1200000
policy=userspace
[/Profile]
[Rule]
name=AC Off
ac=off # (on/off)
profile=Low
[/Rule]
[Rule]
name=AC on
ac=on
profile=High
[/Rule]
Vypis z cpufreqd-info
analyzing CPU 0:
driver: speedstep-ich
CPUs which need to switch frequency at the same time: 0
hardware limits: 1.20 GHz - 2.00 GHz
available frequency steps: 2.00 GHz, 1.20 GHz
available cpufreq governors: userspace
current policy: frequency should be within 2.00 GHz and 2.00 GHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 2.00 GHz (asserted by call to hardware).
Pro jistotu nastaveni kernelu
[*]CPU Frequency scaling <*>CPU frequency translation statistics Default CPUFreq governor(userspace) <*> Intel Speedstep on ICH-M chipsets (ioport interface)Predem dekuji andrew
scaling_min_freq and
scaling_max_freq show the current "policy limits" (in
kHz). By echoing new values into these
files, you can change these limits.
NOTE: when setting a policy you need to
first set scaling_max_freq, then
scaling_min_freq.
tedy v tvém případě nastavit:
echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
a poté
echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
používám tedy ondemand governor..
To get the maximum speed out of the processor
"cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" gives 1333000 when "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies" gives 1833000 1333000 1000000 for my processor. To set the maximum frequency to 1833000 do following:
# sudo -s
# echo 1833000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# echo 1833000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
To make settings permanent make a file /etc/init.d/setcpumaxfreq
#! /bin/sh
echo 1833000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1833000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
Add execution permissions and add to boot scripts:
# sudo chmod a+x /etc/init.d/setcpumaxfreq
# sudo update-rc.d setcpumaxfreq defaults
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.