Lm-sensors is a command-line utility for hardware monitoring. Use the tool to check the temperature of the CPU and other components. Follow these steps to install and configure Lm-sensors:
1. Open the terminal and install these packages using a package manager for your distribution. In Ubuntu, use the following command:
sudo apt install hddtemp lm-sensors
Wait for the lm-sensors and hddtemp to finish downloading and installing.
2. Execute the sensors command to see the CPU temperature. The output shows the current temperature readings of all sensors in the machine. The results include the temperature of each core and maximum thresholds.
3. To check SSD and hard drive temperatures, execute the following command:
The output shows the temperature of the selected disk.
4. To see which system components you can monitor, run sudo sensors-detect .
Answer YES to multiple scanning requests until the system scan is complete.
When the scan completes, the output shows the summary.
5. To ensure that system monitoring works, load the needed modules using the following command:
6. To run the sensors command repeatedly and get real-time data in the terminal, execute the following command:
The output refreshes every two seconds and displays the current CPU temperature reading.
Note: To check CPU usage on Linux, read our tutorial on How to check CPU usage.
Psensor is a GUI app that allows you to monitor the temperature of various system components. This utility also allows you to monitor CPU usage and fan speed.
Psensor includes an applet indicator for Ubuntu, allowing you to display the temperature in the top panel to notify you when the temperatures get too high.
Before installing Psensor, you need to install and configure Lm-sensors.
1. Run this command to install the necessary packages:
sudo apt install lm-sensors hddtemp
2. Next, scan for sensors in your machine:
Answer YES to any scan requests until the scan is completed.
3. To make sure the packages are installed, execute the sensors command.
4. Update the package repository with sudo apt update .
5. Install Psensor using the following command:
Answer YES and wait for the installation to finish.
Search for Psensor in the app menu and open the utility. The app displays a graph of the selected values and shows the CPU temperature, CPU and memory usage, free RAM, GPU temperature, and HDD temperature.
To configure Psensor and set which stats you want to see, follow these steps:
1. Click Psensor in the menu bar, followed by Preferences.
2. Check off the boxes for the options you want – whether Psensor launches on system startup, the update interval, graph colors, etc.
3. To show CPU or HDD temperatures in the top panel, go to Sensor Preferences under the Application Indicator. Enable the Display sensor in the label option.
Note: Learn more about monitoring CPU performance by referring to our article on Linux perf, a lightweight command-line utility.
There is a way to use the in-built utilities to check the CPU temperature if you don’t want to use third-party apps.
1. To check the CPU temperature without installing a third-party app, use the following command:
cat /sys/class/thermal/thermal_zone*/temp
The output shows the CPU temperature in the five-digit format. Here, 49000 means 49C.
2. If you get several thermal zones and different temperatures, execute the following command to see what a single thermal zone represents:
For example, run cat /sys/class/thermal/thermal_zone2/type to see the type of thermal zone 2.
The CPU temperature is in the zone labeled x86_pkg_temp.
3. To see what all the thermal zones are referring to, use:
The output shows the last stored temperature for that thermal zone in degrees Celsius. In this example, there is only one thermal zone, labeled x86_pkg_temp, which represents the CPU temperature.
You now know how to check CPU temperature on Linux using various utilities. The guide also showed how to configure the tools to display other information, such as GPU and HDD temperature.
Интересуетесь, как проверить температуру процессора и жесткого диска в Ubuntu и других Linux на настольных компьютерах или ноутбуках? Вот краткое руководство.
Если вы обычный пользователь, вам не требуется проверять температуру процессора или жесткого диска. Но если вы используете очень старое оборудование, вы можете столкнуться с проблемой перегрева. Поэтому необходимо следить за температурой оборудования. Однако современные дистрибутивы Linux хорошо справляются с ситуациями перегрева с помощью программных датчиков.
Мы будем использовать несколько пакетов для достижения этой цели. Откройте терминал в системе на базе Ubuntu и установите следующие пакеты.
sudo apt install hddtemp
sudo apt install lm-sensors
Утилита hddtemp покажет вам температуру вашего оптического жесткого диска, а также SSD (согласно моим тестам). А пакет lm-sensors позволяет получить данные о температуре процессоров и других датчиков, доступ к которым осуществляется через порты PCI.
После установки запустите из терминала следующее. Для этого вам нужно знать идентификатор вашего диска — например, /dev/sda или /dev/sdb и т.д.
Чтобы узнать идентификаторы дисков, вы можете использовать fdisk.
Затем выполните следующие действия, чтобы проверить температуру HDD или SSD.
Проверка температуры процессора и другой информации требует дополнительных действий. Сначала выполните следующую команду, чтобы утилита sensors могла обнаружить датчики в вашей системе
Приведенная выше команда может задать вам несколько вопросов YES/NO. Продолжайте нажимать ENTER, чтобы выбрать параметры по умолчанию.
Если вы предпочитаете красивый графический интерфейс, который делает все вышеперечисленное, вы можете установить psensor. Эта утилита работает в таких системах Linux, как Ubuntu, Fedora, Arch и других.
Ubuntu и ее производные
Fedora и производные на основе RPM
Arch, Manjaro и аналогичные производные
После установки запустите psensor из терминала или запустите его из меню приложений.
Как вы можете видеть на скриншоте ниже, он дает вам хороший обзор всех важных температур CPU, GPU, HDD с красивым графиком. Используя настройки, вы можете настроить его в соответствии с вашими потребностями. Эта легкая утилита может быть полезна во многих случаях.
Итак, вот некоторые способы, с помощью которых вы можете контролировать температуру CPU, GPU или HDD в Ubuntu и других системах Linux. Дайте мне знать, если вы знаете какие-либо другие способы, используя поле для комментариев ниже.
Adblock