Advertisement
Guest User

ThinkWiki - cpufreqd example

a guest
Apr 8th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. # this is a comment
  2. #
  3. # you need: 1 [General] section,
  4. # 1 or more [Profile] sections
  5. # 1 or more [Rule] sections
  6. #
  7. # a section ends at the first blank line
  8. #
  9. # [Rule] sample:
  10. # [Rule]
  11. # name=sample_rule
  12. # ac=on # (on/off)
  13. # battery_interval=0-10
  14. # cpu_interval=30-60
  15. # programs=xine,mplayer
  16. # profile=sample_profile
  17. #
  18. # [Profile] sample:
  19. # [Profile]
  20. # name=sample_profile
  21. # minfreq=10%
  22. # maxfreq=100%
  23. # policy=performance
  24. #
  25. # see CPUFREQD.CONF(5) manpage for a complete reference
  26.  
  27. [General]
  28. pidfile=/var/run/cpufreqd.pid
  29. poll_interval=2
  30. pm_type=acpi #(acpi, apm or pmu)
  31. # Uncomment the following line to enable ACPI workaround (see cpufreqd.conf(5)) # acpi_workaround=1
  32. verbosity=4 #(if you want a minimal logging set to 5)
  33.  
  34. [Profile]
  35. name=hi_boost
  36. minfreq=66%
  37. maxfreq=100%
  38. policy=performance
  39.  
  40. [Profile]
  41. name=medium_boost
  42. minfreq=33%
  43. maxfreq=66%
  44. policy=performance
  45.  
  46. [Profile]
  47. name=lo_boost
  48. minfreq=0%
  49. maxfreq=33%
  50. policy=performance
  51.  
  52. [Profile]
  53. name=lo_power
  54. minfreq=0%
  55. maxfreq=33%
  56. policy=powersave
  57.  
  58. # conservative mode when not AC
  59. [Rule]
  60. name=conservative
  61. ac=off # (on/off)
  62. battery_interval=0-100
  63. cpu_interval=0-40
  64. cpu_nice_scale=1.5
  65. delay_cycles=3
  66. profile=lo_boost
  67.  
  68. # need some power
  69. [Rule]
  70. name=lo_cpu_boost
  71. ac=off # (on/off)
  72. battery_interval=0-100
  73. cpu_interval=30-80
  74. profile=medium_boost
  75.  
  76. # need big power (not if battery very low)
  77. [Rule]
  78. name=hi_cpu_boost
  79. ac=off # (on/off)
  80. battery_interval=50-100
  81. cpu_interval=70-100
  82. profile=medium_boost
  83.  
  84. # full power when AC
  85. [Rule]
  86. name=AC_on
  87. ac=on # (on/off)
  88. profile=hi_boost
  89.  
  90. # full power when watching DVDs and not AC:
  91. # this is the last rule and takes less
  92. # precedence with respect to the others
  93. [Rule]
  94. name=dvd_watching
  95. ac=off # (on/off)
  96. battery_interval=0-100
  97. programs=xine,totem,vlc,avidemux
  98. cpu_interval=0-100
  99. profile=hi_boost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement