How do I get the CPU temperature?
|
|
Install lm-sensors
After installation type the following in terminal
You may also need to run
It will ask you few questions. Answer Yes for all of them. Finally to get your CPU temperature type
Output:
To see HDD temperature Install hddtemp
Output:
|
|||||||||||||||||||||
|
|
Quick command-line solution
Applet If you are looking for a easier-to-access version, add a Hardware Sensors Monitor to Gnome-Panel:
|
|||||||||||||||||||||
|
|
A good indicator for monitoring temperature, fan speeds and voltage is psensor. It shows output of all sensors, draws graphs. Also selected outputs can be placed in indicator panel.
It can be installed from Ubuntu repositories by clicking psensor
Newer versions of psensor can be installed from ppa:
It can also draw graphs when you tick the boxes in the graph column: Here is some information with more pictures. In some cases not all sensors are displayed. Then you can run
and answer "yes" to all questions. But is not quite safe in some cases, but I never had any real problems with that. A safer way is to take default answers. Some additional sensors may appear. |
|||||||||||||
|
|
hardinfo Install hard info by
|
||||
|
|||||
|
XSensorsXSensors reads data from the libsensors library regarding hardware health such as temperature, voltage and fan speed and displays the information in a digital read-out. Open the terminal and type:
Then detect your computer's hardware sensors by opening the terminal and running the command:
Then you will get asked a lot of questions about what hardware you want the program to detect. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing.
Xsensors vs. PsensorXSensors and Psensor both monitor the computer's temperature and the fan speeds. The difference between the two applications is in the level of detail of the information that is displayed and how the information is displayed. XSensors displays a little bit more specific information than Psensor. Psensor is smaller and more unobtrusive than XSensors and it displays itself on the desktop as a little thermometer icon in the notification area in the upper right corner of the desktop next to the clock. You can right-click the thermometer icon at any time to display the hardware temperatures. Setting up Psensor to detect your computer's hardware is done the same way as Xsensors, by installing lm-sensors to detect your computer's hardware sensors. Then detect your computer's hardware sensors running the command:
and as with Xsensors, accept the default answers to all questions. In Ubuntu 16.04 Psensor detects your computer's hardware sensors automatically without running |
|||||||||||||
|
|
After you install lm-sensors:
run:
you can run the following command to view hardware temps:
Also, the fan is usually controled by BIOS. |
|||||
|
Temperature without third-party appsAll the answers involve use of third-party utilities. If you want to find out the temperature without installing anything, use:
Temperature with ConkyIf you don't mind third-party utilities I like to use Conky--a light weight system monitor. Within conky the appropriate system variable to monitor is:
The display looks like this: |
|||||||||
|
|
Just so you guys know, none of this install junk like
WAY easier than installing all of this and kmod... Just do acpi -V. |
|||||||||
|
this file holds cpu temperature.
So, you can make a script named My
my answer is modified of www.cyberciti.biz |
|||||||||
|
|
On Raspberry Pi, you can retrieve the temperatureusing
Output:
|
|||||
|
|
computertemp It can be installed the same way as the sensors-applet described in evgeny's answer.
computertemp is not available in the newer Ubuntu repositories. |
|||||
|







