LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 897|回复: 0

cpufreqd求助

[复制链接]
发表于 2006-6-11 18:21:54 | 显示全部楼层 |阅读模式
cpufreqd 安装好了
但是我在ac工作模式下,cpu还是100%工作,如何设置成ondemand类型??
在电池模式下,cpu又只锁定在60%性能工作
好像都是死的,不是很灵活

  1. joey@debian:~$ cat /etc/modules
  2. # /etc/modules: kernel modules to load at boot time.
  3. #
  4. # This file should contain the names of kernel modules that are
  5. # to be loaded at boot time, one per line.  Comments begin with
  6. # a "#", and everything on the line after them are ignored.

  7. ide-cd
  8. ide-disk
  9. ide-generic
  10. psmouse
  11. sbp2
  12. sr_mod
  13. speedstep-ich
  14. #cpufreq_powersave
  15. #cpufreq_performance
  16. cpufreq_ondemand
复制代码


我的模块

cpufreqd。conf
  1. joey@debian:~$ cat /etc/cpufreqd.conf
  2. # this is a comment
  3. #
  4. # you need: 1 [General] section,
  5. #           1 or more [Profile] sections
  6. #                 1 or more [Rule] sections
  7. #
  8. # a section ends at the first blank line
  9. #
  10. # [Rule] sample:
  11. #           [Rule]
  12. #           name=sample_rule
  13. #           ac=on                    # (on/off)
  14. #           battery_interval=0-10
  15. #           cpu_interval=30-60
  16. #           programs=xine,mplayer
  17. #           profile=sample_profile
  18. #
  19. # [Profile] sample:
  20. #           [Profile]
  21. #           name=sample_profile
  22. #           minfreq=10%
  23. #           maxfreq=100%
  24. #           policy=performance
  25. #
  26. # see CPUFREQD.CONF(5) manpage for a complete reference

  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))
  32. # acpi_workaround=1
  33. verbosity=4 #(if you want a minimal logging set to 5)

  34. [Profile]
  35. name=hi_boost
  36. minfreq=66%
  37. maxfreq=100%
  38. policy=performance

  39. [Profile]
  40. name=medium_boost
  41. minfreq=33%
  42. maxfreq=66%
  43. policy=performance

  44. [Profile]
  45. name=lo_boost
  46. minfreq=0%
  47. maxfreq=33%
  48. policy=performance

  49. [Profile]
  50. name=lo_power
  51. minfreq=0%
  52. maxfreq=33%
  53. policy=powersave

  54. # conservative mode when not AC
  55. [Rule]
  56. name=conservative
  57. ac=off                   # (on/off)
  58. battery_interval=0-100
  59. cpu_interval=0-40
  60. profile=lo_boost

  61. # need some power
  62. [Rule]
  63. name=lo_cpu_boost
  64. ac=off                   # (on/off)
  65. battery_interval=0-100
  66. cpu_interval=30-80
  67. profile=medium_boost

  68. # need big power (not if battery very low)
  69. [Rule]
  70. name=hi_cpu_boost
  71. ac=off                   # (on/off)
  72. battery_interval=50-100
  73. cpu_interval=70-100
  74. profile=medium_boost

  75. # full power when AC
  76. [Rule]
  77. name=AC_on
  78. ac=on                   # (on/off)
  79. profile=hi_boost

  80. # full power when watching DVDs and not AC:
  81. # this is the last rule and takes less
  82. # precedence with respect to the others
  83. [Rule]
  84. name=dvd_watching
  85. ac=off                   # (on/off)
  86. battery_interval=0-100
  87. programs=xine,mplayer,avidemux
  88. cpu_interval=0-100
  89. profile=hi_boost
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表