Skip to content
WONGCW 網誌
  • 首頁
  • 論壇
  • 微博
  • 壁紙下載
  • 免費圖床
  • 視頻下載
  • 聊天室
  • SEO工具
  • 支援中心
  • 表格製作
  • More
    • 在線名片
    • 網頁搜索
    • 天氣預報
    • 二維碼生成器
    • WordPress 插件及主題下載
  • Search Icon

WONGCW 網誌

記錄生活經驗與點滴

How To View CPU Temperature On Linux

How To View CPU Temperature On Linux

2018-08-06 Comments 0 Comment

This brief tutorial describes how to view CPU temperature on Linux using lm_sensors. Lm_sensors, short for Linux-monitoring sensors,  is a free software package that provides the necessary tools and drivers for monitoring CPU temperatures, voltage, humidity, and fans. It can also detect chassis intrusions. So, you can find out a defective hardware components, and replace it to avoid the system hanging or overheating issues.

View CPU Temperature On Linux Using Lm_sensors

Installation

Lm_sensors comes pre-installed with most modern Linux operating systems. If it is not installed already, you can install it as shown below.

On Arch Linux and its derivatives:

$ sudo pacman -S lm_sensors

On RHEL, CentOS, Fedora:

$ sudo yum install lm_sensors

Or,

$ sudo dnf install lm_sensors

On Debian, Ubuntu, Linux Mint:

$ sudo apt-get install lm-sensors

On SUSE, openSUSE:

$ sudo zypper in sensors
Download – Free Cheat Sheet: “Linux Command Line Cheat Sheet”

Configuration

Once installed, run the following command to configure lm_sensors:

$ sudo sensors-detect

The sensors-detect is a stand-alone program for detecting installed hardware and recommending specific modules to load. The “safe” answers are the defaults, so just hit to ENTER the accept the default values. It won’t cause any problems. This will create the /etc/conf.d/lm_sensors configuration file which is used by lm_sensors.service to automatically load kernel modules on boot.

The sample output of the above command in my DELL Laptop:

# sensors-detect revision $Revision$
# System: Dell Inc. Inspiron N5050 [Not Specified] (laptop)
# Board: Dell Inc. 01HXXJ
# Kernel: 4.10.8-1-ARCH x86_64
# Processor: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz (6/42/7)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): 
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... No
AMD Family 10h thermal sensors... No
AMD Family 11h thermal sensors... No
AMD Family 12h and 14h thermal sensors... No
AMD Family 15h thermal sensors... No
AMD Family 16h thermal sensors... No
AMD Family 15h power sensors... No
AMD Family 16h power sensors... No
Intel digital thermal sensor... Success!
 (driver `coretemp')
Intel AMB FB-DIMM thermal sensor... No
Intel 5500/5520/X58 thermal sensor... No
VIA C7 thermal sensor... No
VIA Nano thermal sensor... No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): 
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'... Yes
Found unknown chip with ID 0xfc11

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): 
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): 
Using driver `i2c-i801' for device 0000:00:1f.3: Intel Cougar Point (PCH)
Module i2c-dev loaded successfully.

Next adapter: SMBus I801 adapter at f040 (i2c-0)
Do you want to scan it? (YES/no/selectively): 
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... Yes
 (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'... No

Next adapter: i915 gmbus ssc (i2c-1)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: i915 gmbus vga (i2c-2)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: i915 gmbus panel (i2c-3)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: i915 gmbus dpc (i2c-4)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: i915 gmbus dpb (i2c-5)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: i915 gmbus dpd (i2c-6)
Do you want to scan it? (yes/NO/selectively): 

Next adapter: DPDDC-B (i2c-7)
Do you want to scan it? (yes/NO/selectively): 


Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `coretemp':
 * Chip `Intel digital thermal sensor' (confidence: 9)

Do you want to overwrite /etc/conf.d/lm_sensors? (YES/no): 
Unloading i2c-dev... OK
Unloading cpuid... OK

Now, type the following command to view the CPU temperature information of your Linux box:

$ sensors

Sample output:

coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +65.0°C (high = +80.0°C, crit = +85.0°C)
Core 0: +65.0°C (high = +80.0°C, crit = +85.0°C)
Core 1: +63.0°C (high = +80.0°C, crit = +85.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1: +63.5°C (crit = +84.0°C)

dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 4016 RPM
CPU: +63.0°C 
Other: +59.0°C 
Other: +57.0°C 
GPU: +16.0°C

As you see in the above output, lm_sensors displays my CPU’s current temperature, high and critical temperature in the brackets. If you find out any of your hardware devices reaches high or critical temperature, you probably need to check that hardware device.

To display the temperatures in degrees Fahrenheit instead of Celsius, use -f option.

$ sensors -f

To monitor the CPU temperature in real time, you can use ‘watch’ command like below.

$ watch sensors

Sample output:

Press CTRL+C to stop the monitoring at any time.

For more details, refer the man pages.

$ man sensors

And, that’s all. If you find this guide useful, please show your support by sharing it on your social and professional networks.

Cheers!

分享此文:

  • 分享到 Twitter(在新視窗中開啟)
  • 按一下以分享至 Facebook(在新視窗中開啟)
  • 分享到 WhatsApp(在新視窗中開啟)
  • 按一下以分享到 Telegram(在新視窗中開啟)
  • 分享到 Pinterest(在新視窗中開啟)
  • 分享到 Reddit(在新視窗中開啟)
  • 按一下即可分享至 Skype(在新視窗中開啟)
  • 按一下即可以電子郵件傳送連結給朋友(在新視窗中開啟)
  • 點這裡列印(在新視窗中開啟)

相關


Linux資訊

Post navigation

PREVIOUS
如果你原先的環境是 powersave 想改成 performance 時,怎麼做呢?這樣做即可:
NEXT
Discuz添加Nginx伪静态rewrite规则的方法

發表迴響 取消回覆

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料。

More results...

Generic filters
Exact matches only
Search in title
Search in content
Search in excerpt
Filter by 分類
網站公告
Featured
限時免費
ESET NOD32
WINDOWS 10 &11 INSIDER PREVIEW
Windows 軟件下載
系統軟件
辦公軟件
圖像處理
影音媒體
網絡軟件
應用軟件
Mac 軟件下載
安卓軟件下載
網絡資訊
Mac資訊
Linux資訊
VPS資訊
NASA資訊
金融資訊
WhatsApp Stickers教學
WordPress資訊
WeChat資訊
PHP資訊
Plesk資訊
TensorFlow
教學資源
開源程序
網頁工具
SEO工具
醫療健康
旅遊及消閒
其他資訊
Content from
Content to
2018 年 8 月
一 二 三 四 五 六 日
 12345
6789101112
13141516171819
20212223242526
2728293031  
« 7 月   9 月 »

分類

  • 網站公告
  • 限時免費
  • ESET NOD32
  • WINDOWS 10 &11 INSIDER PREVIEW
  • Windows 軟件下載
  • 系統軟件
  • 辦公軟件
  • 圖像處理
  • 影音媒體
  • 網絡軟件
  • 應用軟件
  • Mac 軟件下載
  • 安卓軟件下載
  • 網絡資訊
  • Mac資訊
  • Linux資訊
  • VPS資訊
  • NASA資訊
  • WhatsApp Stickers教學
  • WordPress資訊
  • WeChat資訊
  • PHP資訊
  • Plesk資訊
  • TensorFlow
  • 教學資源
  • 開源程序
  • 網頁工具
  • SEO工具
  • 醫療健康
  • 旅遊及消閒
  • 其他資訊

彙整

近期文章

  • 谷歌第四季度淨利潤同比下降34% 未達預期股價下跌逾3% 2023-02-03
  • 蘋果四季度iPhone收入不佳總營收創六年最大跌幅盤後跌近4% 2023-02-03
  • 美股龍頭罕見跌倒蘋果Q1財報營收、利潤均不及預期 2023-02-03
  • 亞馬遜第四季度營收1492.04億美元淨利潤同比下降98% 2023-02-03
  • 研究發現彈鋼琴能提高大腦處理能力減少抑鬱、壓力和焦慮 2023-02-03
  • 蒂姆·庫克:iPhone製造過程中產生的問題是銷量不足的主要原因 2023-02-03
  • 未開封的第一代iPhone有望在拍賣會上拍出50000美元高價 2023-02-03
  • 三星二代3nm工藝2024年量產功耗直降50% 2023-02-03
  • 糖果Pop Rocks及分子美食概念激發了新的抗腫瘤泡沫的發明 2023-02-03
  • 基因改造的蠕蟲在遭遇室內空氣污染的情況下會發光 2023-02-03

熱門文章與頁面︰

  • ESET NOD32 LICENSE KEY (UPDATED 2023-01-17)
  • DP vs HDMI 誰才是遊戲玩家最佳選擇?
  • Explorer Patcher:讓Windows 11恢復Windows 10的行為特徵
  • PS5實際上擁有網頁瀏覽器但玩家無法隨意訪問
  • 盜版Windows 7還能免費升級Windows 10嗎?
  • 天翼網盤免登陸高速下載,直鏈解析不限速
  • Google Chrome瀏覽器意外出現Status_Access_Violation錯誤而崩潰
  • z-sms – 在線免費云短信臨時手機號接碼平台網頁版
  • 百度雲盤、藍奏雲、微雲提取碼秘鑰查詢工具
  • 打車叫到特斯拉不會開門很尷尬?官方介紹開關門方法

投遞稿件

歡迎各界人士投遞稿件到admin@wongcw.com

請提供以下資料:

1.你的名字

2.你的電郵

3.分類目錄

4.文章標題

5.文章摘要

6.文章內容

7.文章來源

 

聯繫我們

查詢,投稿,商務合作:
​admin@wongcw.com
​技術支援:
​support@wongcw.com
​客户服務:
​cs@wongcw.com

QQ群:833641851

快帆

MALUS

極度掃描

DMCA.com Protection Status

WONGCW 網誌

  • 免責聲明
  • 捐助我們
  • ThemeNcode PDF Viewer
  • ThemeNcode PDF Viewer SC
  • Events

服務器提供

本站使用之服務器由ikoula提供。

聯繫我們

查詢,投稿,商務合作:
​admin@wongcw.com
​技術支援:
​support@wongcw.com
​客户服務:
​cs@wongcw.com

QQ群:833641851

© 2023   All Rights Reserved.
 

載入迴響中...
 

    X