3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LinuxでCPU温度を計測する

Posted at

#環境
ubuntu 18.04.3 LTS

#catでtempファイルを直接表示

$ cat /sys/class/thermal/thermal_zone0/temp
58200

ディレクトリの "thermal" 以下はOSやCPUで違うため適宜読み替えが必要。

#lm_sensorsを使う

$ apt-get install lm-sensors
(省略)
$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +60.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:        +57.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:        +60.0°C  (high = +87.0°C, crit = +105.0°C)

#psensorを使う(GUI)

$ apt-get install psensor
(省略)
$ psensor

Screenshot from 2019-11-26 05-38-36.png

チェックボックスにチェックを入れるとグラフ表示も可能

Screenshot from 2019-11-26 05-42-00.png

#xsensorを使う

$ apt-get install xsensors
(省略)
$ xsensors

Screenshot from 2019-11-26 05-46-40.png

#おわり
紹介したツールのインストールは他ディストリビューションでも基本的に同じ(未確認)
それぞれ大きな違いはなさそうなのであとは好みで。
HDDの温度も同時に見れるpsensorが便利。

参考サイト
https://wiki.archlinux.jp/index.php/Lm_sensors
https://www.addictivetips.com/ubuntu-linux-tips/check-cpu-temperature-on-linux/
https://www.cyberciti.biz/faq/how-to-check-cpu-temperature-on-ubuntu-linux/

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?