152
votes
How do I get the CPU temperature?
Temperature without third-party apps
At the time of writing, all the answers involve use of third-party utilities. If you want to find out the temperature without installing anything, use:
$ cat /...
13
votes
How do I get the CPU temperature?
On Raspberry Pi, you can retrieve the temperatureusing vcgencmd:
vcgencmd measure_temp
Output:
temp=39.0'C
11
votes
Accepted
lm-sensors: From sensors command, what is "Package id 0"?
Package id 0 is used to reference the CPU "as a whole".
This Intel article explains how the core and package temperatures are measured:
The processor has different digital thermal sensors ...
10
votes
How do I get the CPU temperature?
If you like Python, you can use psutil.
>>> import psutil
>>> psutil.sensors_temperatures()['coretemp']
[shwtemp(label='Physical id 0', current=67.0, high=100.0, critical=100.0), ...
10
votes
How do I get the CPU temperature?
All bash:
getTemp () {
for zone in `ls /sys/class/thermal/ | grep thermal_zone`
do
echo -n "`cat /sys/class/thermal/$zone/type`: "
echo `cat /sys/class/thermal/$zone/temp | sed 's/\(.\)..$...
9
votes
How to detect processor correct temperature in conky
Temperature from command line
To find out the temperature, use:
# Ivybridge Intel i7-3630QM
$ cat /sys/class/thermal/thermal_zone*/temp
69000
69000
67000
# Skylake Intel i7-6700HQ using paste after ...
8
votes
How to monitor the VCore voltage
You can monitor the core voltage on most recent (SNB and later) Intel CPUs with the following1:
watch -n1 'echo "scale=2; $(sudo rdmsr 0x198 -u --bitfield 47:32)/8192" | bc'
Breaking it down:
sudo ...
8
votes
Accepted
libsensors5 or libsensors-config upgrade problem
So, you have libsensors4 package that conflicts with libsensors-config. libsensors4 is even not in the package repository of Disco. So, what you need is to replace libsensors4 with libsensors5:
sudo ...
7
votes
How do I get the CPU temperature?
/sys/class/thermal/thermal_zone0/temp
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 -
#!/bin/bash
...
7
votes
Conky system temperature monitoring, execigraph empty
I got it working surrounding the command to execute with " ", here below my usage as example:
${execgraph "sensors | grep 'Core 0' | awk '{print $3}' | cut -b2,3"}
It worked fine with both execgraph ...
6
votes
Crontab not Executes my python file but output is not generated...!
Output of jobs run from crontab are not displayed on the screen. In order to see the output of a cron job, you need to capture it in a file. You can do so by adding
>> /home/myuser/myscript.log ...
5
votes
Track temperature over time
We have created a tool that does that called s-tui.
It lets you monitor temperature frequency and CPU utilization over time. You can also save the data to a CSV.
The code is available on github: ...
5
votes
How to set temperature warnings to avoid overheat?
System-monitor GNOME extension
You also have system-monitor:
And choose your threshold
AFAIK it just changes the temperature color. No notification or acoustic alarm. There is a feature request ...
5
votes
Accepted
I'm looking for materials or links about cross-compiling, like eabi, etc
From Install the ARM cross compiler toolchain on Ubuntu:
How to install on Ubuntu the complete toolchain to cross compile the
Linux kernel, the Linux device drivers, the Linux applications and the
...
4
votes
How do I get the CPU temperature?
One can also use bpytop. Install with:
sudo snap install bpytop
A more powerful version than htop, with CPU temperature and much more.
4
votes
How do I get the CPU temperature?
And here's my 2-cents on this matter. There's tmon, a very simple tool that reads the temperature while running another process, just like time, watch, timeout, etc...
tmon is a thin wrapper around /...
4
votes
How to detect processor correct temperature in conky
Another possible solution is:
$(exec sensors | grep 'Package id' | awk '{print $4}')
Output:
+33.0°C
4
votes
How to monitor the VCore voltage
Wine won't let you reach the ring0 of your processor. The place where privilege instructions can be executed.
Linux provides a kernel module msr.ko which allows to read/write model specific registers ...
4
votes
Accepted
Temperature sensors broken?
The Asus am1m-a motherboard is really unusual in that it does not have a CPU, a GPU and a supporting chipset, but relies on a complete system being integrated into an APU (a system on a chip). Given ...
4
votes
Accepted
Cannot configure Fan Speed with pwmconfig
Start out by man fancontrol to get a feel for what variables can be used in /etc/fancontrol. You will need the following when building the config: INTERVAL, FCTEMPS, FCFANS, MINTEMP, MAXTEMP, ...
4
votes
Accepted
Temperature sensors hwmon5 and hwmon6 keep swapping around. How can I consistently monitor devices?
From version 1.11.3 (feb 2019) of conky, you can now use the device name instead of a number. This searches in all the /sys/class/hwmon/*/name files for the name, and takes the first one that matches. ...
4
votes
Accepted
Motd temperature reading is incorrect after processor change
The "Message of The Day" temperature sampling time is immediately after a rather large amount of login related code has just executed. The processor is a just a little warm as a result. When ...
3
votes
Accepted
Fan control on ASRock X99 Extreme4?
First you need to get lm-sensors detecting all the sensors on your board.
Run sudo sensors-detect and accept its defaults and allow it to add the relevant chip modules to /etc/modules.
Then edit /...
3
votes
How do I get the CPU temperature?
For Intel CPUs only You can use i7z.
i7z - A better i7 (and now i3, i5) reporting tool for Linux.
Install it :
sudo apt install i7z
Then run it (it has to be run with sudo):
sudo i7z
Example ...
3
votes
Accepted
How can I adjust the automatic brightness algorithm/granularity/polling rate so that it's less obvious and jumpy?
First get the source and build deps: (In "Software & Updates" make sure you have "Source Code" checked off.)
apt source gnome-settings-daemon
sudo apt build-dep gnome-settings-daemon
Then in ...
3
votes
How to see all my fans in sensors?
I came across this problem a while back. From what I understand, the kernel is preventing lm-sensors from looking at fan usage, so I modified my GRUB settings to allow lm-sensors to access this ...
3
votes
Accepted
Terminal command to show a summary of memory used, temperature, and GPU use in a single screen, in a simple way
You can easily extract the specific parts of interest from the long outputs by using various command-line utilities, e.g. awk.
You're interested in showing only the 'available' memory from the output ...
2
votes
How do I get the CPU temperature?
There are a lot of different places you might find the temperature listed in millidegrees. I finally found mine here:
/sys/devices/platform/coretemp.0/temp*_input
Here are some other places users ...
2
votes
How to use lm-sensors?
If you use XFCE, I think it`s better to show it in toolbar, like this, use this plugin:
The effect is this:
2:
2
votes
How do I get the CPU temperature?
GUI alternatives for sensors command are Psensor and XSensors:
sudo apt install xsensors
sudo apt install psensor
For better detection of your hardware's sensors, you can also run following:
sudo apt ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sensors × 178temperature × 62
lm-sensors × 47
fan × 37
cpu × 18
drivers × 14
fancontrol × 14
hardware × 13
12.04 × 11
dell × 8
kernel × 7
overheating × 7
indicator × 6
conky × 6
unity × 5
gnome × 5
hp × 5
acpi × 5
amd-processor × 5
14.04 × 4
16.04 × 4
lenovo × 4
asus × 4
thinkpad × 4
psensor × 4