Sunday, October 16, 2005

Cpufreqd su un Asus M2400N (cpufreqd.conf)

Dal momento che IMVHO il file di configurazione di cpufreqd (cpufreqd.conf) è scritto davvero male, posto una mia personale rivisitazione:

# this is a comment
#
# you need: 1 [General] section,
# 1 or more [Profile] sections
# 1 or more [Rule] sections
#
# a section ends at the first blank line
#
# [Rule] sample:
# [Rule]
# name=sample_rule
# ac=on # (on/off)
# battery_interval=0-10
# cpu_interval=30-60
# programs=xine,mplayer
# profile=sample_profile
#
# [Profile] sample:
# [Profile]
# name=sample_profile
# minfreq=10%
# maxfreq=100%
# policy=performance
#
# see CPUFREQD.CONF(5) manpage for a complete reference

[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=ondemand_battery_on
minfreq=600000
maxfreq=1600000
policy=ondemand

[Profile]
name=hight_conservative_battery_off
minfreq=600000
maxfreq=1600000
policy=conservative

[Profile]
name=low_conservative_battery_off
minfreq=600000
maxfreq=1000000
policy=conservative

# Battery On
# Default governor: ondemand

[Rule]
name=battery_on
ac=on
profile=ondemand_battery_on

# Battery Off
# Default governor: conservative
# Battery capacity : hight

[Rule]
name=battery_off_hight_capacity
ac=off
battery_interval=60-100
profile=hight_conservative_battery_off

# Battery Off
# Default governor: conservative
# Battery capacity : low

[Rule]
name=battery_off_low_capacity
ac=off
battery_interval=0-60
profile=low_conservative_battery_off

No comments:

Post a Comment