Hi all.
I installed EOS with i3 window management. Included with it is i3blocks which has a (cpu) temperature script [relevant code below]. The temperature reported on my i3 status bar is generally 15-20C higher than what the output of sensors
is.
I wrote a short script that saved the output from sensors
to a text file every 15 seconds and let it run in the background for a couple of hours. None of the temperature measurements in the text file were in the neighborhood of what the i3 status bar had displayed at similar times (which updates every 30 seconds).
This isn’t really a cause for concern to me but I wanted to understand why this is happening. Reading through /.config/i3/scripts/temperature
doesn’t reveal anything out of the ordinary.
Any ideas?
Edit: as an example: i3 temp: 57C; sensors 41C.
### c/p from /.config/i3/scripts/temperature
# Get chip temperature
open (SENSORS, "sensors -u $chip |") or die;
while (<SENSORS>) {
if (/^\s+temp1_input:\s+[\+]*([\-]*\d+\.\d)/) {
$temperature = $1;
last;
}
}
close(SENSORS);
### Relevant part from /.config/i3/i3blocks.conf
[CPU-temperature]
label=
command=~/.config/i3/scripts/temperature
interval=30
#T_WARN=70
#T_CRIT=90
#SENSOR_CHIP=""