Closed brokkr closed 7 years ago
Thank you for the detailed bug report.
This is quite strange, coretemp should be the default.
To test the source of this, could you please run a python shell and the following code and give the result:
import psutil
psutil.sensors_temperatures()
I ran it in both Python 2 and 3 as root. The result is the same:
>>> psutil.sensors_temperatures()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'sensors_temperatures'
>>> psutil.__version__
'3.4.2'
Thanks. The problem is your psutil version. Temperature sensors were only added in a later version. Upgrading it should solve the problem
sudo pip install psutil --upgrade
I'll see how I can force a newer psutil version during the installation
Upgrading to 5.3.1 solved it, thanks :-)
Version: 0.6.2 OS: Ubuntu 16.04 Installed using pip
Using the -ct option to bypass a virtual device reading, I get no temperature readings and a note in the debug log saying the sensor is 'Illegal'.
Here's my sensors output:
s-tui defaults to the acpitaz-virtual-0 device. Seeing as this is always a steady 27.8 I figured it was not an actual reflection of the cpu temperature. Going on the --help instructions, I run s-tui in the following way.
I have also tried
coretemp-isa
andcoretemp,1
andcoretemp,2
. In the program I get 'Temperature N/A'. In the log (running with debug on), I get the following:Explicitly setting the -ct option to acpitz result in the same thing just with acpitz in the log instead of coretemp.