osolinux吧 关注:169贴子:4,002
  • 11回复贴,共1

有没有实时显示cpu频率的工具,能否动态调节频率?

只看楼主收藏回复

如题。另外能否集成个温度检测工具?


IP属地:湖南来自Android客户端1楼2016-06-17 10:35回复
    系统已经集成有 lm_sensors
    运行 sensors-detect 一路 YES 同意监控操作,最后一个将询问是否开启你配置好的监控服务
    然后运行 sensors 就看到数据了
    硬盘的温度需要安装 hddtmp,源里已添加,以后会集成
    # sensor
    sensord sensors sensors-conf-convert sensors-detect
    [root@OsoLinux ~]# sensors
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +27.8°C (crit = +105.0°C)
    temp2: +29.8°C (crit = +105.0°C)
    coretemp-isa-00
    Adapter: ISA adapter
    Physical id 0: +36.0°C (high = +80.0°C, crit = +100.0°C)
    Core 0: +36.0°C (high = +80.0°C, crit = +100.0°C)
    Core 1: +34.0°C (high = +80.0°C, crit = +100.0°C)
    Core 2: +35.0°C (high = +80.0°C, crit = +100.0°C)
    Core 3: +36.0°C (high = +80.0°C, crit = +100.0°C)
    it8-isa-0a3
    Adapter: ISA adapter
    in0: +0.02 V (min = +0.00 V, max = +3.06 V)
    in1: +2.04 V (min = +0.00 V, max = +3.06 V)
    in2: +2.02 V (min = +0.00 V, max = +3.06 V)
    in3: +2.09 V (min = +0.00 V, max = +3.06 V)
    in4: +0.01 V (min = +0.00 V, max = +3.06 V)
    in5: +1.79 V (min = +0.00 V, max = +3.06 V)
    in6: +1.52 V (min = +0.00 V, max = +3.06 V)
    3VSB: +3.38 V (min = +0.00 V, max = +6.12 V)
    Vbat: +3.22 V
    fan1: 958 RPM (min = 0 RPM)
    fan2: 0 RPM (min = 0 RPM)
    fan3: 647 RPM (min = 0 RPM)
    fan4: 0 RPM (min = 0 RPM)
    fan5: 0 RPM (min = 0 RPM)
    temp1: +34.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
    temp2: +25.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
    temp3: +28.0°C (low = +127.0°C, high = +127.0°C) sensor = Intel PECI
    intrusion0: ALARM
    # hddtemp
    /dev/sda: ADATA SP0: 36°C


    IP属地:福建4楼2016-06-19 05:59
    收起回复
      pwmconfig 用于测试一下风扇在什么样的 pwm下开转,多大比例到多大转速,了解之后就可以设定温度到多少开始转,超过多少要猛转;还有最小用什么样的 pwm,最大用什么样的 pwm。一般没有必要用到最高转速,那样声音会非常大,所以最大也给个中间的值就可以了。
      pwmconfig 修订 6243 (2014-03-20)
      这个程序将搜索你的传感器 (pwm)
      控制和测试你的主板是否控制每一个风扇
      注意, 许多主板没有pwm 电路安装, 即使你的传感器芯片支持pwm 。
      我们将尝试短暂停止每个风扇使用 pwm 控制,程序将尝试恢复每个风扇全速后测试。这是 * *非常重要的 **
      Found the following devices:
      hwmon0 is acpitz
      hwmon1 is coretemp
      hwmon2/device is it8728
      Found the following PWM controls:
      hwmon2/device/pwm1 current value: 70
      hwmon2/device/pwm1 is currently setup for automatic speed control.
      In general, automatic mode is preferred over manual mode, as
      it is more efficient and it reacts faster. Are you sure that
      you want to setup this output for manual control? (y)
      期间一堆的测试提示,略过...
      Giving the fans some time to reach full speed...
      y
      Found the following fan sensors:
      hwmon2/device/fan1_input current speed: 1634 RPM
      hwmon2/device/fan2_input current speed: 0 ... skipping!
      hwmon2/device/fan3_input current speed: 1318 RPM
      hwmon2/device/fan4_input current speed: 0 ... skipping!
      hwmon2/device/fan5_input current speed: 0 ... skipping!
      Warning!!! This program will stop your fans, one at a time,
      for approximately 5 seconds each!!!
      This may cause your processor temperature to rise!!!
      If you do not want to do this hit control-C now!!!
      Hit return to continue:
      Testing pwm control hwmon2/device/pwm1 ...
      hwmon2/device/fan1_input ... speed was 1634 now 940
      It appears that fan hwmon2/device/fan1_input
      is controlled by pwm hwmon2/device/pwm1
      Would you like to generate a detailed correlation (y)?
      Note: If you had gnuplot installed, I could generate a graphical plot.
      PWM 255 FAN 1634
      PWM 195 FAN 1634
      PWM 180 FAN 1523
      ......
      PWM 2 FAN 938
      PWM 0 FAN 938
      hwmon2/device/fan3_input ... speed was 1318 now 1366
      no correlation
      Testing pwm control hwmon2/device/pwm2 ...
      hwmon2/device/fan1_input ... speed was 1634 now 1634
      no correlation
      hwmon2/device/fan3_input ... speed was 1318 now 1341
      no correlation
      Testing pwm control hwmon2/device/pwm2 ...
      hwmon2/device/fan1_input ... speed was 1634 now 1634
      no correlation
      hwmon2/device/fan3_input ... speed was 1318 now 1341
      no correlation
      略过... 测试间会问你是否在以上测试中听到风扇停止了,在最后生成一个风扇控制脚本:
      Did you see/hear a fan stopping during the above test (n)?
      因为没什么变化所以我直接 n 回车
      接着还有一些测试默认回车,略过 ...
      Testing is complete.
      Please verify that all fans have returned to their normal speed.
      The fancontrol script can automatically respond to temperature changes
      of your system by changing fanspeeds.
      Do you want to set up its configuration file now (y)? y
      What should be the path to your fancontrol config file (/etc/fancontrol)?
      Select fan output to configure, or other action:
      1) hwmon2/device/pwm3 3) Change INTERVAL 5) Save and quit
      2) hwmon2/device/pwm1 4) Just quit 6) Show configuration
      select (1-n): 1
      本例选择硬件比如 1 或 2 进行风扇详细的设置,如果没有这步操作直接 5 保存将没有变化
      Saving configuration to /etc/fancontrol...
      Configuration saved
      6) Show configuration
      select (1-n): 6
      Common Settings:
      INTERVAL=
      Settings of hwmon2/device/pwm3:
      Depends on hwmon0/temp2_input
      Controls hwmon2/device/fan3_input
      MINTEMP=20
      MAXTEMP=60
      MINSTART=150
      MINSTOP=100
      Settings of hwmon2/device/pwm1:
      Depends on hwmon0/temp1_input
      Controls hwmon2/device/fan1_input
      MINTEMP=20
      MAXTEMP=60
      MINSTART=150
      MINSTOP=0
      因为我的台式机实在没必要去自己定义风扇速度,所以最后我还是删掉配置 /etc/fancontrol


      IP属地:福建12楼2016-06-19 07:32
      收起回复
        这里有提示是否安装
        gnuplot
        为此我编译安装了一个,于是便提供有了直观些的图表


        IP属地:福建13楼2016-06-19 07:33
        收起回复
          more /proc/cpuinfo
          或 lscpu


          IP属地:福建14楼2016-06-19 08:22
          回复