How do I get the CPU temperature?
352
|
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
sensors in your terminal.
Output:
To see HDD temperature Install hddtemp
Output:
|
23
|
hardinfo
Install hard info by
sudo apt-get install hardinfo . Then you can get temperature by sensors.![]() XSensors
XSensors 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. Psensor
XSensors 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
sudo sensors-detect |
Temperature without third-party apps
All the answers involve use of third-party utilities. If you want to find out the temperature without installing anything, use:
$ cat /sys/class/thermal/thermal_zone*/temp
69000
69000
67000
Temperature with Conky
If 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:
${hwmon 2 temp 1}°C
The display looks like this:
5
|
Just so you guys know, none of this install junk like
sensors are needed. Just do an acpi -V and BOOM, you got everything. Example:
WAY easier than installing all of this and kmod... Just do acpi -V.
| ||
3
|
this file holds cpu temperature. So, you can make a script named
temp and move it to /bin then in terminal enter temp .
My
temp file looks like -
my answer is modified of www.cyberciti.biz
|
The program 'acpi' is currently not installed. You can install it by typing: sudo apt-get install acpi
– e-sushi Oct 1 '14 at 20:32sensors
provides the temperature whereasacpi -V
doesn't show anything about it, unfortunately. – Per Lundberg Oct 16 '15 at 21:36