I am using conky&conkyforecast
to have a nice widget containing some system information and weather data.
But I can see that the temperature that conky shows is different than the one I get running in terminal sensors
.
Conky script line:
Temperature: ${alignr}${acpitemp}°C
Running sensors
in terminat gets this:
florin@florin-Satellite-C650:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +49.0°C (crit = +110.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +51.0°C (high = +80.0°C, crit = +90.0°C)
Core 2: +60.0°C (high = +80.0°C, crit = +90.0°C)
Conky shows 49° temperature.
How can I make them show the same temperature? What does conky show over there?
Thanks a lot!
Temperature from command line
To find out the temperature, use:
Temperature with Conky
Within
conky
the system variable I used to monitor an Ivy Bridge CPU is:To monitor a Skylake CPU I initially used:
A few months later (possibly due to new kernel) on the same Skylake CPU I switched to:
The display looks like this:
I found that this worked for me:
This reads the temperature info from
/sys/devices/platform/coretemp.0/temp1_input
.Another possible solution is:
or if that doesn't work:
Another possible solution is:
Output:
${exec sensors | grep 'Package id' | awk '{print $4}'}
Sensors CPU: ${exec sensors | grep 'Package id' | awk '{print $4}'}
A simple one liner:
Another solution. Use find command;
find /sys/devices/platform/ -iname '*input'
Output:
Conky variable;