root@debian:/home/tomasz# lsmod | grep acpiPakiety:
acpi_cpufreq 4915 1
processor 26259 3 acpi_cpufreq
root@debian:/home/tomasz# lsmod | grep cpufreq
cpufreq_powersave 602 1
cpufreq_conservative 4018 0
cpufreq_userspace 1444 0
acpi_cpufreq 4915 1
processor 26259 3 acpi_cpufreq
root@debian:/home/tomasz# dpkg -l | grep cpufreqCo jeszcze powinienem doinstalować? (regulacja częstotliwością działa na Ubuntu ;-))
ii cpufreqd 2.4.2-1 fully configurable daemon for dynamic frequency and voltage scaling
ii libcpufreq0 007-1 shared library to deal with the cpufreq Linux kernel feature
# this is a comment
# see CPUFREQD.CONF(5) manpage for a complete reference
#
# Note: ondemand/conservative Profiles are disabled because
# they are not available on many platforms.
[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
verbosity=4
#enable_remote=1
#remote_group=root
[/General]
#[acpi]
#acpid_socket=/var/run/acpid.socket
#[/acpi]
#[nforce2_atxp1]
#vcore_path=/some/path
#vcore_default=1500
#[/nforce2_atxp1]
#[sensors_plugin]
#sensors_conf=/some/file
#[/sensors_plugin]
[Profile]
name=On Demand High
minfreq=40%
maxfreq=100%
policy=ondemand
[/Profile]
#
#[Profile]
#name=On Demand Low
#minfreq=20%
#maxfreq=80%
#policy=ondemand
#[/Profile]
[Profile]
name=Performance High
minfreq=100%
maxfreq=100%
policy=performance
#exec_post=echo 8 > /proc/acpi/sony/brightness
[/Profile]
[Profile]
name=Performance Low
minfreq=80%
maxfreq=80%
policy=performance
[/Profile]
[Profile]
name=Powersave High
minfreq=60%
maxfreq=60%
policy=powersave
[/Profile]
[Profile]
name=Powersave Low
minfreq=40%
maxfreq=40%
policy=powersave
[/Profile]
#[Profile]
#name=Conservative High
#minfreq=33%
#maxfreq=100%
#policy=conservative
#[/Profile]
#
#[Profile]
#name=Conservative Low
#minfreq=0%
#maxfreq=66%
#policy=conservative
#[/Profile]
##
# Basic states
##
# when AC use performance mode
[Rule]
name=AC Rule
ac=on # (on/off)
profile=Performance High
[/Rule]
# stay in performance mode for the first minutes
[Rule]
name=AC Off - High Power
ac=off # (on/off)
battery_interval=70-100
#exec_post=echo 5 > /proc/acpi/sony/brightness
profile=Performance Low
[/Rule]
# conservative mode when not AC
[Rule]
name=AC Off - Medium Battery
ac=off # (on/off)
battery_interval=30-70
#exec_post=echo 3 > /proc/acpi/sony/brightness
profile=Powersave High
[/Rule]
# conservative mode when not AC
[Rule]
name=AC Off - Low Battery
ac=off # (on/off)
battery_interval=0-30
#exec_post=echo 3 > /proc/acpi/sony/brightness
profile=Powersave Low
[/Rule]
##
# Special Rules
##
# CPU Too hot!
[Rule]
name=CPU Too Hot
acpi_temperature=55-100
cpu_interval=50-100
profile=Performance Low
[/Rule]
# use performance mode if I'm watching a movie
# I don't care for batteries!
# But don't heat too much.
[Rule]
name=Movie Watcher
programs=xine,mplayer,gmplayer
battery_interval=0-100
acpi_temperature=0-60
cpu_interval=0-100
profile=Performance High
[/Rule]
MIN_SPEED=800
/etc/init.d/cpufrequtils start
cpufreq-set -f 800
móc pracować stale na 800Mhz (mniej się grzeje)Ja pierwotnie uznałem, że chodzi o to, że taktowanie ma nie wchodzić powyżej 800 MHz. Później jednak stwierdziłem, że może chodzić o to, że jeśli schodzi poniżej 800MHz, to się procesor grzeje (co byłoby trochę dziwne, ale życie bywa zaskakujące), dlatego zmieniłem post.
3. Żeby ustalić zarządcę, i tak trzeba zmienić zawartość /etc/default/cpufrequtils.To juz zależy od dystrybucji. mozna za każdym razem ustawiać ręcznie - jak ktoś lubi ;-)
To juz zależy od dystrybucji.Wątkotwórca ma Debiana, więc powinien to robić zgodnie z tym, co przewidzieli twórcy Debiana.
cpufreq przyjmuje częstotliwość w kHz, nie MHz! Częstotliwość nie musi być precyzyjna!Kod: [Zaznacz]cpufreq-set -f 800
cpufreq-set -g userspace --f 800000
root@debian:/home/tomasz# lsmod | grep cpufreq--EDIT-- już działa, nie wiem dlaczego wcześniej nie działło. Jakie moduły trzeba mieć by działało tak ogólnie
cpufreq_stats 1940 0
cpufreq_powersave 602 0
cpufreq_conservative 4018 0
cpufreq_userspace 1444 1
acpi_cpufreq 4915 1
processor 26259 3 acpi_cpufreq
root@debian:/home/tomasz# cpufreq-set -g userspace -u 800K -d 800K
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?