安裝lm-sensors出錯解決方法

$sudo apt-get install lm-sensors

$ sensors

No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
這個原因是因爲還沒有配置好機器
解決方法:

$sudo sensors-detect 
一直yes就可以了
最後一項就可以看到有兩行coretemp和w83627ehf(這個可能不同機器不一樣)

 

 

  1. $ sudo modprobe -v coretemp 
  2.  
  3. insmod /lib/modules/3.2.0-27-generic-pae/kernel/drivers/hwmon/coretemp.ko  
  4.  
  5. sheng@sheng:~$ sensors 
  6. coretemp-isa-0000 
  7. Adapter: ISA adapter 
  8. Physical id 0:  +40.0°C  (high = +82.0°C, crit = +102.0°C) 
  9. Core 0:         +40.0°C  (high = +82.0°C, crit = +102.0°C) 
  10. Core 1:         +40.0°C  (high = +82.0°C, crit = +102.0°C) 
  11.  
  12. $ sudo modprobe -v w83627ehf 
  13.  
  14. 這樣會出現 
  15. FATAL: Error inserting w83627ehf (/lib/modules/2.6.31-16-generic/kernel/drivers/hwmon/w83627ehf.ko): Device or resource busy 

解決辦法:

$sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"

修改grub文件,加入上面那句話。

$sudo update-grub
$reboot
重啓後執行

  1. $ sudo modprobe -v w83627ehf 
  2. $ sensors 
  3.  
  4. coretemp-isa-0000 
  5.  
  6. Adapter: ISA adapter 
  7.  
  8. Physical id 0:  +43.0°C  (high = +82.0°C, crit = +102.0°C) 
  9.  
  10. Core 0:         +40.0°C  (high = +82.0°C, crit = +102.0°C) 
  11.  
  12. Core 1:         +43.0°C  (high = +82.0°C, crit = +102.0°C) 
  13.  
  14.   
  15.  
  16. nct6776-isa-0290 
  17.  
  18. Adapter: ISA adapter 
  19.  
  20. Vcore:         +0.97 V  (min =  +0.00 V, max =  +1.74 V) 
  21.  
  22. in1:           +1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM 
  23.  
  24. AVCC:          +3.33 V  (min =  +2.98 V, max =  +3.63 V) 
  25.  
  26. +3.3V:         +3.33 V  (min =  +2.98 V, max =  +3.63 V) 
  27.  
  28. in4:           +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM 
  29.  
  30. in5:           +2.04 V  (min =  +0.00 V, max =  +0.00 V)  ALARM 
  31.  
  32. 3VSB:          +3.41 V  (min =  +2.98 V, max =  +3.63 V) 
  33.  
  34. Vbat:          +3.30 V  (min =  +2.70 V, max =  +3.30 V)  ALARM 
  35.  
  36. fan1:            0 RPM  (min =    0 RPM)  ALARM 
  37.  
  38. fan2:         2477 RPM  (min =    0 RPM)  ALARM 
  39.  
  40. fan3:            0 RPM  (min =    0 RPM)  ALARM 
  41.  
  42. fan4:            0 RPM  (min =    0 RPM)  ALARM 
  43.  
  44. fan5:            0 RPM  (min =    0 RPM)  ALARM 
  45.  
  46. SYSTIN:        +37.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = thermistor 
  47.  
  48. CPUTIN:        +84.5°C  (high = +81.0°C, hyst = +76.0°C)  ALARM  sensor = thermistor 
  49.  
  50. AUXTIN:        +49.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor 
  51.  
  52. PECI Agent 0:  +41.0°C   
  53.  
  54. cpu0_vid:     +2.050 V 
  55.  
  56. intrusion0:   OK 
  57.  
  58. intrusion1:   ALARM 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章