- How to check CPU temperature on Ubuntu Linux
- Procedure for monitoring CPU and HDD temperatures on Ubuntu
- Check CPU temperature in Ubuntu Linux
- Install lm-sensors in Ubuntu Linux
- Display CPU temperature in the command line
- How can I show the CPU temperature in the GNOME panel
- How to install hddtemp in Ubuntu Linux
- How to see hard disk temperature in Ubuntu
- Use disks & storage GUI tool to view hard disk temp
- How to monitor Nvme ssd temperature in Ubuntu
- What to do when a laptop gets way too hot
- Conclusion
- Температура процессора Linux
- Температура процессора в Linux
- 1. Установка
- 2. Настройка программы
- Использование sensors
- Использование psensor
- Выводы
- Оцените статью:
- Об авторе
- 15 комментариев
- How to Get CPU Temperature on Ubuntu Linux
- 1) Check CPU temperature using Lm_Sensors
- Detecting compatible sensors on Ubuntu Linux
- Display CPU temperature in the command line
- 2) Check CPU temperature with Psensor GUI tool
- 3) Using ‘Hardinfo’ to check CPU temperature
- Using ‘i7z’ to find CPU temperature
- Conclusion
How to check CPU temperature on Ubuntu Linux
H ow do I check CPU temperature in Ubuntu Linux using a command line and GUI tools on my Thinkpad laptop or Desktop computer?
One of the most common complaints is the overheating laptop, especially older models. Laptop components are tightly put together to each other. So there is very little room for air movement in thinner laptops. If your laptop overheats, it can cause some damage to your body as well as the hardware parts. Therefore monitoring hardware temperature is essential. In this tutorial, you will learn how to check CPU temperature in Ubuntu Linux.
Tutorial details | |
---|---|
Difficulty level | Easy |
Root privileges | Yes |
Requirements | Ubuntu Linux |
Est. reading time | 4 minutes |
Procedure for monitoring CPU and HDD temperatures on Ubuntu
- Open the terminal application.
- Install the lm-sensors and hddtemp packages in Ubuntu using the sudo apt install hddtemp lm-sensors .
- Run hddtemp command to see SSD and hard drive temperature in Ubuntu.
- Execute sensors command to find out CPU temperature in Ubuntu Linux.
Let us view processor temperature including SSD/HDD in details for Ubuntu desktop or server.
Check CPU temperature in Ubuntu Linux
The sensors command is used in Linux to show the current readings of all sensor chips including CPU temp. The hddtemp command will show you the temperature for SSD and HDD. You need to install and configure the lm-sensors package as well as hddtemp. You can search it using the following syntax:
apt-cache search lm-sensors
apt-cache search hddtemp
To install these packages on Ubuntu, run the following apt command or apt-get command in a terminal:
sudo apt update
sudo apt upgrade
Install lm-sensors in Ubuntu Linux
- Sensors embedded in CPUs and other super I/O chips
- Hardware monitoring chips accessed through I/O ports and SMBus/I2C bus on your system
Type the following command:
sudo sensors-detect
Display CPU temperature in the command line
How can I show the CPU temperature in the GNOME panel
Install Freon and Sensors extension for Ubuntu Linux desktop:
How to install hddtemp in Ubuntu Linux
Run the following apt command:
sudo apt install hddtemp
How to see hard disk temperature in Ubuntu
Simply type:
hddtemp
sudo hddtemp SATA:/dev/sda
Sample outputs:
Use disks & storage GUI tool to view hard disk temp
Hard disks have a built-in health-check tool called SMART (Self-Monitoring, Analysis, and Reporting Technology), which continually checks the disk for potential problems. SMART also warns you if the disk is about to fail, helping you avoid loss of important data. It also displays hard disk temperature. Run:
gnome-disks
How to monitor Nvme ssd temperature in Ubuntu
First install nvme-cli, run:
sudo apt install nvme-cli
Now use the nvme command as follows to get list of all NVMe devices and namespaces on machine:
sudo nvme list
Sample outputs:
sudo nvme smart-log /dev/nvme0
One can filter output using the grep command:
sudo nvme smart-log /dev/nvme0 | grep temperature
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
What to do when a laptop gets way too hot
- Open your laptop and remove (blow out) all the dust from fans and hardware.
- Buy a good laptop cooler to place your laptop on.
- Make sure your Thinkpad laptop positioned on a flat and hard surface.
- Shutdown unwanted Linux apps that use lots of CPU, ram, hard drive, and stress out your system.
- Above all use power saving mode on your laptop.
Conclusion
In conclusion, keep your laptop fan clean and dust free to reduce the temperature. In some extreme cases, you may need to replace a heat sink to keep a hot component such as a processor cool. Similarly, use the quality thermal paste to fill in the gaps and allow for better transfer of heat from the heat spreader to the heatsink. I hope to find out CPU temperature in Ubuntu Linux help you to keep your laptop healthy and use it for a longer time.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Источник
Температура процессора Linux
В этой небольшой статье мы рассмотрим как посмотреть температуру процессора с помощью lm_sensors. Lm_sensors — это акроним от Linux monitoring sensors. Это набор инструментов с открытым исходным кодом, с помощью которого вы можете посмотреть и отслеживать многие параметры работы системы, такие как напряжение, температура, влажность и обороты кулеров.
Кроме того, утилита позволяет определять допустимые границы показателей, например, та же температура процессора Linux для определенной модели. Таким образом, вы можете найти неполадку в системе вовремя и заменить неработающий элемент, например, вентилятор, чтобы избежать перегрева и выхода и строя оборудования.
Температура процессора в Linux
1. Установка
Обычно, пакет lm_sensors уже предустановлен в большинстве систем и сконфигурирован для работы. Но если в вашей системе его нет, то программу не так сложно установить. В ArchLinux:
sudo pacman -S lm_sensors
В RedHat или CentOS:
sudo yum install lm_sensors
В Debian, Ubuntu или Linux Mint:
sudo apt-get install lm-sensors
В SUSE или OpenSUSE:
sudo zypper in sensors
2. Настройка программы
Когда установка будет завершена, нам необходимо выполнить настройку, чтобы определить все сенсоры, подключенные к системе. Для этого выполните:
Утилита sensors-detect пытается найти все установленное оборудование и загрузить рекомендованные для него модули ядра. В большинстве случаев вам будет достаточно нажимать кнопку Enter в ответ на все вопросы программы, тем самым давая ответы по умолчанию. Мы рассматривали более подробно sensors-detect в статье управление кулером Linux.
Использование sensors
Теперь можно перейти к просмотру доступной температуры. Для этого наберите:
Здесь отображается не только температура процессора Linux, но и другие полезные показатели, такие как, напряжение и частота вращения вентиляторов. Для любителей, можно вывести температуру процессора в Фаренгейтах с помощью опции -f:
Чтобы постоянно наблюдать за температурой процессора можно использовать команду watch. По умолчанию она будет обновлять информацию раз в две секунды:
Если вы видите, что для какого-либо компонента температура становится критической, значит пора разобрать системный блок и посмотреть что там произошло, возможно, нужно поменять термопасту или заменить кулер.
Использование psensor
Если вы не любите работать в терминале и вам больше по душе графический интерфейс, то можно воспользоваться графической утилитой psensor, которая берет информацию через lm_sensors. Чтобы установить ее в Ubuntu выполните:
sudo apt install psensor
Дальше утилиту можно запустить из главного меню или командой:
Здесь отображается вся та же информация, что и в lm_sensors, но, кроме того, есть температура видеокарты, жесткого диска, загрузка процессора и видеокарты, а также другие параметры. В настройках утилиты вы можете выбрать единицу измерения температуры:
Добавить в авто запуск:
И выбрать датчики, которые нужно использовать:
Выводы
В этой статье мы рассмотрели как узнать температуру процессора linux. Надеюсь, эта информация была полезной для вас. Если у вас остались вопросы, спрашивайте в комментариях.
На завершение видео о том как посмотреть температуру процессора linux:
Нет похожих записей
Оцените статью:
Об авторе
Основатель и администратор сайта losst.ru, увлекаюсь открытым программным обеспечением и операционной системой Linux. В качестве основной ОС сейчас использую Ubuntu. Кроме Linux, интересуюсь всем, что связано с информационными технологиями и современной наукой.
15 комментариев
Использую lm_sensors в связке с gkrellm, предварительно собрав ядро с нужными модулями для сенсоров.
у меня нет коменды whatch 🙁
—
юзаю такое
—
xuser@mbs:
$ cat bin/sr.sh
#!/bin/sh
#
while [ true ]; do
sensors | grep -v POWER | grep -v CHASSIS
echo — — —
sleep $1
done
—
sr.sh 5
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.0°C (crit = +75.0°C)
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage: +1.17 V (min = +1.45 V, max = +1.75 V)
+3.3 Voltage: +3.38 V (min = +3.00 V, max = +3.60 V)
+5.0 Voltage: +4.97 V (min = +4.50 V, max = +5.50 V)
+12.0 Voltage: +12.24 V (min = +11.20 V, max = +13.20 V)
CPU FAN Speed: 1573 RPM (min = 0 RPM, max = 1800 RPM)
CPU Temperature: +31.0°C (high = +90.0°C, crit = +125.0°C)
MB Temperature: +39.0°C (high = +70.0°C, crit = +125.0°C)
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +32.0°C
Core1 Temp: +40.0°C
Конечно нет, потому что нужна watch
:(( каждый человек имеет право тупить %:))
—
да, всё нормально.
но все равно я буду использовать свой скрипт. Потому что в его выводе нет лишней информации.
—
вот полный выовд sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.0°C (crit = +75.0°C)
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage: +1.22 V (min = +1.45 V, max = +1.75 V)
+3.3 Voltage: +3.38 V (min = +3.00 V, max = +3.60 V)
+5.0 Voltage: +4.95 V (min = +4.50 V, max = +5.50 V)
+12.0 Voltage: +12.24 V (min = +11.20 V, max = +13.20 V)
CPU FAN Speed: 1614 RPM (min = 0 RPM, max = 1800 RPM)
CHASSIS FAN Speed: 0 RPM (min = 0 RPM, max = 1800 RPM)
POWER FAN Speed: 0 RPM (min = 0 RPM, max = 1800 RPM)
CHASSIS4 FAN FAN Speed: 0 RPM (min = 0 RPM, max = 1800 RPM)
CHASSIS2 FAN FAN Speed: 0 RPM (min = 0 RPM, max = 1800 RPM)
CHASSIS3 FAN FAN Speed: 0 RPM (min = 0 RPM, max = 1800 RPM)
CPU Temperature: +40.0°C (high = +90.0°C, crit = +125.0°C)
MB Temperature: +47.0°C (high = +70.0°C, crit = +125.0°C)
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +38.0°C
Core1 Temp: +44.0°C
Большое спасибо adminu за этот блог,очень нужен для начинающих.Автору видео о температурных данных для Линукс.Всё работет без сучка и задоринки.У меня Linux Mint 19.1 Tessa- пару лет назад в первые в жизни поставил Ubuntu и что . не пошло.Пришлось присесть на Windows.Не созрел тогда и базы знаний,практический не было(т.е. опыта) да и главное возраст стал подпирать,торопить(секрета не делаю мне под 70 лет).Сделал вторую попытку(тянет меня к Линуксу,почему- простой,скоростной,а главное очень умный.Он предугадывает твои желания.Надо только его понять.Мой «рекорд» по установке-Linux Mint 19.1 — 32 минуты,рабочая версия с минимумом программ*условно «триал») и можно работать.На расширенную «версиию» Linux Mint 19.1 (c «примочками» и «бубнами») по полной программе-«расширенная» версия для IT-гурманов- ещё + 35 минут.И «дело в шляпе».
Всем всего наилучшего.
Источник
How to Get CPU Temperature on Ubuntu Linux
Hardware overheating often creates a bad performance of your system. Monitoring hardware temperature can help you diagnose any CPU overheating problems of the system. The source of laptop overheating normally comes from extensive CPU, GPU (video cards), or hard disk temperature.
If your laptop is getting hot, make sure the laptop is positioned properly so it won’t restrict airflow. You must have a good, clean laptop cooler, not dusty, and remove any unwanted software that uses high CPU. Also running the laptop in power saving mode reduces overheating.
In this tutorial, we will learn how to get the CPU temperature on Ubuntu Linux from command line as well as from Desktop.
1) Check CPU temperature using Lm_Sensors
Lm_sensors is a command-line tool that is used to show the current readings of all chip sensor data, including CPU temperature. By default, Lm_sensors are not installed in most Linux distributions, therefore, we have to install them ourselves.
So first let’s check how to install lm-sensors package on various Linux distros.
On Ubuntu/Debian
Open the terminal on Ubuntu by pressing the shortcut key CTRL + ALT + T from your keyboard. Then install Lm_Sensors by running the following command which I have tested on Ubuntu 18.04, Ubuntu 20.04, and Debian 10:
Install Psensor Server if you want to print the temperature and fan speed of a remote server.
On Arch Linux
To install lm_sensors on Arch Linux, enable the extra repository in ‘/etc/pacman.conf’. Then run the following pacman command from the terminal:
On Fedora
Use dnf command to install lm_sensors on Fedora Linux.
On CentOS/RHEL
Use yum command to install lm_sensors on CentOS 7 and RHEL 7
Detecting compatible sensors on Ubuntu Linux
Next, we need to detect hardware monitoring chips installed in our laptops. So now we can start the detection of our laptop hardware sensors. This will provide information about:
- Sensors embedded in CPUs and other super I/O chips
- Hardware monitoring chips accessed through I/O ports and SMBus/I2C bus on our system
We do that by typing command sudo sensors-detect:
Display CPU temperature in the command line
We have successfully installed lm-sensors package and we have successfully detected supported sensors on our Ubuntu Linux powered laptop.
Now we can execute the following command to see temperature data:
Note that the results will differ for your computer.
You can also use the watch command to run sensors command constantly, which will display sensor output changes on screen:
2) Check CPU temperature with Psensor GUI tool
We’re going to use a GUI tool, Psensor, that allows you to monitor hardware temperature on Linux.
With Psensor you can check the following:
- The temperature of the motherboard and CPU sensors and NVidia GPUs
- The temperature of the hard disk drives
- The rotation speed of the fans
- Monitor CPU usage
The latest version of Psensor also provides an applet indicator for Ubuntu and thus it makes the monitoring of hardware temperature even easier on Ubuntu. You can choose to display the temperature right in the top panel itself. It can even send a desktop notification when the temperature exceeds the limit.
We can proceed with the installation of Psensor by using the command below:
Ubuntu/Debian
Fedora
CentOS and RHEL
Once installed, run the application by looking for it in the Unity Dashboard. On the first run, you may configure which stats (sensors) you want to collect with Psensor.
If you want to show the CPU statistics including temperature in the top panel, go to ‘Sensor Preferences’. Then under the ‘Application Indicator’ menu, select the component for which you want to display the temperature. Then check the ‘Display sensor’ in the label option.
3) Using ‘Hardinfo’ to check CPU temperature
Hardinfo is a system profiler and benchmark tool used in Linux to display hardware information in GUI. You can also check CPU temperature from the GUI — Devices — Sensors.
On Ubuntu and Debian
On Arch Linux you can find hardinfo in community repo
Run the following command from the terminal to display hardware information on GUI.
Using ‘i7z’ to find CPU temperature
i7z is a command-line tool to print CPU information on Intel Core i7, i5, i3 processors, and also reports CPU temperature. i7z needs to be run as root or user with sudo privilege.
To install on ubuntu run the following command:
Conclusion
Apart from this, you can try using TLP and thermald,can help you control CPU temperature on Linux. Cpufreq is another tool that can help you save battery and reduce the laptop overheating which works very well on Ubuntu.
Few years before I used ‘Conky’ which is a lightweight desktop system monitor that can show stats of CPU, memory, swap space, disk storage, temperatures, processes, network interfaces, battery power, etc.
If you want to check temperatures without 3rd party tools, look in /sys/devices/virtual/thermal/thermal_zone1/temp file.
To check hard disk temperature you can install hddtemp package.
Finally, if you have any questions or feedback, feel free to leave a comment.
Источник