I want to use i3status to display my CPU-Core temperatures (haswell i7). However the setting:
order += "cpu_temperature 1"
#...
cpu_temperature 1{
format = "T: %degree °C"
}
#
doesn't display the correct core temperature. The numbers it shows seem to correspond to the value xsensors shows for temp1, if I change the 1 to 2 above it corresponds to xsensors temp2. Trying 3 or 4 doesn't have any effect. However I want to get the true core temperatures of all 4 cores with i3 status. How can I do this?
Best Answer
i3status
Using
i3status
I believe you can change your configuration slightly so that it gets the CPU's core temperature directly from/sys
by providing a path to its value. So change your rule to something like this:Here are 4 other ways to get your temp:
/proc
acpi
From the
acpi
man page:/sys
lm_sensors
If you install the lmsensors package like so:
Fedora/CentOS/RHEL:
Debian/Ubuntu:
Detect your hardware:
You can also install the modules manually, for example:
NOTE: The sensor-detect should detect your specific hardware, so you might need to
modprobe <my driver>
instead for the 2nd command above.On my system I have the following i2c modules loaded:
Now run the
sensors
app to query the resulting temperatures:This is on my Thinkpad T410 which has i5 M560. Here's one of the cores: