LinuxSir.cn,穿越时空的Linuxsir!

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

t500装了gentoo,如何控制温度?

[复制链接]
发表于 2009-5-9 15:12:34 | 显示全部楼层 |阅读模式
如题,我用cpufreqd或者cpufequtils之类的软件都尝试过降频,cpu工作在最低主频,800MHz,但是温度却怎么也降不下来,总是在50度,风扇也是全速的转,我采用的是自动风扇控制。难道一定需要手动写脚本控制风扇么?

     我用lm_sensors,当运行snesors-detect的时候只能找到cpu温度探测的模块,别的找不到,内核里面配置应该没什么问题,我选择了Intel 82801 (ICH)支持。
     不知道大家有什么好的经验?
发表于 2009-5-9 15:59:34 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-9 18:55:02 | 显示全部楼层
谢谢,早就看过这篇文章了,但是不能解决我的问题。
回复 支持 反对

使用道具 举报

发表于 2009-5-9 19:21:54 | 显示全部楼层
晕忽视那个温度检测吧..
回复 支持 反对

使用道具 举报

发表于 2009-5-9 19:35:51 | 显示全部楼层
用Powertop查看一下?
另外htop看看cpu的占用情况。

内核中,
是不是 CPU Frequency scaling  --->
中没有设置好? 你默认选的是哪一个?
  1.            [*] CPU Frequency scaling                                                                                   
  2.            [ ]   Enable CPUfreq debugging                                    
  3.            <*>   CPU frequency translation statistics
  4.                     [*]     CPU frequency translation statistics details              
  5.                    Default CPUFreq governor (conservative)  --->               
  6.            -*-   'performance' governor                                      
  7.            <M>   'powersave' governor                                       
  8.            <M>   'userspace' governor for userspace frequency scaling        
  9.            <M>   'ondemand' cpufreq policy governor                          
  10.            -*-   'conservative' cpufreq governor                             
  11.            *** CPUFreq processor drivers ***                           
  12.            <*>   ACPI Processor P-States driver                              
  13.            < >   AMD Opteron/Athlon64 PowerNow!                              
  14.            < >   Intel Enhanced SpeedStep (deprecated)                       
  15.            < >   Intel Pentium 4 clock modulation                           
  16.            *** shared options ***               
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-10 00:05:03 | 显示全部楼层
谢谢指点,我的设定和您给出的是一样的,只不过我把那几个governor编译到内核里面了,变成模块我也试过,没啥效果,而且我现在能够把频率降下来,不知道为什么温度总是50度,而且风扇不停的转。

我用htop看过系统的负荷,也就是零点几,因为我没有运行什么进程。

另外我想问问大家的笔记本是什么情况,在降频使用,风扇采用自动控制,系统负荷很小的时候,温度不高,风扇也应该不转吧?

以前一直在台式机上用gentoo,没在笔记本上装过,所以这个情况不太熟悉呀。
回复 支持 反对

使用道具 举报

发表于 2009-5-10 10:39:10 | 显示全部楼层
Post by jerry7921;1985455
谢谢指点,我的设定和您给出的是一样的,只不过我把那几个governor编译到内核里面了,变成模块我也试过,没啥效果,而且我现在能够把频率降下来,不知道为什么温度总是50度,而且风扇不停的转。

我用htop看过系统的负荷,也就是零点几,因为我没有运行什么进程。

另外我想问问大家的笔记本是什么情况,在降频使用,风扇采用自动控制,系统负荷很小的时候,温度不高,风扇也应该不转吧?

以前一直在台式机上用gentoo,没在笔记本上装过,所以这个情况不太熟悉呀。

具体的设置就是这些了。我并没有什么其他的设置。

我曾经的ibm x32和现在的hp的风扇都是主板根据温度自动调节的,并没有在系统当中设置。

ibm的bios设置我不大记得了。但是在hp的bios设置中,有一项是设置风扇是否一直转动的,如果设置为开启,风扇就不会停。

ps,你在windows下的风扇正常吗?温度是多少? 是不是风扇本身的散热功能不太好,导致温度下不来,所以一直转?

另外,thinkwiki中有关于风扇控制的脚本和说明。

刚逛论坛,看到这样一个帖子http://forums.gentoo.org/viewtop ... t-thinkpad+fan.html
里面提到SL系列的thinkpad风扇控制有bug,需要升级bios,该不会赶上了吧:)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-15 00:03:12 | 显示全部楼层
感谢您热心的解答。
bios我已升级到最新版,应该不存在bios的bug问题。
我也想到在windows下查看温度,在空闲状态下两个核心温度在36度左右,风扇不转,但是在linux下idle时温度基本在47-51度左右,而且风扇一直转。
我用powertop查看过状态,如下:

   PowerTOP version 1.11      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 0.1%)         2.41 Ghz     0.0%
C0                0.0ms ( 0.0%)         2.40 Ghz     0.0%
C1 mwait          0.0ms ( 0.0%)         1.60 Ghz     2.7%
C2 mwait          0.0ms ( 0.0%)          800 Mhz    97.3%
C3 mwait         66.6ms (99.9%)

Wakeups-from-idle per second : 15.0     interval: 4.9s
no ACPI power usage estimate available

Top causes for wakeups:
  34.7% ( 12.5)     <kernel core> : hrtimer_start (tick_sched_timer)
  27.8% ( 10.0)     <kernel core> : mod_timer (rh_timer_func)
  17.4% (  6.2)          events/0 : __mod_timer (cursor_timer_handler)
   7.6% (  2.8)     <kernel core> : hrtimer_start_expires (tick_sched_timer)
   3.5% (  1.2)      <kernel IPI> : Rescheduling interrupts
   3.5% (  1.2)           ifplugd : hrtimer_start_expires (hrtimer_wakeup)
   1.4% (  0.5)       <interrupt> : eth0
   1.4% (  0.5)     <kernel core> : __mod_timer (neigh_periodic_timer)
   1.4% (  0.5)          ifconfig : mod_timer (e1000_watchdog)
   0.7% (  0.2)       <interrupt> : PS/2 keyboard/mouse/touchpad
   0.7% (  0.2)              init : hrtimer_start_expires (hrtimer_wakeup)

hrtimer_start 和mod_timer似乎经常会唤醒,不知道什么原因引起的?难道是内核里面有配置不合理的地方么?我几乎没有运行什么进程。
回复 支持 反对

使用道具 举报

发表于 2009-5-15 05:55:17 | 显示全部楼层
我用的是T400,好像可以直接把fan给停了。
ibm-acpi有没有编译进去?有了这个后,你可以看到更加多的温度。
我这里也是,sensors探测到core的温度,不过温度才30度。
那个ibm-acpi里边温度比较多。
thinkpad ~ # cat /proc/acpi/ibm/thermal
temperatures:        36 38 29 -128 50 -128 26 -128 34 40 33 -128 -128 -128 -128 -128
回复 支持 反对

使用道具 举报

发表于 2009-5-15 07:56:18 | 显示全部楼层
内核加上这些,就可以探测得到了。不过风扇转速我的台式机还是控制不了。fancontrol服务启动也报错。
  1. --- Hardware Monitoring support                                                                                  │ │  
  2.   │ │                                          <M>   Abit uGuru (rev 1 & 2)                                                                                     │ │  
  3.   │ │                                          <M>   Abit uGuru (rev 3)                                                                                         │ │  
  4.   │ │                                          <M>   Analog Devices AD7414                                                                                      │ │  
  5.   │ │                                          <M>   Analog Devices AD7416, AD7417 and AD7418                                                                   │ │  
  6.   │ │                                          <M>   National Semiconductor ADCxxxSxxx                                                                          │ │  
  7.   │ │                                          <M>   Analog Devices ADM1021 and compatibles                                                                     │ │  
  8.   │ │                                          <M>   Analog Devices ADM1025 and compatibles                                                                     │ │  
  9.   │ │                                          <M>   Analog Devices ADM1026 and compatibles                                                                     │ │  
  10.   │ │                                          <M>   Analog Devices ADM1029                                                                                     │ │  
  11.   │ │                                          <M>   Analog Devices ADM1031 and compatibles                                                                     │ │  
  12.   │ │                                          <M>   Analog Devices ADM9240 and compatibles                                                                     │ │  
  13.   │ │                                          <M>   Analog Devices ADT7462                                                                                     │ │  
  14.   │ │                                          <M>   Analog Devices ADT7470                                                                                     │ │  
  15.   │ │                                          <M>   Analog Devices ADT7473                                                                                     │ │  
  16.   │ │                                          <M>   Analog Devices ADT7475                                                                                     │ │  
  17.   │ │                                          <*>   AMD Athlon64/FX or Opteron temperature sensor                                                              │ │  
  18.   │ │                                          <M>   Asus ASB100 Bach                                                                                           │ │  
  19.   │ │                                          <M>   Attansic ATXP1 VID controller                                                                              │ │  
  20.   │ │                                          <M>   Dallas Semiconductor DS1621 and DS1625                                                                     │ │  
  21.   │ │                                          <M>   FB-DIMM AMB temperature sensor on Intel 5000 series chipsets                                               │ │  
  22.   │ │                                          <M>   Fintek F71805F/FG, F71806F/FG and F71872F/FG                                                               │ │  
  23.   │ │                                          <M>   Fintek F71862FG, F71882FG and F8000                                                                        │ │  
  24.   │ │                                          <M>   Fintek F75375S/SP and F75373                                                                               │ │  
  25.   │ │                                          < >   FSC Hermes (DEPRECATED)                                                                                    │ │  
  26.   │ │                                          < >   FSC Poseidon (DEPRECATED)                                                                                  │ │  
  27.   │ │                                          <M>   FSC Poseidon, Scylla, Hermes, Heimdall and Heracles                                                        │ │  
  28.   │ │                                          <M>   Genesys Logic GL518SM                                                                                      │ │  
  29.   │ │                                          <M>   Genesys Logic GL520SM                                                                                      │ │  
  30.   │ │                                          <M>   Intel Core (2) Duo/Solo temperature sensor                                                                 │ │  
  31.   │ │                                          <M>   ITE IT87xx and compatibles                                                                                 │ │  
  32.   │ │                                          <M>   National Semiconductor LM63
  33. <M>   National Semiconductor LM70 / Texas Instruments TMP121                                                     │ │  
  34.   │ │                                          <M>   National Semiconductor LM75 and compatibles                                                                │ │  
  35.   │ │                                          <M>   National Semiconductor LM77                                                                                │ │  
  36.   │ │                                          <M>   National Semiconductor LM78 and compatibles                                                                │ │  
  37.   │ │                                          <M>   National Semiconductor LM80                                                                                │ │  
  38.   │ │                                          <M>   National Semiconductor LM83 and compatibles                                                                │ │  
  39.   │ │                                          <M>   National Semiconductor LM85 and compatibles                                                                │ │  
  40.   │ │                                          <M>   National Semiconductor LM87 and compatibles                                                                │ │  
  41.   │ │                                          <M>   National Semiconductor LM90 and compatibles                                                                │ │  
  42.   │ │                                          <M>   National Semiconductor LM92 and compatibles                                                                │ │  
  43.   │ │                                          <M>   National Semiconductor LM93 and compatibles                                                                │ │  
  44.   │ │                                          <M>   Linear Technology LTC4245                                                                                  │ │  
  45.   │ │                                          <M>   Maxim MAX1111 Multichannel, Serial 8-bit ADC chip                                                          │ │  
  46.   │ │                                          <M>   Maxim MAX1619 sensor chip                                                                                  │ │  
  47.   │ │                                          <M>   Maxim MAX6650 sensor chip                                                                                  │ │  
  48.   │ │                                          <M>   National Semiconductor PC87360 family                                                                      │ │  
  49.   │ │                                          <M>   National Semiconductor PC87427                                                                             │ │  
  50.   │ │                                          <M>   Silicon Integrated Systems Corp. SiS5595                                                                   │ │  
  51.   │ │                                          <M>   SMSC DME1737, SCH311x and compatibles                                                                      │ │  
  52.   │ │                                          <M>   SMSC LPC47M10x and compatibles                                                                             │ │  
  53.   │ │                                          <M>   SMSC LPC47M192 and compatibles                                                                             │ │  
  54.   │ │                                          <M>   SMSC LPC47B397-NC                                                                                          │ │  
  55.   │ │                                          <M>   Texas Instruments ADS7828                                                                                  │ │  
  56.   │ │                                          <M>   Texas Instruments THMC50 / Analog Devices ADM1022                                                          │ │  
  57.   │ │                                          <M>   VIA686A                                                                                                    │ │  
  58.   │ │                                          <M>   VIA VT1211                                                                                                 │ │  
  59.   │ │                                          <M>   VIA VT8231                                                                                                 │ │  
  60.   │ │                                          <M>   Winbond W83781D, W83782D, W83783S, Asus AS99127F                                                           │ │  
  61.   │ │                                          <M>   Winbond W83791D                                                                                            │ │  
  62.   │ │                                          <M>   Winbond W83792D                                                                                            │ │  
  63.   │ │                                          <M>   Winbond W83793                                                                                             │ │  
  64.   │ │                                          <M>   Winbond W83L785TS-S
  65. <M>   Winbond W83L786NG, W83L786NR                                                                               │ │  
  66.   │ │                                          <M>   Winbond W83627HF, W83627THF, W83637HF, W83687THF, W83697HF                                                 │ │  
  67.   │ │                                          <M>   Winbond W83627EHF/DHG                                                                                      │ │  
  68.   │ │                                          <M>   IBM Hard Drive Active Protection System (hdaps)                                                            │ │  
  69.   │ │                                          <M>   STMicroeletronics LIS3LV02Dx three-axis digital accelerometer                                              │ │  
  70.   │ │                                          <M>   Apple SMC (Motion sensor, light sensor, keyboard backlight)                                                │ │  
  71.   │ │                                          [ ]   Hardware Monitoring Chip debugging messages
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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