i3statusでhaswell i7コアのコア温度を取得する方法

i3statusでhaswell i7コアのコア温度を取得する方法

使いたいi3ステータス私のCPUコアの温度を表示します(haswell i7)。しかし、設定:

order += "cpu_temperature 1"
#...
cpu_temperature 1{
        format = "T: %degree °C"
}
#

正しい深部温度が表示されません。表示される数字は xsensors が表示する temp1 の値に対応しているように見え、上記の 1 を 2 に変更すると xsensors temp2 に対応します。 3~4個試してみましたが効果がありませんでした。しかし、i3状態の4つのコアすべての実際のコア温度を取得したいと思います。どうすればいいですか?

ベストアンサー1

i3ステータス

使用すると、値を提供するパスを介してCPUのコア温度を直接取得できるi3statusように構成をわずかに変更できると思います。/sysしたがって、ルールを次のように変更します。

order += "cpu_temperature 1"
# and more if you like...
# order += "cpu_temperature 2"

#...   
cpu_temperature 1 {
        format = "T: %degrees °C"
        path = "/sys/devices/platform/coretemp.0/temp1_input"
}

# cpu_temperature 2 {
#        format = "T: %degrees °C"
#        path = "/sys/devices/platform/coretemp.0/temp2_input"
# }

体温を測定する他の4つの方法は次のとおりです。

/プロセス

$ cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             72 C

通信インターフェース

$ acpi -t
Thermal 0: ok, 64.0 degrees C

acpiマニュアルページから:

   -t |  --thermal
             show thermal information

/システム

$ cat /sys/bus/acpi/devices/LNXTHERM\:01/thermal_zone/temp 
70000

lm_センサー

次のように lmsensors パッケージをインストールする場合:

Fedora/セントOS/RHEL:

$ sudo yum install lm_sensors

Debian/Ubuntu:

$ sudo apt-get install lm-sensors

ハードウェアをテストします。

$ sudo sensors-detect

次のようにモジュールを手動で取り付けることもできます。

$ sudo modprobe coretemp
$ modprobe i2c-i801

メモ:modprobe <my driver>センサーの検出は特定のハードウェアを検出する必要があるため、上記の2番目のコマンドを置き換える必要があるかもしれません。

私のシステムには、次のi2cモジュールがロードされています。

$ lsmod | grep i2c
i2c_i801               11088  0 
i2c_algo_bit            5205  1 i915
i2c_core               27212  5 i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit

次に、sensorsアプリケーションを実行して結果の温度を照会します。

$ sudo sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +68.0°C  (crit = +100.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        3831 RPM
temp1:        +68.0°C  
temp2:         +0.0°C  
temp3:         +0.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:         +0.0°C  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +56.0°C  (high = +95.0°C, crit = +105.0°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2:       +57.0°C  (high = +95.0°C, crit = +105.0°C)

これはi5 M560を搭載したThinkpad T410にあります。これはコアの一つです。

$ cat /proc/cpuinfo 
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 37
model name  : Intel(R) Core(TM) i5 CPU       M 560  @ 2.67GHz
stepping    : 5
cpu MHz     : 1199.000
cache size  : 3072 KB
physical id : 0
siblings    : 4
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 11
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips    : 5319.22
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

おすすめ記事