# 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 # acpi_workaround=1 verbosity=4 # (if you want a minimal logging set to 5) #===================[ PROFILES ]======================================= # For range check: # /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq # /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq #---------------------------------------------------------------------- # # AC-Powered: High Performance # [Profile] name=ac_powered_high minfreq=100% maxfreq=100% policy=performance # # AC-Powered: Normal # [Profile] name=ac_powered_normal minfreq=0% maxfreq=75% policy=performance # # AC-Powered: Low speed # [Profile] name=ac_powered_low minfreq=0% maxfreq=33% policy=powersave #---------------------------------------------------------------------- # # Battery-Powered: High Performance # [Profile] name=bat_powered_high minfreq=50% maxfreq=75% policy=powersave # # Battery-Powered: Normal # [Profile] name=bat_powered_normal minfreq=0% maxfreq=50% policy=powersave # # Battery-Powered: Low speed # [Profile] name=bat_powered_low minfreq=0% maxfreq=33% policy=powersave # # Battery-Powered: Low Battery # [Profile] name=bat_low minfreq=0% maxfreq=0% policy=powersave #---------------------------------------------------------------------- # # Constant Frequency # [Profile] name=dvd minfreq=50% maxfreq=50% policy=performance #---------------------------------------------------------------------- # # Constant Frequency High # [Profile] name=presentation minfreq=75% maxfreq=75% policy=performance #===================[ RULES ]======================================= # Calculation of the rule: # + ac = 8 hits # + cpu = 4 hits # + bat = 2 hits # + prg = 1 hit # =============== # -> Invoke rule with 15, 7, 3, 1 hit # # => Set battery_interval = 0-100 for all ac-modes # to get the hits there. #---------------------------------------------------------------------- # # AC-Powered mode, low load # [Rule] name=ac_on_low ac=on cpu_interval=0-50 battery_interval=0-100 profile=ac_powered_low # # AC-Powered mode, normal operation # [Rule] name=ac_on_normal ac=on cpu_interval=51-70 battery_interval=0-100 profile=ac_powered_normal # # AC-Powered mode, high load # [Rule] name=ac_on_high ac=on cpu_interval=71-100 battery_interval=0-100 profile=ac_powered_high #---------------------------------------------------------------------- # # Battery-Powered, low load # [Rule] name=bat_on_low ac=off cpu_interval=0-50 battery_interval=50-100 profile=bat_powered_low # # Battery-Powered, normal load # [Rule] name=bat_on_normal ac=off cpu_interval=51-70 battery_interval=50-100 profile=bat_powered_normal # # Battery-Powered, high load # [Rule] name=bat_on_high ac=off cpu_interval=71-100 battery_interval=50-100 profile=bat_powered_high # # Battery-Powered, low bat # [Rule] name=bat_low ac=off cpu_interval=0-100 battery_interval=0-50 profile=bat_low #---------------------------------------------------------------------- # # Don't switch frequencies while watching dvd # [Rule] name=dvd_watch_ac programs=xine,mplayer,avidemux ac=on cpu_interval=0-100 battery_interval=0-100 profile=dvd [Rule] name=dvd_watch_bat programs=xine,mplayer,avidemux ac=off cpu_interval=0-100 battery_interval=0-100 profile=dvd #---------------------------------------------------------------------- # # Certain programs run at 100% CPU usage four hours # (e.g. Chess Engines), so don't step up to the max. # [Rule] name=longrun_ac programs=crafty,Shredder9Linux,fruit,TogaII,updatedb ac=on cpu_interval=0-100 battery_interval=0-100 profile=dvd [Rule] name=longrun_bat programs=crafty,Shredder9Linux,fruit,TogaII,updatedb ac=off cpu_interval=0-100 battery_interval=0-100 profile=dvd #---------------------------------------------------------------------- # # Don't switch frequencies on presentation # [Rule] name=pres_ac programs=xvncviewer,vncserver,lame,mpg321,ogg123 ac=on cpu_interval=0-100 battery_interval=0-100 profile=presentation [Rule] name=pres_bat programs=xvncviewer,vncserver,lame,mpg321,ogg123 ac=off cpu_interval=0-100 battery_interval=0-100 profile=presentation #---------------------------------------------------------------------- # # Compiling should be fast if battery state is ok, or ac # [Rule] name=compiling_ac ac=on programs=make,gcc,cpp,g77,lf95,ifort,ifc,icc cpu_interval=0-100 battery_interval=0-100 profile=ac_powered_high [Rule] name=compiling_bat ac=off programs=make,gcc,cpp,g77,lf95,ifort,ifc,icc cpu_interval=0-100 battery_interval=25-100 profile=bat_powered_high